@Test public void testGenerateSchemaWithOperations() throws IOException { SystemUtil.delDirs(PROJECT_FOLDER); assertEquals(0, SystemUtil.countFiles(PROJECT_FOLDER)); List<String> ops = new ArrayList<String>(); ops.add("createOrder"); ops.add("getOrderStatus"); new SchemaComponentGenerator(System.out, "org.soitoolkit.refapps.dealernetwork", PROJECT, "1.0-SNAPSHOT", SCHEMA, ops, TEST_OUT_FOLDER, null).startGenerator(); assertEquals( "Missmatch in expected number of created files and folders", 9, SystemUtil.countFiles(PROJECT_FOLDER)); SystemUtil.executeCommand(BUILD_COMMAND, PROJECT_FOLDER); }
public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } SchemaComponentGenerator(PrintStream ps, String groupId,
			String artifactId, String version, String schemaName,
			List<String> operations, String outputFolder, String sourceFolder); }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } SchemaComponentGenerator(PrintStream ps, String groupId,
			String artifactId, String version, String schemaName,
			List<String> operations, String outputFolder, String sourceFolder); void startGenerator(); }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } SchemaComponentGenerator(PrintStream ps, String groupId,
			String artifactId, String version, String schemaName,
			List<String> operations, String outputFolder, String sourceFolder); void startGenerator();  }