import org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor;
import org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder;
public class JAXWSProfileTest extends TestCase {
public void testLoadPlugins() {
PluginLoader loader = PluginLoader.getInstance();
assertNotNull(loader);
loader.loadPlugin("/org/apache/cxf/tools/wsdlto/frontend/jaxws/jaxws-plugin.xml");
assertEquals(2, loader.getPlugins().size());
Plugin plugin = getPlugin(loader, 1);
assertEquals("tools-jaxws-frontend", plugin.getName());
assertEquals("2.0", plugin.getVersion());
assertEquals("apache cxf", plugin.getProvider());
Map<String, FrontEnd> frontends = loader.getFrontEnds();
assertNotNull(frontends);
assertEquals(1, frontends.size());
FrontEnd frontend = getFrontEnd(frontends, 0);
assertEquals("jaxws", frontend.getName());
assertEquals("org.apache.cxf.tools.wsdlto.frontend.jaxws", frontend.getPackage());
assertEquals("JAXWSProfile", frontend.getProfile());
assertNotNull(frontend.getGenerators());
assertNotNull(frontend.getGenerators().getGenerator());
assertEquals(2, frontend.getGenerators().getGenerator().size());
assertEquals("AntGenerator", getGenerator(frontend, 0).getName());
assertEquals("ImplGenerator", getGenerator(frontend, 1).getName());
FrontEndProfile profile = loader.getFrontEndProfile("jaxws");
assertNotNull(profile);
//TODO: After generator completed ,umcomment these linses
/*List<FrontEndGenerator> generators = profile.getGenerators();
assertNotNull(generators);
assertEquals(2, generators.size());