use of com.hazelcast.buildutils.HazelcastManifestTransformer.PackageDefinition in project hazelcast by hazelcast.
the class PackageDefinitionTest method testBuildDefinition_withUses.
@Test
public void testBuildDefinition_withUses() {
String definition = new PackageDefinition("packageName", false, null, singleton("myUsage")).buildDefinition(false);
assertContains(definition, "packageName");
assertContains(definition, "uses:=\"myUsage\"");
definition = new PackageDefinition("packageName", false, null, uses).buildDefinition(false);
assertContains(definition, "packageName");
assertNotContains(definition, "uses:=");
}
use of com.hazelcast.buildutils.HazelcastManifestTransformer.PackageDefinition in project hazelcast by hazelcast.
the class InstructionDefinitionTest method setUp.
@Before
public void setUp() {
PackageDefinition definition = new PackageDefinition("packageName", true, "version", Collections.<String>emptySet());
Instruction instruction = mock(Instruction.class);
instructionDefinition = new InstructionDefinition(definition, instruction);
}
use of com.hazelcast.buildutils.HazelcastManifestTransformer.PackageDefinition in project hazelcast by hazelcast.
the class PackageDefinitionTest method setUp.
@Before
public void setUp() {
packageDefinition = new PackageDefinition("packageName", true, "3.8", uses);
packageDefinitionSameAttributes = new PackageDefinition("packageName", true, "3.8", uses);
packageDefinitionOtherResolutionOptional = new PackageDefinition("packageName", false, "3.8", uses);
packageDefinitionOtherVersion = new PackageDefinition("packageName", true, "3.7", uses);
packageDefinitionOtherPackageName = new PackageDefinition("otherPackageName", true, "3.8", uses);
}
use of com.hazelcast.buildutils.HazelcastManifestTransformer.PackageDefinition in project hazelcast by hazelcast.
the class PackageDefinitionTest method testBuildDefinition_withResolutionOptional.
@Test
public void testBuildDefinition_withResolutionOptional() {
String definition = new PackageDefinition("packageName", true, null, uses).buildDefinition(true);
assertContains(definition, "packageName");
assertContains(definition, "resolution:=optional");
definition = new PackageDefinition("packageName", false, null, uses).buildDefinition(true);
assertContains(definition, "packageName");
assertNotContains(definition, "resolution:=");
definition = new PackageDefinition("packageName", true, null, uses).buildDefinition(false);
assertContains(definition, "packageName");
assertNotContains(definition, "resolution:=");
}
use of com.hazelcast.buildutils.HazelcastManifestTransformer.PackageDefinition in project hazelcast by hazelcast.
the class PackageDefinitionTest method testBuildDefinition_withVersion.
@Test
public void testBuildDefinition_withVersion() {
String definition = new PackageDefinition("packageName", false, "3.8", uses).buildDefinition(false);
assertContains(definition, "packageName");
assertContains(definition, "version=3.8");
definition = new PackageDefinition("packageName", false, null, uses).buildDefinition(false);
assertContains(definition, "packageName");
assertNotContains(definition, "version=");
}
Aggregations