IUXmlTransformer { public void replaceSelfQualifiers(IU iu, String version, String qualifier) { iu.setVersion(version); replaceSelfVersionInArtifact(iu, version); replaceQualifierInCapabilities(iu.getSelfCapabilities(), qualifier); } IUXmlTransformer();  IUXmlTransformer(Logger log); void replaceSelfQualifiers(IU iu, String version, String qualifier); void replaceQualifierInCapabilities(List<Element> providedCapabilities, String qualifier); void replaceQualifierInRequirements(IU iu, TargetPlatform targetPlatform); void replaceZerosInRequirements(IU iu, TargetPlatform targetPlatform); void injectMavenProperties(IU iu, MavenProject project); void addSelfCapability(IU iu);  }
@Test public void testExpandVersion() throws Exception { subject = new IUXmlTransformer(); IU iu = IU.read(new File(TestUtil.getBasedir("projects/iuXmlValueReplacement/"), "p2iu.xml")); subject.replaceSelfQualifiers(iu, "1.0.0.ABC", "ABC"); assertEquals(iu.getVersion(), "1.0.0.ABC"); assertThat(iu.getProvidedCapabilites(), hasItem(capability("demo.iu", "1.0.0.ABC"))); assertThat(iu.getArtifacts(), hasItem(artifact("demo.iu", "1.0.0.ABC"))); }