Search in sources :

Example 6 with ModelTestControllerVersion

use of org.jboss.as.model.test.ModelTestControllerVersion in project wildfly by wildfly.

the class Ejb3TransformersTestCase method testRejectionsEAP630.

@Test
public void testRejectionsEAP630() throws Exception {
    ModelTestControllerVersion controller = ModelTestControllerVersion.EAP_6_3_0;
    this.testRejections(ModelVersion.create(1, 2, 1), controller, formatLegacySubsystemArtifact(controller), formatArtifact("org.jboss.as:jboss-as-threads:%s", controller), LEGACY_EJB_CLIENT_ARTIFACT);
}
Also used : ModelTestControllerVersion(org.jboss.as.model.test.ModelTestControllerVersion) AbstractSubsystemBaseTest(org.jboss.as.subsystem.test.AbstractSubsystemBaseTest) Test(org.junit.Test)

Example 7 with ModelTestControllerVersion

use of org.jboss.as.model.test.ModelTestControllerVersion in project wildfly by wildfly.

the class Ejb3TransformersTestCase method testTransformerEAP620.

@Test
public void testTransformerEAP620() throws Exception {
    ModelTestControllerVersion controller = ModelTestControllerVersion.EAP_6_2_0;
    testTransformation(ModelVersion.create(1, 2, 1), controller, formatLegacySubsystemArtifact(controller), formatArtifact("org.jboss.as:jboss-as-threads:%s", controller));
}
Also used : ModelTestControllerVersion(org.jboss.as.model.test.ModelTestControllerVersion) AbstractSubsystemBaseTest(org.jboss.as.subsystem.test.AbstractSubsystemBaseTest) Test(org.junit.Test)

Example 8 with ModelTestControllerVersion

use of org.jboss.as.model.test.ModelTestControllerVersion in project wildfly by wildfly.

the class Ejb3TransformersTestCase method testTransformerEAP630.

@Test
public void testTransformerEAP630() throws Exception {
    ModelTestControllerVersion controller = ModelTestControllerVersion.EAP_6_3_0;
    testTransformation(ModelVersion.create(1, 2, 1), controller, formatLegacySubsystemArtifact(controller), formatArtifact("org.jboss.as:jboss-as-threads:%s", controller));
}
Also used : ModelTestControllerVersion(org.jboss.as.model.test.ModelTestControllerVersion) AbstractSubsystemBaseTest(org.jboss.as.subsystem.test.AbstractSubsystemBaseTest) Test(org.junit.Test)

Example 9 with ModelTestControllerVersion

use of org.jboss.as.model.test.ModelTestControllerVersion in project wildfly by wildfly.

the class Ejb3TransformersTestCase method testRejectionsEAP640.

@Test
public void testRejectionsEAP640() throws Exception {
    ModelTestControllerVersion controller = ModelTestControllerVersion.EAP_6_4_0;
    this.testRejections(ModelVersion.create(1, 3, 0), controller, formatLegacySubsystemArtifact(controller), formatArtifact("org.jboss.as:jboss-as-threads:%s", controller), LEGACY_EJB_CLIENT_ARTIFACT);
}
Also used : ModelTestControllerVersion(org.jboss.as.model.test.ModelTestControllerVersion) AbstractSubsystemBaseTest(org.jboss.as.subsystem.test.AbstractSubsystemBaseTest) Test(org.junit.Test)

Example 10 with ModelTestControllerVersion

use of org.jboss.as.model.test.ModelTestControllerVersion in project wildfly by wildfly.

the class DatasourcesSubsystemTestCase method testTransformerEAP7FullConfiguration.

/**
     * Tests transformation of model from latest version which works well in EAP 7.0.0 without setting up FailedOperationTransformationConfig.
     *
     * @throws Exception
     */
private void testTransformerEAP7FullConfiguration(String subsystemXml) throws Exception {
    ModelTestControllerVersion eap7ControllerVersion = ModelTestControllerVersion.EAP_7_0_0;
    ModelVersion eap7ModelVersion = ModelVersion.create(4, 0, 0);
    KernelServicesBuilder builder = createKernelServicesBuilder(AdditionalInitialization.MANAGEMENT);
    KernelServices mainServices = initialKernelServices(builder, eap7ControllerVersion, eap7ModelVersion);
    List<ModelNode> ops = builder.parseXmlResource(subsystemXml);
    ModelTestUtils.checkFailedTransformedBootOperations(mainServices, eap7ModelVersion, ops, FailedOperationTransformationConfig.NO_FAILURES);
}
Also used : KernelServices(org.jboss.as.subsystem.test.KernelServices) ModelTestControllerVersion(org.jboss.as.model.test.ModelTestControllerVersion) ModelVersion(org.jboss.as.controller.ModelVersion) ModelNode(org.jboss.dmr.ModelNode) KernelServicesBuilder(org.jboss.as.subsystem.test.KernelServicesBuilder)

Aggregations

ModelTestControllerVersion (org.jboss.as.model.test.ModelTestControllerVersion)11 Test (org.junit.Test)8 AbstractSubsystemBaseTest (org.jboss.as.subsystem.test.AbstractSubsystemBaseTest)6 ModelVersion (org.jboss.as.controller.ModelVersion)5 KernelServices (org.jboss.as.subsystem.test.KernelServices)5 KernelServicesBuilder (org.jboss.as.subsystem.test.KernelServicesBuilder)5 ModelNode (org.jboss.dmr.ModelNode)4 FailedOperationTransformationConfig (org.jboss.as.model.test.FailedOperationTransformationConfig)3 PathAddress (org.jboss.as.controller.PathAddress)1