diff --git a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/DevConfigProfileTest.java b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/DevConfigProfileTest.java index d8aade14..dc7760b4 100644 --- a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/DevConfigProfileTest.java +++ b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/DevConfigProfileTest.java @@ -16,16 +16,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.eclipse.microprofile.config.tck.profile; - import static org.hamcrest.MatcherAssert.assertThat; - import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; - import javax.enterprise.context.Dependent; import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; @@ -44,11 +40,10 @@ /** * Test cases for Config profile - * + * * @author Emily Jiang */ public class DevConfigProfileTest extends Arquillian { - @Deployment public static Archive deployment() { JavaArchive testJar = ShrinkWrap @@ -63,13 +58,13 @@ public static Archive deployment() { "vehicle.name=car"), "microprofile-config.properties") .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") - .as(JavaArchive.class); + .as(JavaArchive.class); WebArchive war = ShrinkWrap .create(WebArchive.class, "DevConfigProfileTest.war") .addAsLibrary(testJar); return war; - + } @Test @@ -87,5 +82,5 @@ public static class ProfilePropertyBean { public String getConfigProperty() { return vehicleName; } - } + } } diff --git a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/InvalidConfigProfileTest.java b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/InvalidConfigProfileTest.java index bf37d03c..92122b15 100644 --- a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/InvalidConfigProfileTest.java +++ b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/InvalidConfigProfileTest.java @@ -16,23 +16,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.eclipse.microprofile.config.tck.profile; - import static org.hamcrest.MatcherAssert.assertThat; - import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; - import javax.enterprise.context.Dependent; import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; -import org.eclipse.microprofile.config.tck.base.AbstractTest; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.Archive; @@ -45,11 +40,10 @@ /** * Test cases for Config profile - * + * * @author Emily Jiang */ public class InvalidConfigProfileTest extends Arquillian { - @Deployment public static Archive deployment() { JavaArchive testJar = ShrinkWrap @@ -66,8 +60,6 @@ public static Archive deployment() { .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") .as(JavaArchive.class); - AbstractTest.addFile(testJar, "META-INF/microprofile-config.properties"); - WebArchive war = ShrinkWrap .create(WebArchive.class, "InvalidConfigProfileTest.war") .addAsLibrary(testJar); @@ -89,5 +81,5 @@ public static class ProfilePropertyBean { public String getConfigProperty() { return vehicleName; } - } + } } diff --git a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/ProdProfileTest.java b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/ProdProfileTest.java index e9c9d8cf..a5ac2321 100644 --- a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/ProdProfileTest.java +++ b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/ProdProfileTest.java @@ -16,23 +16,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.eclipse.microprofile.config.tck.profile; - import static org.hamcrest.MatcherAssert.assertThat; - import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; - import javax.enterprise.context.Dependent; import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; -import org.eclipse.microprofile.config.tck.base.AbstractTest; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.Archive; @@ -45,11 +40,10 @@ /** * Test cases for Config profile - * + * * @author Emily Jiang */ public class ProdProfileTest extends Arquillian { - @Deployment public static Archive deployment() { JavaArchive testJar = ShrinkWrap @@ -66,8 +60,6 @@ public static Archive deployment() { .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") .as(JavaArchive.class); - AbstractTest.addFile(testJar, "META-INF/microprofile-config.properties"); - WebArchive war = ShrinkWrap .create(WebArchive.class, "ProdProfileTest.war") .addAsLibrary(testJar); @@ -89,5 +81,5 @@ public static class ProfilePropertyBean { public String getConfigProperty() { return vehicleName; } - } + } } diff --git a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestConfigProfileTest.java b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestConfigProfileTest.java index 96905f90..37d8b91a 100644 --- a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestConfigProfileTest.java +++ b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestConfigProfileTest.java @@ -16,23 +16,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.eclipse.microprofile.config.tck.profile; - import static org.hamcrest.MatcherAssert.assertThat; - import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; - import javax.enterprise.context.Dependent; import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; -import org.eclipse.microprofile.config.tck.base.AbstractTest; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.Archive; @@ -45,11 +40,10 @@ /** * Test cases for Config profile - * + * * @author Emily Jiang */ public class TestConfigProfileTest extends Arquillian { - @Deployment public static Archive deployment() { JavaArchive testJar = ShrinkWrap @@ -66,13 +60,10 @@ public static Archive deployment() { .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") .as(JavaArchive.class); - AbstractTest.addFile(testJar, "META-INF/microprofile-config.properties"); - WebArchive war = ShrinkWrap .create(WebArchive.class, "TestConfigProfileTest.war") .addAsLibrary(testJar); return war; - } @Test @@ -90,5 +81,5 @@ public static class ProfilePropertyBean { public String getConfigProperty() { return vehicleName; } - } + } } diff --git a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestCustomConfigProfile.java b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestCustomConfigProfile.java index 6c54dcad..aaa8e8b7 100644 --- a/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestCustomConfigProfile.java +++ b/tck/src/main/java/org/eclipse/microprofile/config/tck/profile/TestCustomConfigProfile.java @@ -16,16 +16,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.eclipse.microprofile.config.tck.profile; - import static org.hamcrest.MatcherAssert.assertThat; - import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; - import javax.enterprise.context.Dependent; import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; @@ -33,7 +29,6 @@ import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.config.spi.ConfigSource; -import org.eclipse.microprofile.config.tck.base.AbstractTest; import org.eclipse.microprofile.config.tck.configsources.CustomConfigProfileConfigSource; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; @@ -47,11 +42,10 @@ /** * Test cases for Config profile - * + * * @author Emily Jiang */ public class TestCustomConfigProfile extends Arquillian { - @Deployment public static Archive deployment() { JavaArchive testJar = ShrinkWrap @@ -69,13 +63,10 @@ public static Archive deployment() { .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") .as(JavaArchive.class); - AbstractTest.addFile(testJar, "META-INF/microprofile-config.properties"); - WebArchive war = ShrinkWrap .create(WebArchive.class, "TestConfigProfileTest.war") .addAsLibrary(testJar); return war; - } @Test @@ -93,5 +84,5 @@ public static class ProfilePropertyBean { public String getConfigProperty() { return vehicleName; } - } + } }