public class MirrorApplicationServiceTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private BuildContext |
context |
private static java.util.List<TargetEnvironment> |
DEFAULT_ENVIRONMENTS |
private static java.lang.String |
DEFAULT_NAME |
private static java.lang.String |
DEFAULT_QUALIFIER |
private DestinationRepositoryDescriptor |
destinationRepo |
private static java.lang.String |
FEATURE_PATCH |
private static org.eclipse.equinox.p2.metadata.VersionedId |
FEATURE_PATCH_IU |
LogVerifier |
logVerifier |
private static java.lang.String |
SIMPLE_FEATURE |
private static org.eclipse.equinox.p2.metadata.VersionedId |
SIMPLE_FEATURE_IU |
private MirrorApplicationServiceImpl |
subject |
org.junit.rules.TemporaryFolder |
tempFolder |
| Constructor and Description |
|---|
MirrorApplicationServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
initTestContext() |
(package private) static java.io.File |
repoFile(DestinationRepositoryDescriptor repo,
java.lang.String path) |
private static java.util.Collection<DependencySeed> |
seedFor(org.eclipse.equinox.p2.metadata.VersionedId... units) |
static RepositoryReferences |
sourceRepos(java.lang.String... repoIds) |
private static java.util.Set<org.eclipse.equinox.p2.metadata.IRequirement> |
strictRequirementTo(org.eclipse.equinox.p2.metadata.VersionedId unit) |
void |
testMirrorFeatureAndPatch() |
void |
testMirrorFeatureWithContent() |
void |
testMirrorForSeedWithNullIU() |
void |
testMirrorNothing() |
void |
testMirrorPatch() |
void |
testMirrorWithMissingMandatoryContent() |
private static final java.lang.String SIMPLE_FEATURE
private static final org.eclipse.equinox.p2.metadata.VersionedId SIMPLE_FEATURE_IU
private static final java.lang.String FEATURE_PATCH
private static final org.eclipse.equinox.p2.metadata.VersionedId FEATURE_PATCH_IU
private static final java.lang.String DEFAULT_NAME
private static final java.lang.String DEFAULT_QUALIFIER
private static final java.util.List<TargetEnvironment> DEFAULT_ENVIRONMENTS
private BuildContext context
private DestinationRepositoryDescriptor destinationRepo
private MirrorApplicationServiceImpl subject
public final org.junit.rules.TemporaryFolder tempFolder
public final LogVerifier logVerifier
public void initTestContext()
throws java.lang.Exception
java.lang.Exceptionpublic void testMirrorNothing()
throws java.lang.Exception
java.lang.Exceptionpublic void testMirrorFeatureWithContent()
throws java.lang.Exception
java.lang.Exceptionpublic void testMirrorPatch()
throws java.lang.Exception
java.lang.Exceptionpublic void testMirrorFeatureAndPatch()
throws java.lang.Exception
java.lang.Exceptionpublic void testMirrorWithMissingMandatoryContent()
throws java.lang.Exception
java.lang.Exceptionpublic void testMirrorForSeedWithNullIU()
throws java.lang.Exception
java.lang.Exceptionpublic static RepositoryReferences sourceRepos(java.lang.String... repoIds)
private static java.util.Collection<DependencySeed> seedFor(org.eclipse.equinox.p2.metadata.VersionedId... units)
private static java.util.Set<org.eclipse.equinox.p2.metadata.IRequirement> strictRequirementTo(org.eclipse.equinox.p2.metadata.VersionedId unit)
static java.io.File repoFile(DestinationRepositoryDescriptor repo, java.lang.String path)