public class TargetPlatformFilterEvaluatorTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static TargetPlatformFilter.CapabilityPattern |
ALL_MULTIVERSION_BUNDLES |
private static java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
baselineUnits |
LogVerifier |
logVerifier |
static P2Context |
p2Context |
private TargetPlatformFilterEvaluator |
subject |
private java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
workUnits |
Constructor and Description |
---|
TargetPlatformFilterEvaluatorTest() |
Modifier and Type | Method and Description |
---|---|
(package private) static org.hamcrest.Matcher<java.util.Collection<?>> |
hasSize(int expectedSize) |
static void |
initTestUnits() |
private static java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
loadTestUnits() |
private TargetPlatformFilterEvaluator |
newEvaluator(java.util.List<TargetPlatformFilter> filters) |
private TargetPlatformFilterEvaluator |
newEvaluator(TargetPlatformFilter filter) |
private java.util.Collection<java.lang.String> |
removedUnits() |
void |
setUp() |
void |
testNoFilters() |
void |
testNonParsableVersion() |
void |
testNonParsableVersionRange() |
void |
testRemoveAllOfBundleId() |
void |
testRemoveAllOfUnitId() |
void |
testRestrictPackageProvider() |
void |
testRestrictPackageVersionInShortNotation() |
void |
testRestrictToExactVersion() |
void |
testRestrictToVersionRange() |
void |
testUnitAndBundleIdDistinction() |
void |
testWarningIfRestrictionRemovesAll() |
private static final TargetPlatformFilter.CapabilityPattern ALL_MULTIVERSION_BUNDLES
public static final P2Context p2Context
public final LogVerifier logVerifier
private static java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> baselineUnits
private java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> workUnits
private TargetPlatformFilterEvaluator subject
public static void initTestUnits() throws java.lang.Exception
java.lang.Exception
public void setUp() throws java.lang.Exception
java.lang.Exception
private static java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> loadTestUnits() throws java.lang.Exception
java.lang.Exception
private TargetPlatformFilterEvaluator newEvaluator(java.util.List<TargetPlatformFilter> filters)
private TargetPlatformFilterEvaluator newEvaluator(TargetPlatformFilter filter)
public void testNoFilters()
public void testRemoveAllOfBundleId() throws java.lang.Exception
java.lang.Exception
public void testRemoveAllOfUnitId() throws java.lang.Exception
java.lang.Exception
public void testUnitAndBundleIdDistinction() throws java.lang.Exception
java.lang.Exception
public void testRestrictToExactVersion() throws java.lang.Exception
java.lang.Exception
public void testRestrictToVersionRange() throws java.lang.Exception
java.lang.Exception
public void testRestrictPackageProvider() throws java.lang.Exception
java.lang.Exception
public void testRestrictPackageVersionInShortNotation() throws java.lang.Exception
java.lang.Exception
public void testWarningIfRestrictionRemovesAll() throws java.lang.Exception
java.lang.Exception
public void testNonParsableVersion() throws java.lang.Exception
java.lang.Exception
public void testNonParsableVersionRange() throws java.lang.Exception
java.lang.Exception
private java.util.Collection<java.lang.String> removedUnits()
static org.hamcrest.Matcher<java.util.Collection<?>> hasSize(int expectedSize)