/* * Assert EmployerType and dependent types are added to the wsdl */ public void validateProjectArtifacts(String eBoxServiceName) throws IOException, CoreException { IProject project = WorkspaceUtil.getProject(eBoxServiceName); Assert.assertTrue( "TypeDepencies.xml didnot get generated", project .getFile( "meta-src" + File.separator + "META-INF" + File.separator + eBoxServiceName + File.separator + "TypeDependencies.xml") .exists()); String sb = ServiceCreationFromExistingTypesTest1.readContentsFromIFile( project.getFile( "meta-src" + File.separator + "META-INF" + File.separator + "soa" + File.separator + "services" + File.separator + "wsdl" + File.separator + eBoxServiceName + File.separator + eBoxServiceName + ".wsdl")); Assert.assertTrue( "WSDL file is not inlined with imported type - EmployerType", sb.indexOf("EmployerType") > -1); }
/* * Assert pom.xml has library dependency - HardwareTypeLibrary */ public void validateBuildArtifacts(String eBoxServiceName) throws CoreException, IOException { IProject project = WorkspaceUtil.getProject(eBoxServiceName); Assert.assertTrue( "Project.xml doesnot contain library dependency SOA21TestTL2", ServiceCreationFromExistingTypesTest1.readContentsFromIFile(project.getFile("pom.xml")) .indexOf("SOA21TestTL2") > -1); }