Package org.eclipse.tycho.test.util
Class P2RepositoryTool
java.lang.Object
org.eclipse.tycho.test.util.P2RepositoryTool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionvoidassertNumberOfBundles(int expected) voidassertNumberOfFeatures(int expected) voidassertNumberOfUnits(int expected) voidassertNumberOfUnits(int expected, Predicate<P2RepositoryTool.IdAndVersion> except) findBinaryArtifact(String artifactId) findBundleArtifact(String bundleId) findFeatureArtifact(String featureId) static P2RepositoryToolforEclipseRepositoryModule(File projectRootFolder) getBinaryArtifact(String artifactId, String version) getBundleArtifact(String bundleId, String version) getFeatureArtifact(String featureId, String version) Returns the IU with the given ID and version.getUniqueIU(String unitId) Returns the unique IU with the given ID.getUnitVersions(String unitId) withIdAndVersion(String id, String version)
-
Method Details
-
forEclipseRepositoryModule
-
getBundleArtifact
-
getFeatureArtifact
-
getBinaryArtifact
-
findFeatureArtifact
-
findBinaryArtifact
-
findBundleArtifact
-
getBundles
-
getFeatures
-
assertNumberOfUnits
- Throws:
Exception
-
assertNumberOfUnits
public void assertNumberOfUnits(int expected, Predicate<P2RepositoryTool.IdAndVersion> except) throws Exception - Throws:
Exception
-
assertNumberOfBundles
- Throws:
Exception
-
assertNumberOfFeatures
- Throws:
Exception
-
getAllUnitIds
- Throws:
Exception
-
getAllUnits
- Throws:
Exception
-
getUnitVersions
- Throws:
Exception
-
getUniqueIU
Returns the unique IU with the given ID.- Throws:
AssertionError- unless there is exactly one IU with the given unitId.Exception
-
getIU
Returns the IU with the given ID and version.- Throws:
AssertionError- if there is no IU with the given attributes.Exception
-
getAllProvidedPackages
- Throws:
Exception
-
getAllRepositoryReferences
- Throws:
Exception
-
withIdAndVersion
-