1 19 20 package org.netbeans.modules.websvc.jaxws; 21 22 import org.netbeans.junit.NbTestCase; 23 import org.netbeans.modules.websvc.jaxws.api.JAXWSView; 24 import org.netbeans.modules.websvc.jaxws.spi.JAXWSViewProvider; 25 import org.openide.util.Lookup; 26 27 31 public class CustomJAXWSViewProviderTest extends NbTestCase { 32 33 static { 34 CustomJAXWSViewProviderTest.class.getClassLoader().setDefaultAssertionStatus(true); 35 } 36 37 38 public CustomJAXWSViewProviderTest(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<JAXWSViewProvider> res = Lookup.getDefault().lookup(new Lookup.Template<JAXWSViewProvider>(JAXWSViewProvider.class)); 52 assertEquals("there should be 1 instance - from websvc/jaxwsapi", 1, res.allInstances().size()); 53 } 54 55 public void testGetJAXWSView() { 56 JAXWSView view = JAXWSView.getJAXWSView(); 57 assertNotNull("found view support", view); 58 } 59 60 } 61 | Popular Tags |