public class TargetDefinitionResolverTest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TargetDefinitionResolverTest.LocationStub |
private static class |
TargetDefinitionResolverTest.OtherLocationStub |
(package private) static class |
TargetDefinitionResolverTest.RepositoryStub |
(package private) static class |
TargetDefinitionResolverTest.TargetDefinitionStub |
(package private) static class |
TargetDefinitionResolverTest.TestRepositories |
(package private) static class |
TargetDefinitionResolverTest.UnitStub |
| Modifier and Type | Field and Description |
|---|---|
private static org.eclipse.equinox.p2.metadata.Version |
INVALID_VERSION_MARKER |
LogVerifier |
logVerifier |
(package private) static org.eclipse.equinox.p2.metadata.IVersionedId |
MAIN_BUNDLE
Bundle with unversioned dependency to REFERENCED_BUNDLE and optional dependency to
OPTIONAL_BUNDLE.
|
(package private) static org.eclipse.equinox.p2.metadata.IVersionedId |
OPTIONAL_BUNDLE |
P2Context |
p2Context |
private static org.eclipse.equinox.p2.metadata.VersionedId |
REFERENCED_BUNDLE_INVALID_VERSION |
(package private) static org.eclipse.equinox.p2.metadata.IVersionedId |
REFERENCED_BUNDLE_V1 |
(package private) static org.eclipse.equinox.p2.metadata.IVersionedId |
REFERENCED_BUNDLE_V2 |
private static org.eclipse.equinox.p2.metadata.IVersionedId |
REFERENCED_BUNDLE_WILDCARD_VERSION |
private TargetDefinitionResolver |
subject |
(package private) static org.eclipse.equinox.p2.metadata.IVersionedId |
TARGET_FEATURE
Feature including MAIN_BUNDLE and REFERENCED_BUNDLE_V1
|
| Constructor and Description |
|---|
TargetDefinitionResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static <T> org.hamcrest.Matcher<java.util.Collection<T>> |
bagEquals(java.util.Collection<T> collection) |
(package private) static java.util.List<TargetEnvironment> |
defaultEnvironments() |
(package private) static TargetDefinition |
definitionWith(TargetDefinition.Location... locations) |
void |
initContext() |
void |
testInvalidRepository() |
void |
testMissingUnit() |
void |
testResolveDependenciesAcrossLocations() |
void |
testResolveIncludesDependencies() |
void |
testResolveMultipleLocations() |
void |
testResolveMultipleRepositories() |
void |
testResolveMultipleUnits() |
void |
testResolveNoLocations() |
void |
testResolveNoRepositories() |
void |
testResolveOtherLocationYieldsWarning() |
void |
testResolveWithBundleInclusionListYieldsWarning() |
void |
testUnitOnlyLookedUpInLocation() |
void |
testUnitWithExactVersion() |
void |
testUnitWithWildcardVersion() |
void |
testUnitWithWrongVersionYieldsSyntaxException()
Ideally, the interface should return strongly typed versions.
|
(package private) static java.util.Collection<org.eclipse.equinox.p2.metadata.IVersionedId> |
versionedIdList(org.eclipse.equinox.p2.metadata.IVersionedId... ids) |
(package private) static java.util.Collection<org.eclipse.equinox.p2.metadata.IVersionedId> |
versionedIdsOf(TargetDefinitionContent content) |
static final org.eclipse.equinox.p2.metadata.IVersionedId TARGET_FEATURE
static final org.eclipse.equinox.p2.metadata.IVersionedId MAIN_BUNDLE
static final org.eclipse.equinox.p2.metadata.IVersionedId OPTIONAL_BUNDLE
static final org.eclipse.equinox.p2.metadata.IVersionedId REFERENCED_BUNDLE_V1
static final org.eclipse.equinox.p2.metadata.IVersionedId REFERENCED_BUNDLE_V2
private static final org.eclipse.equinox.p2.metadata.IVersionedId REFERENCED_BUNDLE_WILDCARD_VERSION
private static final org.eclipse.equinox.p2.metadata.Version INVALID_VERSION_MARKER
private static final org.eclipse.equinox.p2.metadata.VersionedId REFERENCED_BUNDLE_INVALID_VERSION
public final P2Context p2Context
public final LogVerifier logVerifier
private TargetDefinitionResolver subject
public void initContext()
throws java.lang.Exception
java.lang.Exceptionstatic java.util.List<TargetEnvironment> defaultEnvironments()
public void testResolveNoLocations()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveOtherLocationYieldsWarning()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveMultipleUnits()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveMultipleLocations()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveMultipleRepositories()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveNoRepositories()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveIncludesDependencies()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveDependenciesAcrossLocations()
throws java.lang.Exception
java.lang.Exceptionpublic void testMissingUnit()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnitOnlyLookedUpInLocation()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnitWithWildcardVersion()
public void testUnitWithExactVersion()
public void testUnitWithWrongVersionYieldsSyntaxException()
throws java.lang.Exception
java.lang.Exceptionpublic void testInvalidRepository()
throws java.lang.Exception
java.lang.Exceptionpublic void testResolveWithBundleInclusionListYieldsWarning()
static <T> org.hamcrest.Matcher<java.util.Collection<T>> bagEquals(java.util.Collection<T> collection)
static java.util.Collection<org.eclipse.equinox.p2.metadata.IVersionedId> versionedIdsOf(TargetDefinitionContent content)
static java.util.Collection<org.eclipse.equinox.p2.metadata.IVersionedId> versionedIdList(org.eclipse.equinox.p2.metadata.IVersionedId... ids)
static TargetDefinition definitionWith(TargetDefinition.Location... locations)