1 19 20 package org.netbeans.modules.websvc.api; 21 22 import org.netbeans.junit.NbTestCase; 23 import org.netbeans.modules.websvc.api.jaxws.client.JAXWSClientView; 24 import org.netbeans.modules.websvc.spi.jaxws.client.JAXWSClientViewProvider; 25 import org.openide.util.Lookup; 26 27 31 public class CustomJAXWSClientViewProviderTest extends NbTestCase { 32 33 static { 34 CustomJAXWSClientViewProviderTest.class.getClassLoader().setDefaultAssertionStatus(true); 35 } 36 37 38 public CustomJAXWSClientViewProviderTest(String name) { 39 super(name); 40 } 41 42 protected void setUp() throws Exception { 43 super.setUp(); 44 } 45 46 protected void tearDown() throws Exception { 47 super.tearDown(); 48 } 49 50 public void testProviders() throws Exception { 51 Lookup.Result res = Lookup.getDefault().lookup(new Lookup.Template(JAXWSClientViewProvider.class)); 52 assertEquals("there should be 1 instance - from websvc/clientapi", 1, res.allInstances().size()); 53 } 54 55 public void testGetWebServicesClientView() { 56 JAXWSClientView view = JAXWSClientView.getJAXWSClientView(); 57 assertNotNull("found view support", view); 58 } 59 60 } 61 | Popular Tags |