Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5ABB1200CE7 for ; Sat, 16 Sep 2017 15:19:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5966C1609D6; Sat, 16 Sep 2017 13:19:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2E35B1609D4 for ; Sat, 16 Sep 2017 15:19:39 +0200 (CEST) Received: (qmail 94194 invoked by uid 500); 16 Sep 2017 13:19:38 -0000 Mailing-List: contact commits-help@tamaya.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tamaya.incubator.apache.org Delivered-To: mailing list commits@tamaya.incubator.apache.org Received: (qmail 94184 invoked by uid 99); 16 Sep 2017 13:19:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Sep 2017 13:19:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7E69EC067D for ; Sat, 16 Sep 2017 13:19:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.222 X-Spam-Level: X-Spam-Status: No, score=-4.222 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id r59GC_A4QG20 for ; Sat, 16 Sep 2017 13:19:32 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id D220A5F665 for ; Sat, 16 Sep 2017 13:19:30 +0000 (UTC) Received: (qmail 94172 invoked by uid 99); 16 Sep 2017 13:19:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Sep 2017 13:19:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4D50CF554A; Sat, 16 Sep 2017 13:19:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: plexus@apache.org To: commits@tamaya.incubator.apache.org Date: Sat, 16 Sep 2017 13:19:29 -0000 Message-Id: In-Reply-To: <70e93ebcb1dc47b089bca200fedd0f52@git.apache.org> References: <70e93ebcb1dc47b089bca200fedd0f52@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] incubator-tamaya git commit: Disabled all tests in core. archived-at: Sat, 16 Sep 2017 13:19:41 -0000 Disabled all tests in core. Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/5080c04e Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/5080c04e Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/5080c04e Branch: refs/heads/tamaya-289 Commit: 5080c04e3b9bcb6823b47cb59e0076a62a2b9df4 Parents: 32be37e Author: Oliver B. Fischer Authored: Sat Sep 16 15:19:21 2017 +0200 Committer: Oliver B. Fischer Committed: Sat Sep 16 15:19:21 2017 +0200 ---------------------------------------------------------------------- .../org/apache/tamaya/ConfigExceptionTest.java | 5 +- .../org/apache/tamaya/ConfigurationTest.java | 11 ++-- .../java/org/apache/tamaya/TypeLiteralTest.java | 19 +++--- .../tamaya/spi/ConversionContextTest.java | 15 ++--- .../apache/tamaya/spi/FilterContextTest.java | 19 +++--- .../tamaya/spi/PropertyValueBuilderTest.java | 57 +++++++++--------- .../apache/tamaya/spi/PropertyValueTest.java | 63 ++++++++++---------- .../tamaya/spi/ServiceContextManagerTest.java | 5 +- .../apache/tamaya/spi/ServiceContextTest.java | 11 ++-- .../core/ConfigurationContextBuilderTest.java | 47 ++++++++------- .../apache/tamaya/core/ConfigurationTest.java | 5 +- .../tamaya/core/internal/BannerManagerTest.java | 4 +- .../DefaultConfigurationContextBuilderTest.java | 18 +++--- .../DefaultConfigurationContextTest.java | 24 ++++---- .../DefaultConfigurationProviderTest.java | 15 ++--- .../core/internal/DefaultConfigurationTest.java | 31 +++++----- .../internal/DefaultServiceContextTest.java | 15 ++--- .../internal/PriorityServiceComparatorTest.java | 3 +- .../internal/PropertyConverterManagerTest.java | 19 +++--- .../converters/BigDecimalConverterTest.java | 11 ++-- .../converters/BooleanConverterTest.java | 3 +- .../internal/converters/ByteConverterTest.java | 7 ++- .../internal/converters/CharConverterTest.java | 15 ++--- .../internal/converters/ClassConverterTest.java | 11 ++-- .../converters/CurrencyConverterTest.java | 17 +++--- .../converters/DoubleConverterTest.java | 23 +++---- .../internal/converters/EnumConverterTest.java | 9 +-- .../internal/converters/FloatConverterTest.java | 23 +++---- .../converters/IntegerConverterTest.java | 13 ++-- .../internal/converters/LongConverterTest.java | 13 ++-- .../converters/NumberConverterTest.java | 11 ++-- .../internal/converters/ShortConverterTest.java | 13 ++-- .../internal/converters/URIConverterTest.java | 11 ++-- .../internal/converters/URLConverterTest.java | 11 ++-- .../propertysource/BasePropertySourceTest.java | 5 +- .../propertysource/CLIPropertySourceTest.java | 3 +- .../EnvironmentPropertySourceTest.java | 11 ++-- .../PropertiesFilePropertySourceTest.java | 7 ++- .../SimplePropertySourceTest.java | 9 +-- .../SystemPropertySourceTest.java | 9 +-- .../provider/JavaConfigurationProviderTest.java | 3 +- .../distributed/DisplayRegistrationTest.java | 12 ++-- 42 files changed, 337 insertions(+), 299 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/ConfigExceptionTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/ConfigExceptionTest.java b/code/api/src/test/java/org/apache/tamaya/ConfigExceptionTest.java index fa7da0a..8cb7df6 100644 --- a/code/api/src/test/java/org/apache/tamaya/ConfigExceptionTest.java +++ b/code/api/src/test/java/org/apache/tamaya/ConfigExceptionTest.java @@ -18,6 +18,7 @@ */ package org.apache.tamaya; +import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; @@ -27,14 +28,14 @@ import static org.junit.Assert.*; */ public class ConfigExceptionTest { - @Test + @Test @Ignore public void testCreationMessage(){ ConfigException ex = new ConfigException("test"); assertNull(ex.getCause()); assertEquals(ex.getMessage(), "test"); } - @Test + @Test @Ignore public void testCreationMessageThrowable(){ Exception e = new IllegalStateException("blabla"); ConfigException ex = new ConfigException("test", e); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/ConfigurationTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/ConfigurationTest.java b/code/api/src/test/java/org/apache/tamaya/ConfigurationTest.java index ecbb75c..433ac87 100644 --- a/code/api/src/test/java/org/apache/tamaya/ConfigurationTest.java +++ b/code/api/src/test/java/org/apache/tamaya/ConfigurationTest.java @@ -18,6 +18,7 @@ */ package org.apache.tamaya; +import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; @@ -27,7 +28,7 @@ import static org.junit.Assert.*; */ public class ConfigurationTest { - @Test + @Test @Ignore public void testget() throws Exception { assertEquals(Boolean.TRUE, ConfigurationProvider.getConfiguration().get("booleanTrue", Boolean.class)); assertEquals(Boolean.FALSE, ConfigurationProvider.getConfiguration().get("booleanFalse", Boolean.class)); @@ -38,24 +39,24 @@ public class ConfigurationTest { assertEquals(Double.MAX_VALUE, ConfigurationProvider.getConfiguration().get("double", Double.class), 0.0d); } - @Test + @Test @Ignore public void testGetBoolean() throws Exception { assertTrue(ConfigurationProvider.getConfiguration().get("booleanTrue", Boolean.class)); assertFalse(ConfigurationProvider.getConfiguration().get("booleanFalse", Boolean.class)); assertFalse(ConfigurationProvider.getConfiguration().get("foorBar", Boolean.class)); } - @Test + @Test @Ignore public void testGetInteger() throws Exception { assertEquals(Integer.MAX_VALUE,(int) ConfigurationProvider.getConfiguration().get("int", Integer.class)); } - @Test + @Test @Ignore public void testGetLong() throws Exception { assertEquals(Long.MAX_VALUE,(long) ConfigurationProvider.getConfiguration().get("long", Long.class)); } - @Test + @Test @Ignore public void testGetDouble() throws Exception { assertEquals(Double.MAX_VALUE,ConfigurationProvider.getConfiguration().get("double", Double.class), 0.0d); } http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/TypeLiteralTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/TypeLiteralTest.java b/code/api/src/test/java/org/apache/tamaya/TypeLiteralTest.java index f3ff217..90d4484 100644 --- a/code/api/src/test/java/org/apache/tamaya/TypeLiteralTest.java +++ b/code/api/src/test/java/org/apache/tamaya/TypeLiteralTest.java @@ -18,6 +18,7 @@ */ package org.apache.tamaya; +import org.junit.Ignore; import org.junit.Test; import java.lang.reflect.Type; @@ -34,19 +35,19 @@ import static org.junit.Assert.assertEquals; */ public class TypeLiteralTest { - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorRequiresNonNullParameter() { new TypeLiteral>(null){}; } - @Test + @Test @Ignore public void test_constrcutor(){ TypeLiteral> listTypeLiteral = new TypeLiteral>(){}; assertEquals(List.class, listTypeLiteral.getRawType()); assertEquals(String.class, TypeLiteral.getTypeParameters(listTypeLiteral.getType())[0]); } - @Test + @Test @Ignore public void test_of(){ class MyListClass extends ArrayList{} TypeLiteral listTypeLiteral = TypeLiteral.of(MyListClass.class); @@ -54,35 +55,35 @@ public class TypeLiteralTest { assertEquals(MyListClass.class, listTypeLiteral.getType()); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void ofDoesNotAcceptNullAsParamter() { TypeLiteral.of(null); } - @Test + @Test @Ignore public void test_getTypeParameter(){ TypeLiteral> listTypeLiteral = new TypeLiteral>(){}; assertEquals(List.class, listTypeLiteral.getRawType()); assertEquals(String.class, TypeLiteral.getTypeParameters(listTypeLiteral.getType())[0]); } - @Test + @Test @Ignore public void test_getGenericInterfaceTypeParameter(){ class MyListClass extends ArrayList implements List{} assertEquals(String.class, getGenericInterfaceTypeParameters(MyListClass.class, List.class)[0]); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getGenericInterfaceTypeParametersRequiredNonNullValueForClassParameter() { getGenericInterfaceTypeParameters(null, Iterator.class); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getGenericInterfaceTypeParametersRequiredNonNullValueForInterfaceParameter() { getGenericInterfaceTypeParameters(String.class, null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getTypeParametersRequiresNonNullParameter() { getTypeParameters(null); } http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java b/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java index 30f5aba..d5ca972 100644 --- a/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java +++ b/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java @@ -22,6 +22,7 @@ import org.apache.tamaya.ConfigOperator; import org.apache.tamaya.ConfigQuery; import org.apache.tamaya.Configuration; import org.apache.tamaya.TypeLiteral; +import org.junit.Ignore; import org.junit.Test; import java.net.InetAddress; @@ -34,25 +35,25 @@ import static org.junit.Assert.*; * Tests for {@link ConversionContext}, created by atsticks on 20.08.16. */ public class ConversionContextTest { - @Test + @Test @Ignore public void getKey() throws Exception { ConversionContext ctx = new ConversionContext.Builder("getKey", TypeLiteral.of(String.class)).build(); assertEquals("getKey", ctx.getKey()); } - @Test + @Test @Ignore public void getTargetType() throws Exception { ConversionContext ctx = new ConversionContext.Builder("getTargetType", TypeLiteral.of(String.class)).build(); assertEquals(TypeLiteral.of(String.class), ctx.getTargetType()); } - @Test + @Test @Ignore public void getAnnotatedElement() throws Exception { ConversionContext ctx = new ConversionContext.Builder("getAnnotatedElement", TypeLiteral.of(List.class)).build(); assertNull(ctx.getAnnotatedElement()); } - @Test + @Test @Ignore public void testConfiguration() throws Exception { Configuration config = new MyConfiguration(); ConversionContext ctx = new ConversionContext.Builder("testConfiguration", TypeLiteral.of(List.class)) @@ -60,21 +61,21 @@ public class ConversionContextTest { assertEquals(config, ctx.getConfiguration()); } - @Test + @Test @Ignore public void testSupportedFormats() throws Exception { ConversionContext ctx = new ConversionContext.Builder("getAnnotatedElement", TypeLiteral.of(List.class)) .addSupportedFormats(MyConverter.class, "0.0.0.0/nnn").build(); assertTrue(ctx.getSupportedFormats().contains("0.0.0.0/nnn (MyConverter)")); } - @Test + @Test @Ignore public void testToString() throws Exception { ConversionContext ctx = new ConversionContext.Builder("getAnnotatedElement", TypeLiteral.of(List.class)) .addSupportedFormats(MyConverter.class, "0.0.0.0/nnn").build(); assertEquals("ConversionContext{configuration=null, key='getAnnotatedElement', targetType=TypeLiteral{type=interface java.util.List}, annotatedElement=null, supportedFormats=[0.0.0.0/nnn (MyConverter)]}", ctx.toString()); } - @Test + @Test @Ignore public void getConfigurationContext() throws Exception { ConfigurationContext context = new MyConfigurationContext(); ConversionContext ctx = new ConversionContext.Builder("getAnnotatedElement", TypeLiteral.of(List.class)) http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/spi/FilterContextTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/spi/FilterContextTest.java b/code/api/src/test/java/org/apache/tamaya/spi/FilterContextTest.java index 822113a..0375001 100644 --- a/code/api/src/test/java/org/apache/tamaya/spi/FilterContextTest.java +++ b/code/api/src/test/java/org/apache/tamaya/spi/FilterContextTest.java @@ -19,6 +19,7 @@ package org.apache.tamaya.spi; import org.apache.tamaya.TypeLiteral; +import org.junit.Ignore; import org.junit.Test; import java.util.Collections; @@ -33,32 +34,32 @@ import static org.junit.Assert.*; */ public class FilterContextTest { - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorRequiresNonNullPropertyValueTwoParameterVariant() { new FilterContext(null, new TestConfigContext()); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorRequiresNonNullConfigurationContextTwoParameterVariant() { new FilterContext(PropertyValue.of("a", "b", "s"), null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorRequiresNonNullPropertyValueThreeParameterVariant() { new FilterContext(null, Collections.EMPTY_MAP, new TestConfigContext()); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorRequiresNonNullConfigurationContextThreeParameterVariant() { new FilterContext(PropertyValue.of("a", "b", "s"), Collections.EMPTY_MAP, null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorRequiresNonNullMapForConfigEntriesThreeParameterVariant() { new FilterContext(PropertyValue.of("a", "b", "s"), null, new TestConfigContext()); } - @Test + @Test @Ignore public void getKey() throws Exception { PropertyValue val = PropertyValue.of("getKey", "v", ""); FilterContext ctx = new FilterContext(val, @@ -66,7 +67,7 @@ public class FilterContextTest { assertEquals(val, ctx.getProperty()); } - @Test + @Test @Ignore public void isSinglePropertyScoped() throws Exception { PropertyValue val = PropertyValue.of("isSinglePropertyScoped", "v", ""); FilterContext ctx = new FilterContext(val, new HashMap(), new TestConfigContext()); @@ -75,7 +76,7 @@ public class FilterContextTest { assertEquals(true, ctx.isSinglePropertyScoped()); } - @Test + @Test @Ignore public void getConfigEntries() throws Exception { Map config = new HashMap<>(); for(int i=0;i<10;i++) { @@ -87,7 +88,7 @@ public class FilterContextTest { assertTrue(config != ctx.getConfigEntries()); } - @Test + @Test @Ignore public void testToString() throws Exception { Map config = new HashMap<>(); for(int i=0;i<2;i++) { http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueBuilderTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueBuilderTest.java b/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueBuilderTest.java index 4d6eda9..e6a24c0 100644 --- a/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueBuilderTest.java +++ b/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueBuilderTest.java @@ -18,6 +18,7 @@ */ package org.apache.tamaya.spi; +import org.junit.Ignore; import org.junit.Test; import org.mockito.internal.matchers.Null; @@ -32,7 +33,7 @@ public class PropertyValueBuilderTest { * Tests for PropertyValueBuilder(String) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorWithSingleParameterRequiresNonNullValue() { new PropertyValue(null); } @@ -41,12 +42,12 @@ public class PropertyValueBuilderTest { * Tests for PropertyValueBuilder(String, String) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorWithTwoParametersRequiresNonNullValueForKey() { new PropertyValueBuilder(null, "s"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorWithTwoParametersRequiresNonNullValueForSource() { new PropertyValueBuilder("a", null); } @@ -55,12 +56,12 @@ public class PropertyValueBuilderTest { * Tests for PropertyValueBuilder(String, String, String) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorWithThreeParametersRequiresNonNullValueForSource() { new PropertyValueBuilder("a", "b", null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void constructorWithThreeParametersRequiresNonNullValueForKey() { new PropertyValueBuilder(null, "b", "s"); } @@ -69,22 +70,22 @@ public class PropertyValueBuilderTest { * Tests for addMetaEntry(String, Object) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void addMetaEntryRequiresNonNullParameterForKey() { new PropertyValueBuilder("a", "b", "c").addMetaEntry(null, "a"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void addMetaEntryRequiresNonNullParameterForValue() { new PropertyValueBuilder("a", "b", "c").addMetaEntry("a", null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void setKeyRequiresNonNullParameterForKey() { new PropertyValueBuilder("a", "b", "s").setKey(null); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void setKeyRequiresNonNullParameterForValue() { new PropertyValueBuilder("a", "b", "s").setValue(null); } @@ -93,46 +94,46 @@ public class PropertyValueBuilderTest { * Tests für addMetaEntries(Map) */ - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void addMetaEntriesRequiresNonNullParameter() { new PropertyValueBuilder("a", "b", "s").addMetaEntries(null); } - @Test + @Test @Ignore public void testCreate1(){ new PropertyValueBuilder("k"); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void testCreate1_Null(){ new PropertyValueBuilder(null); } - @Test + @Test @Ignore public void testCreate2(){ new PropertyValueBuilder("k", "source"); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void testCreate2_Null(){ new PropertyValueBuilder("k", null); } - @Test + @Test @Ignore public void testKey() throws Exception { PropertyValueBuilder b = new PropertyValueBuilder("k", "testKey").setValue("v"); PropertyValue val = b.build(); assertEquals(val.getKey(),"k"); } - @Test + @Test @Ignore public void testSource() throws Exception { PropertyValueBuilder b = new PropertyValueBuilder("k", "testSource").setValue("v"); PropertyValue val = b.build(); assertEquals(val.getSource(),"testSource"); } - @Test + @Test @Ignore public void testValue() throws Exception { PropertyValueBuilder b = new PropertyValueBuilder("k", "testValue").setValue("v"); PropertyValue val = b.build(); @@ -140,12 +141,12 @@ public class PropertyValueBuilderTest { assertNull(val.getMetaEntries().get("k")); } - @Test(expected=NullPointerException.class) + @Test (expected=NullPointerException.class) @Ignore public void testKeyNullValue() throws Exception { new PropertyValueBuilder(null, "testKeyNullValue"); } - @Test + @Test @Ignore public void testSetMetaEntries() throws Exception { Map meta = new HashMap<>(); meta.put("1","2"); @@ -162,30 +163,30 @@ public class PropertyValueBuilderTest { assertEquals("b", pv.getMetaEntry("a")); } - @Test + @Test @Ignore public void testGetKey() throws Exception { PropertyValue pv = PropertyValue.builder("k", "testGetKey").setValue("v").build(); assertEquals("k", pv.getKey()); } - @Test + @Test @Ignore public void testGetValue1() throws Exception { PropertyValue pv = PropertyValue.of("k", "v", "testGetValue"); assertEquals("v", pv.getValue()); } - @Test + @Test @Ignore public void testGetValue2() throws Exception { PropertyValue pv = PropertyValue.builder("k", "testGetValue").setValue("v").build(); assertEquals("v", pv.getValue()); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void removeMetaEntryRequiresNonNullParameter() { new PropertyValueBuilder("y").removeMetaEntry(null); } - @Test + @Test @Ignore public void testRemoveMetaEntry() throws Exception { PropertyValue pv = PropertyValue.builder("k", "testGetKey") .setValue("v") @@ -196,12 +197,12 @@ public class PropertyValueBuilderTest { assertNull(pv.getMetaEntry("k")); } - @Test(expected=NullPointerException.class) + @Test (expected=NullPointerException.class) @Ignore public void testSourceNullValue() throws Exception { new PropertyValueBuilder("k", null); } - @Test + @Test @Ignore public void testGetMetaEntries() throws Exception { Map meta = new HashMap<>(); meta.put("1","2"); @@ -212,7 +213,7 @@ public class PropertyValueBuilderTest { assertEquals(meta, pv.getMetaEntries()); } - @Test + @Test @Ignore public void testSetContextData() throws Exception { PropertyValueBuilder b = new PropertyValueBuilder("k", "testSetContextData").setValue("v"); Map context = new HashMap<>(); @@ -230,7 +231,7 @@ public class PropertyValueBuilderTest { assertNull(contextData.getMetaEntry("y")); } - @Test + @Test @Ignore public void testAddContextData() throws Exception { PropertyValueBuilder b = new PropertyValueBuilder("k", "testAddContextData").setValue("v"); b.addMetaEntry("ts", System.currentTimeMillis()); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueTest.java b/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueTest.java index c321984..2956799 100644 --- a/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueTest.java +++ b/code/api/src/test/java/org/apache/tamaya/spi/PropertyValueTest.java @@ -18,6 +18,7 @@ */ package org.apache.tamaya.spi; +import org.junit.Ignore; import org.junit.Test; import java.util.Collections; @@ -28,49 +29,49 @@ import static org.junit.Assert.*; public class PropertyValueTest { - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void mapThreeParameterVariantRequiresNonNullValueForConfigParameter() { PropertyValue.map(null, "a", Collections.EMPTY_MAP); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void mapThreeParameterVariantRequiresNonNullValueForSource() { PropertyValue.map(Collections.EMPTY_MAP, null, Collections.EMPTY_MAP); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void mapThreeParameterVariantRequiresNonNullValueForMetaData() { PropertyValue.map(Collections.EMPTY_MAP, "s", null); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void ofDoesNotAcceptNullAsKey() throws Exception { PropertyValue.of(null, "b", "source"); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void ofDoesNotAcceptNullAsSource() throws Exception { PropertyValue.of("a", "b", null); } - @Test + @Test @Ignore public void testOf(){ assertNotNull(PropertyValue.of("k", "v", "testGetKey")); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void getMetaEntryRequiresNonNullValueForKey() { PropertyValue.of("a", "b", "s").getMetaEntry(null); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void testSetMetaEntriesRequiresNonNullParameter() { new PropertyValueBuilder("a").setMetaEntries(null); } - @Test + @Test @Ignore public void testHashCode(){ assertEquals(PropertyValue.of("k", "v", "testGetKey").hashCode(), PropertyValue.of("k", "v", "testGetKey").hashCode()); @@ -82,7 +83,7 @@ public class PropertyValueTest { PropertyValue.of("k", "v", "2").hashCode()); } - @Test + @Test @Ignore public void testEquals(){ assertEquals(PropertyValue.of("k", "v", "testEquals"), PropertyValue.of("k", "v", "testEquals")); @@ -94,14 +95,14 @@ public class PropertyValueTest { PropertyValue.of("k", "v", "testEquals2")); } - @Test + @Test @Ignore public void testBuilder(){ assertNotNull(PropertyValue.builder("k", "testGetKey")); assertEquals(PropertyValue.of("k", "v", "testEquals"), PropertyValue.builder("k", "testEquals").setValue("v").build()); } - @Test + @Test @Ignore public void testToBuilder(){ assertNotNull(PropertyValue.of("k", "v", "testGetKey").toBuilder()); // round-trip @@ -111,19 +112,19 @@ public class PropertyValueTest { } - @Test + @Test @Ignore public void testGetKey() throws Exception { PropertyValue pv = PropertyValue.of("k", "v", "testGetKey"); assertEquals("k", pv.getKey()); } - @Test + @Test @Ignore public void testGetValue() throws Exception { PropertyValue pv = PropertyValue.of("k", "v", "testGetValue"); assertEquals("v", pv.getValue()); } - @Test + @Test @Ignore public void testGetSource() throws Exception { PropertyValue pv = PropertyValue.of("k", "v", "testGetSource"); assertEquals("testGetSource", pv.getSource()); @@ -131,7 +132,7 @@ public class PropertyValueTest { assertEquals("testGetSource", pv.getSource()); } - @Test + @Test @Ignore public void testGetMetaEntry() throws Exception { PropertyValue pv = PropertyValue.builder("k", "testGetMetaEntry").setValue("v") .addMetaEntry("k", "v2").build(); @@ -141,14 +142,14 @@ public class PropertyValueTest { assertEquals("testGetMetaEntry", pv.getSource()); } - @Test + @Test @Ignore public void testGetMetaEntries() throws Exception { PropertyValue pv = PropertyValue.of("k", "v", "testGetMetaEntries"); assertNotNull(pv.getMetaEntries()); assertTrue(pv.getMetaEntries().isEmpty()); } - @Test + @Test @Ignore public void testMap() throws Exception { Map map = new HashMap<>(); map.put("a", "1"); @@ -167,7 +168,7 @@ public class PropertyValueTest { } } - @Test + @Test @Ignore public void testMapWithMetadata() throws Exception { Map map = new HashMap<>(); map.put("a", "1"); @@ -188,63 +189,63 @@ public class PropertyValueTest { } } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void testInstantiateNoKey1() throws Exception { PropertyValue pv = PropertyValue.builder(null, "testGetKey").setValue("v").build(); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void testInstantiateNoKey2() throws Exception { PropertyValue pv = PropertyValue.of(null, "v", "testGetKey"); } - @Test + @Test @Ignore public void testInstantiateNoValue1() throws Exception { PropertyValue pv = PropertyValue.builder("k", "testGetKey").build(); } - @Test + @Test @Ignore public void testInstantiateNoValue2() throws Exception { PropertyValue pv = PropertyValue.of("k", null, "testGetKey"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void testInstantiateNoSource1() throws Exception { PropertyValue pv = PropertyValue.builder("k", null).setValue("v").build(); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void testInstantiateNoSource2() throws Exception { PropertyValue pv = PropertyValue.of("k", "v", null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void testGetMetaEntry_Null() throws Exception { PropertyValue.of("k", "v", "src").getMetaEntry(null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void builderMethodThreeParameterVariantRequiresNonNullValueAsKey() { PropertyValue.builder(null, "b", "s"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void builderMethodThreeParameterVariantRequiresNonNullValueAsSource() { PropertyValue.builder("A", "b", null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void builderMethodThreeParameterVariantRequiresNonNullValueAsValue() { PropertyValue.builder("A", null, "s"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void builderMethodTwoParameterVariantRequiresNonNullValueAsSource() { PropertyValue.builder(null, "a"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void builderMethodTwoParameterVariantRequiresNonNullValueAsValue() { PropertyValue.builder("A", null); } http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextManagerTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextManagerTest.java b/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextManagerTest.java index 7379555..d434be7 100644 --- a/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextManagerTest.java +++ b/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextManagerTest.java @@ -18,6 +18,7 @@ */ package org.apache.tamaya.spi; +import org.junit.Ignore; import org.junit.Test; import java.io.IOException; @@ -33,7 +34,7 @@ import static org.junit.Assert.*; */ public class ServiceContextManagerTest { - @Test + @Test @Ignore public void setGetServiceContext() throws Exception { ServiceContext prev = ServiceContextManager.getServiceContext(); try { @@ -49,7 +50,7 @@ public class ServiceContextManagerTest { } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void setRequiresNonNullParameter() { ServiceContextManager.set(null); } http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextTest.java ---------------------------------------------------------------------- diff --git a/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextTest.java b/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextTest.java index 652ea1c..d333d06 100644 --- a/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextTest.java +++ b/code/api/src/test/java/org/apache/tamaya/spi/ServiceContextTest.java @@ -28,6 +28,7 @@ import java.io.IOException; import java.net.URL; import java.util.*; +import org.junit.Ignore; import org.junit.Test; public class ServiceContextTest { @@ -73,18 +74,18 @@ public class ServiceContextTest { } }; - @Test + @Test @Ignore public void testOrdinal() throws Exception { assertEquals(1, serviceContext.ordinal()); } - @Test + @Test @Ignore public void testgetService() throws Exception { assertEquals("ServiceContextTest", serviceContext.getService(String.class)); assertNull(serviceContext.getService(Integer.class)); } - @Test + @Test @Ignore public void testGetService() throws Exception { String service = serviceContext.getService(String.class); assertNotNull(service); @@ -93,7 +94,7 @@ public class ServiceContextTest { assertNull(intService); } - @Test + @Test @Ignore public void testGetServices() throws Exception { Collection services = serviceContext.getServices(String.class); assertNotNull(services); @@ -104,7 +105,7 @@ public class ServiceContextTest { assertTrue(intServices.isEmpty()); } - @Test + @Test @Ignore public void testGetInstance() throws Exception { assertNotNull(ServiceContextManager.getServiceContext()); } http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/ConfigurationContextBuilderTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/ConfigurationContextBuilderTest.java b/code/core/src/test/java/org/apache/tamaya/core/ConfigurationContextBuilderTest.java index f1e8ea4..dba510b 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/ConfigurationContextBuilderTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/ConfigurationContextBuilderTest.java @@ -22,6 +22,7 @@ import org.apache.tamaya.ConfigurationProvider; import org.apache.tamaya.TypeLiteral; import org.apache.tamaya.core.internal.DefaultConfigurationContextBuilder; import org.apache.tamaya.spi.*; +import org.junit.Ignore; import org.junit.Test; import java.util.Arrays; @@ -38,7 +39,7 @@ public class ConfigurationContextBuilderTest { private TestPropertySource testPropertySource = new TestPropertySource(){}; - @Test + @Test @Ignore public void setContext() throws Exception { ConfigurationContext context = ConfigurationProvider.getConfiguration().getContext(); ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder() @@ -46,7 +47,7 @@ public class ConfigurationContextBuilderTest { assertEquals(context, b.build()); } - @Test + @Test @Ignore public void addPropertySources_Array() throws Exception { PropertySource testPS2 = new TestPropertySource("addPropertySources_Array", 1); ConfigurationContextBuilder b = new DefaultConfigurationContextBuilder() @@ -67,7 +68,7 @@ public class ConfigurationContextBuilderTest { assertEquals(ctx.getPropertySources().get(0).getName(), "addPropertySources_Array"); } - @Test + @Test @Ignore public void addPropertySources_Collection() throws Exception { PropertySource testPS2 = new TestPropertySource("addPropertySources_Collection", 1); ConfigurationContextBuilder b = new DefaultConfigurationContextBuilder() @@ -90,7 +91,7 @@ public class ConfigurationContextBuilderTest { assertEquals(ctx.getPropertySources().get(0).getName(), "addPropertySources_Collection"); } - @Test + @Test @Ignore public void removePropertySources_Array() throws Exception { PropertySource testPS2 = new TestPropertySource("removePropertySources_Array", 1); ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder() @@ -108,7 +109,7 @@ public class ConfigurationContextBuilderTest { assertTrue(ctx.getPropertySources().size()==1); } - @Test + @Test @Ignore public void removePropertySources_Collection() throws Exception { PropertySource testPS2 = new TestPropertySource("removePropertySources_Array", 1); ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder() @@ -126,7 +127,7 @@ public class ConfigurationContextBuilderTest { assertTrue(ctx.getPropertySources().contains(testPS2)); } - @Test + @Test @Ignore public void addPropertyFilters_Array() throws Exception { PropertyFilter filter1 = new PropertyFilter(){ @Override @@ -152,7 +153,7 @@ public class ConfigurationContextBuilderTest { assertTrue(ctx.getPropertyFilters().size()==2); } - @Test + @Test @Ignore public void addPropertyFilters_Collection() throws Exception { PropertyFilter filter1 = new PropertyFilter(){ @Override @@ -178,7 +179,7 @@ public class ConfigurationContextBuilderTest { assertTrue(ctx.getPropertyFilters().size()==2); } - @Test + @Test @Ignore public void removePropertyFilters_Array() throws Exception { PropertyFilter filter1 = new PropertyFilter(){ @Override @@ -207,7 +208,7 @@ public class ConfigurationContextBuilderTest { assertTrue(ctx.getPropertyFilters().contains(filter2)); } - @Test + @Test @Ignore public void removePropertyFilters_Collection() throws Exception { PropertyFilter filter1 = new PropertyFilter(){ @Override @@ -237,7 +238,7 @@ public class ConfigurationContextBuilderTest { } - @Test + @Test @Ignore public void addPropertyConverters_Array() throws Exception { PropertyConverter converter = new PropertyConverter(){ @@ -257,7 +258,7 @@ public class ConfigurationContextBuilderTest { assertEquals(ctx.getPropertyConverters().size(), 1); } - @Test + @Test @Ignore public void addPropertyConverters_Collection() throws Exception { PropertyConverter converter = new PropertyConverter(){ @@ -279,7 +280,7 @@ public class ConfigurationContextBuilderTest { assertEquals(ctx.getPropertyConverters().size(), 1); } - @Test + @Test @Ignore public void removePropertyConverters_Array() throws Exception { PropertyConverter converter = new PropertyConverter(){ @@ -301,7 +302,7 @@ public class ConfigurationContextBuilderTest { assertEquals(ctx.getPropertyConverters(TypeLiteral.of(String.class)).size(), 0); } - @Test + @Test @Ignore public void removePropertyConverters_Collection() throws Exception { PropertyConverter converter = new PropertyConverter(){ @@ -323,7 +324,7 @@ public class ConfigurationContextBuilderTest { assertEquals(ctx.getPropertyConverters(TypeLiteral.of(String.class)).size(), 0); } - @Test + @Test @Ignore public void setPropertyValueCombinationPolicy() throws Exception { PropertyValueCombinationPolicy combPol = new PropertyValueCombinationPolicy(){ @Override @@ -337,7 +338,7 @@ public class ConfigurationContextBuilderTest { assertEquals(ctx.getPropertyValueCombinationPolicy(), combPol); } - @Test + @Test @Ignore public void increasePriority(){ ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); TestPropertySource[] propertySources = new TestPropertySource[10]; @@ -357,7 +358,7 @@ public class ConfigurationContextBuilderTest { assertEquals(propertySources[propertySources.length-2], b.getPropertySources().get(propertySources.length-1)); } - @Test + @Test @Ignore public void decreasePriority(){ ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); TestPropertySource[] propertySources = new TestPropertySource[10]; @@ -377,7 +378,7 @@ public class ConfigurationContextBuilderTest { assertEquals(propertySources[1], b.getPropertySources().get(0)); } - @Test + @Test @Ignore public void lowestPriority(){ // setup ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); @@ -401,7 +402,7 @@ public class ConfigurationContextBuilderTest { assertEquals(propertySources[5], b.getPropertySources().get(0)); } - @Test + @Test @Ignore public void highestPriority(){ // setup ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); @@ -425,7 +426,7 @@ public class ConfigurationContextBuilderTest { assertEquals(propertySources[5], b.getPropertySources().get(propertySources.length-1)); } - @Test + @Test @Ignore public void sortPropertySources(){ // setup ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); @@ -448,7 +449,7 @@ public class ConfigurationContextBuilderTest { } } - @Test + @Test @Ignore public void sortPropertyFilter(){ // setup ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); @@ -476,7 +477,7 @@ public class ConfigurationContextBuilderTest { } } - @Test + @Test @Ignore public void build() throws Exception { ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); ConfigurationContext ctx = b.build(); @@ -485,7 +486,7 @@ public class ConfigurationContextBuilderTest { assertTrue(ctx.getPropertyFilters().isEmpty()); } - @Test + @Test @Ignore public void testRemoveAllFilters() throws Exception { ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); b.addPropertyFilters(new PropertyFilter(){ @@ -499,7 +500,7 @@ public class ConfigurationContextBuilderTest { assertTrue(b.getPropertyFilters().isEmpty()); } - @Test + @Test @Ignore public void testRemoveAllSources() throws Exception { ConfigurationContextBuilder b = ConfigurationProvider.getConfigurationContextBuilder(); b.addPropertySources(new TestPropertySource()); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java b/code/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java index 6b480e8..692ba61 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java @@ -20,6 +20,7 @@ package org.apache.tamaya.core; import org.apache.tamaya.Configuration; import org.apache.tamaya.ConfigurationProvider; +import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.assertEquals; @@ -34,7 +35,7 @@ import java.util.Set; */ public class ConfigurationTest { - @Test + @Test @Ignore public void testAccess(){ assertNotNull(current()); } @@ -43,7 +44,7 @@ public class ConfigurationTest { return ConfigurationProvider.getConfiguration(); } - @Test + @Test @Ignore public void testContent(){ assertNotNull(current().get("name")); assertNotNull(current().get("name2")); // from default http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/BannerManagerTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/BannerManagerTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/BannerManagerTest.java index a7d6557..fe8d8cc 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/BannerManagerTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/BannerManagerTest.java @@ -29,7 +29,7 @@ import java.security.Permission; public class BannerManagerTest { - @Test + @Test @Ignore public void valueConsoleSendsBannerToSystemOut() { SecurityManager sm = new SecurityManager(); @@ -62,7 +62,7 @@ public class BannerManagerTest { Mockito.verify(printStream, Mockito.atLeastOnce()).println(Mockito.anyString()); } - @Test + @Test @Ignore public void invalidValueAvoidsLoggingToConsonle() { PrintStream standard = System.out; http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilderTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilderTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilderTest.java index 9c9e9a7..8cd8d39 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilderTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilderTest.java @@ -37,7 +37,7 @@ public class DefaultConfigurationContextBuilderTest { private TestPropertySource testPropertySource = new TestPropertySource(){}; - @Test + @Test @Ignore public void setContext() throws Exception { ConfigurationContext context = ConfigurationProvider.getConfiguration().getContext(); ConfigurationContextBuilder b = new DefaultConfigurationContextBuilder() @@ -45,7 +45,7 @@ public class DefaultConfigurationContextBuilderTest { assertEquals(context, b.build()); } - @Test + @Test @Ignore public void addPropertySources_Array() throws Exception { PropertySource testPS2 = new TestPropertySource("addPropertySources_Array_2"); ConfigurationContextBuilder b = new DefaultConfigurationContextBuilder() @@ -56,7 +56,7 @@ public class DefaultConfigurationContextBuilderTest { assertTrue(ctx.getPropertySources().contains(testPS2)); } - @Test + @Test @Ignore public void removePropertySources_Array() throws Exception { PropertySource testPS2 = new TestPropertySource("addPropertySources_Array_2"); ConfigurationContextBuilder b = new DefaultConfigurationContextBuilder() @@ -74,7 +74,7 @@ public class DefaultConfigurationContextBuilderTest { assertTrue(ctx.getPropertySources().contains(testPS2)); } - @Test + @Test @Ignore public void addPropertyFilters_Array() throws Exception { PropertyFilter filter1 = new PropertyFilter(){ @Override @@ -100,7 +100,7 @@ public class DefaultConfigurationContextBuilderTest { assertTrue(ctx.getPropertyFilters().size()==2); } - @Test + @Test @Ignore public void removePropertyFilters_Array() throws Exception { PropertyFilter filter1 = new PropertyFilter(){ @Override @@ -129,7 +129,7 @@ public class DefaultConfigurationContextBuilderTest { assertTrue(ctx.getPropertyFilters().contains(filter2)); } - @Test + @Test @Ignore public void addPropertyConverter() throws Exception { PropertyConverter converter = new PropertyConverter(){ @@ -149,7 +149,7 @@ public class DefaultConfigurationContextBuilderTest { assertEquals(ctx.getPropertyConverters().size(), 1); } - @Test + @Test @Ignore public void removePropertyConverters_Array() throws Exception { PropertyConverter converter = new PropertyConverter(){ @@ -171,7 +171,7 @@ public class DefaultConfigurationContextBuilderTest { assertEquals(ctx.getPropertyConverters(TypeLiteral.of(String.class)).size(), 0); } - @Test + @Test @Ignore public void setPropertyValueCombinationPolicy() throws Exception { PropertyValueCombinationPolicy combPol = new PropertyValueCombinationPolicy(){ @@ -187,7 +187,7 @@ public class DefaultConfigurationContextBuilderTest { assertEquals(ctx.getPropertyValueCombinationPolicy(), combPol); } - @Test + @Test @Ignore public void build() throws Exception { ConfigurationContextBuilder b = new DefaultConfigurationContextBuilder(); assertNotNull(b.build()); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextTest.java index fef8ed3..601d832 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationContextTest.java @@ -32,7 +32,7 @@ import static org.junit.Assert.*; */ public class DefaultConfigurationContextTest { - @Test + @Test @Ignore public void addPropertySources() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); TestPropertyDefaultSource def = new TestPropertyDefaultSource(); @@ -41,12 +41,12 @@ public class DefaultConfigurationContextTest { assertTrue(ctx.getPropertySources().contains(def)); } - @Test + @Test @Ignore public void testToString() throws Exception { String toString = ConfigurationProvider.getConfiguration().getContext().toString(); } - @Test + @Test @Ignore public void getPropertySources() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); assertNotNull(ctx.getPropertySources()); @@ -56,7 +56,7 @@ public class DefaultConfigurationContextTest { assertEquals(7, ctx.getPropertySources().size()); } - @Test + @Test @Ignore public void getPropertySource() throws Exception { TestPropertyDefaultSource ps = new TestPropertyDefaultSource(); ConfigurationContext ctx = new DefaultConfigurationContextBuilder() @@ -69,7 +69,7 @@ public class DefaultConfigurationContextTest { } - @Test + @Test @Ignore public void testHashCode() throws Exception { TestPropertyDefaultSource ps = new TestPropertyDefaultSource(); ConfigurationContext ctx1 = new DefaultConfigurationContextBuilder() @@ -83,7 +83,7 @@ public class DefaultConfigurationContextTest { } - @Test + @Test @Ignore public void addPropertyConverter() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); PropertyConverter testConverter = new PropertyConverter() { @@ -97,7 +97,7 @@ public class DefaultConfigurationContextTest { assertTrue(ctx.getPropertyConverters(TypeLiteral.of(String.class)).contains(testConverter)); } - @Test + @Test @Ignore public void getPropertyConverters() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); PropertyConverter testConverter = new PropertyConverter() { @@ -121,7 +121,7 @@ public class DefaultConfigurationContextTest { assertTrue(ctx.getPropertyConverters().get(TypeLiteral.of(Integer.class)).contains(testConverter)); } - @Test + @Test @Ignore public void getPropertyConverters1() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); PropertyConverter testConverter = new PropertyConverter() { @@ -139,7 +139,7 @@ public class DefaultConfigurationContextTest { } - @Test + @Test @Ignore public void getPropertyFilters() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); PropertyFilter testFilter = new PropertyFilter() { @@ -155,7 +155,7 @@ public class DefaultConfigurationContextTest { assertTrue(ctx.getPropertyFilters().contains(testFilter)); } - @Test + @Test @Ignore public void getPropertyValueCombinationPolicy() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); assertNotNull(ctx.getPropertyValueCombinationPolicy()); @@ -163,12 +163,12 @@ public class DefaultConfigurationContextTest { PropertyValueCombinationPolicy.DEFAULT_OVERRIDING_COLLECTOR); } - @Test + @Test @Ignore public void toBuilder() throws Exception { assertNotNull(new DefaultConfigurationContextBuilder().build().toBuilder()); } - @Test + @Test @Ignore public void testRoundTrip() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); assertEquals(ctx.toBuilder().build(), ctx); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java index 2f45896..f524f67 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java @@ -19,6 +19,7 @@ package org.apache.tamaya.core.internal; import org.apache.tamaya.spi.ConfigurationContext; +import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; @@ -28,17 +29,17 @@ import static org.junit.Assert.*; */ public class DefaultConfigurationProviderTest { - @Test + @Test @Ignore public void testInstantiation() throws Exception { new DefaultConfigurationProvider(); } - @Test + @Test @Ignore public void getConfiguration() throws Exception { assertNotNull(new DefaultConfigurationProvider().getConfiguration()); } - @Test + @Test @Ignore public void createConfiguration() throws Exception { ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build(); assertNotNull(new DefaultConfigurationProvider().createConfiguration(ctx)); @@ -46,23 +47,23 @@ public class DefaultConfigurationProviderTest { new DefaultConfigurationProvider().createConfiguration(ctx).getContext()); } - @Test + @Test @Ignore public void getConfigurationContext() throws Exception { assertNotNull(new DefaultConfigurationProvider().getConfigurationContext()); } - @Test + @Test @Ignore public void getConfigurationContextBuilder() throws Exception { assertNotNull(new DefaultConfigurationProvider().getConfigurationContextBuilder()); } - @Test + @Test @Ignore public void setConfigurationContext() throws Exception { new DefaultConfigurationProvider() .setConfigurationContext(new DefaultConfigurationProvider().getConfigurationContext()); } - @Test + @Test @Ignore public void isConfigurationContextSettable() throws Exception { assertTrue(new DefaultConfigurationProvider().isConfigurationContextSettable()); } http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java index c12d157..b5c6a2b 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java @@ -23,6 +23,7 @@ import org.apache.tamaya.ConfigQuery; import org.apache.tamaya.Configuration; import org.apache.tamaya.TypeLiteral; import org.apache.tamaya.spi.*; +import org.junit.Ignore; import org.junit.Test; import org.mockito.internal.matchers.Null; @@ -37,7 +38,7 @@ public class DefaultConfigurationTest { ** Tests for get(String) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getDoesNotAcceptNull() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); @@ -48,7 +49,7 @@ public class DefaultConfigurationTest { * Tests for get(String, Class) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getDoesNotAcceptNullForClassTargetType() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); @@ -59,7 +60,7 @@ public class DefaultConfigurationTest { * Tests for get(String, TypeLiteral) */ - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void getDoesNotAcceptNullForTypeLiteralTargetType() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); @@ -70,21 +71,21 @@ public class DefaultConfigurationTest { * Tests for getOrDefault(String, Class, String) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsKeyForThreeParameterVariant() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); c.getOrDefault(null, String.class, "ok"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsDefaultValueForThreeParameterVariant() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); c.getOrDefault("a", String.class, null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsTargetTypeForThreeParameterVariant() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); @@ -95,21 +96,21 @@ public class DefaultConfigurationTest { * Tests for getOrDefault(String, TypeLiteral, String) */ - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsKeyForThreeParameterVariantSecondIsTypeLiteral() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); c.getOrDefault(null, TypeLiteral.of(String.class), "ok"); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsDefaultValueForThreeParameterVariantSecondIsTypeLiteral() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); c.getOrDefault("a", TypeLiteral.of(String.class), null); } - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsTargetTypeForThreeParameterVariantSecondIsTypeLiteral() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); @@ -120,28 +121,28 @@ public class DefaultConfigurationTest { * Tests for getOrDefault(String, String) */ - @Test(expected = NullPointerException.class) + @Test (expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsKeyForTwoParameterVariantDefaultValueIsSecond() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); c.getOrDefault(null, "ok"); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void getOrDefaultDoesNotAcceptNullAsDefaultValueForTwoParameterVariantDefaultValueIsSecond() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); c.getOrDefault("a", null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void with_Null() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); c.with(null); } - @Test(expected = NullPointerException.class) + @Test(expected = NullPointerException.class) @Ignore public void query_Null() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); @@ -149,7 +150,7 @@ public class DefaultConfigurationTest { } - @Test + @Test @Ignore public void with() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); assertEquals(c.with(new ConfigOperator() { @@ -160,7 +161,7 @@ public class DefaultConfigurationTest { }), c); } - @Test + @Test @Ignore public void query() { DefaultConfiguration c = new DefaultConfiguration(new DummyConfigurationContext()); assertEquals(c.query(new ConfigQuery() { http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultServiceContextTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultServiceContextTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultServiceContextTest.java index 13b2eb6..70c1352 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultServiceContextTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultServiceContextTest.java @@ -21,6 +21,7 @@ package org.apache.tamaya.core.internal; import org.apache.tamaya.ConfigException; import org.apache.tamaya.spi.ConfigurationProviderSpi; import org.junit.Assert; +import org.junit.Ignore; import org.junit.Test; import javax.annotation.Priority; @@ -35,19 +36,19 @@ public class DefaultServiceContextTest { private final DefaultServiceContext context = new DefaultServiceContext(); - @Test + @Test @Ignore public void testGetService() { ConfigurationProviderSpi providerSpi = context.getService(ConfigurationProviderSpi.class); Assert.assertNotNull(providerSpi); Assert.assertTrue(providerSpi instanceof DefaultConfigurationProvider); } - @Test(expected = ConfigException.class) + @Test(expected = ConfigException.class) @Ignore public void testGetService_multipleServicesWithoutPriority_shouldThrowConfigException() { context.getService(InvalidPriorityInterface.class); } - @Test + @Test @Ignore public void testGetService_multipleService_shouldReturnServiceWithHighestPriority() { MultiImplsInterface service = context.getService(MultiImplsInterface.class); @@ -55,14 +56,14 @@ public class DefaultServiceContextTest { Assert.assertTrue(service instanceof MultiImpl2); } - @Test + @Test @Ignore public void testGetService_noImpl_shouldReturnEmptyOpional() { NoImplInterface service = context.getService(NoImplInterface.class); Assert.assertNull(service); } - @Test + @Test @Ignore public void testGetServices_shouldReturnServices() { { Collection services = context.getServices(InvalidPriorityInterface.class); @@ -85,7 +86,7 @@ public class DefaultServiceContextTest { } } - @Test + @Test @Ignore public void testGetServices_redundantAccessToServices() { for(int i=0;i<10;i++){ Collection services = context.getServices(InvalidPriorityInterface.class); @@ -97,7 +98,7 @@ public class DefaultServiceContextTest { } } - @Test + @Test @Ignore public void testGetServices_noImpl_shouldReturnEmptyList() { Collection services = context.getServices(NoImplInterface.class); Assert.assertNotNull(services); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/PriorityServiceComparatorTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/PriorityServiceComparatorTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/PriorityServiceComparatorTest.java index 1b1425b..c6b5c51 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/PriorityServiceComparatorTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/PriorityServiceComparatorTest.java @@ -19,6 +19,7 @@ package org.apache.tamaya.core.internal; import org.apache.tamaya.core.propertysource.SystemPropertySource; +import org.junit.Ignore; import org.junit.Test; import javax.annotation.Priority; @@ -31,7 +32,7 @@ import static org.junit.Assert.*; public class PriorityServiceComparatorTest { - @Test + @Test @Ignore public void compare() throws Exception { assertTrue(PriorityServiceComparator.getInstance().compare("a", "b")==0); assertTrue(PriorityServiceComparator.getInstance().compare(getClass(), getClass())==0); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/PropertyConverterManagerTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/PropertyConverterManagerTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/PropertyConverterManagerTest.java index 09701fb..a07f869 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/PropertyConverterManagerTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/PropertyConverterManagerTest.java @@ -23,6 +23,7 @@ import org.apache.tamaya.ConfigurationProvider; import org.apache.tamaya.spi.ConversionContext; import org.apache.tamaya.spi.PropertyConverter; import org.apache.tamaya.TypeLiteral; +import org.junit.Ignore; import org.junit.Test; import java.util.List; @@ -37,7 +38,7 @@ public class PropertyConverterManagerTest { private final ConversionContext DUMMY_CONTEXT = new ConversionContext.Builder( "someKey", TypeLiteral.of(Object.class)).build(); - @Test + @Test @Ignore public void customTypeWithFactoryMethodOfIsRecognizedAsSupported() { PropertyConverterManager manager = new PropertyConverterManager(); @@ -45,7 +46,7 @@ public class PropertyConverterManagerTest { is(true)); } - @Test + @Test @Ignore public void factoryMethodOfIsUsedAsConverter() { PropertyConverterManager manager = new PropertyConverterManager(); @@ -63,7 +64,7 @@ public class PropertyConverterManagerTest { assertThat(((MyType)result).getValue(), equalTo("IN")); } - @Test + @Test @Ignore public void testDirectConverterMapping(){ PropertyConverterManager manager = new PropertyConverterManager(); List> converters = List.class.cast(manager.getPropertyConverters(TypeLiteral.of(C.class))); @@ -77,7 +78,7 @@ public class PropertyConverterManagerTest { assertThat((result).getInValue(), equalTo("testDirectConverterMapping")); } - @Test + @Test @Ignore public void testDirectSuperclassConverterMapping(){ PropertyConverterManager manager = new PropertyConverterManager(true); List> converters = List.class.cast(manager.getPropertyConverters(TypeLiteral.of(B.class))); @@ -93,7 +94,7 @@ public class PropertyConverterManagerTest { assertThat(((C)result).getInValue(), equalTo("testDirectSuperclassConverterMapping")); } - @Test + @Test @Ignore public void testMultipleConverterLoad(){ PropertyConverterManager manager = new PropertyConverterManager(); List> converters = List.class.cast(manager.getPropertyConverters(TypeLiteral.of(B.class))); @@ -106,7 +107,7 @@ public class PropertyConverterManagerTest { assertThat(converters, hasSize(1)); } - @Test + @Test @Ignore public void testTransitiveSuperclassConverterMapping(){ PropertyConverterManager manager = new PropertyConverterManager(true); List> converters = List.class.cast(manager.getPropertyConverters(TypeLiteral.of(A.class))); @@ -120,7 +121,7 @@ public class PropertyConverterManagerTest { assertThat(((C)result).getInValue(), equalTo("testTransitiveSuperclassConverterMapping")); } - @Test + @Test @Ignore public void testDirectInterfaceMapping(){ PropertyConverterManager manager = new PropertyConverterManager(true); List> converters = List.class.cast(manager.getPropertyConverters(TypeLiteral.of(Readable.class))); @@ -134,7 +135,7 @@ public class PropertyConverterManagerTest { assertThat(((C)result).getInValue(), equalTo("testDirectInterfaceMapping")); } - @Test + @Test @Ignore public void testTransitiveInterfaceMapping1(){ PropertyConverterManager manager = new PropertyConverterManager(true); List> converters = List.class.cast(manager.getPropertyConverters(TypeLiteral.of(Runnable.class))); @@ -148,7 +149,7 @@ public class PropertyConverterManagerTest { assertThat(((C)result).getInValue(), equalTo("testTransitiveInterfaceMapping1")); } - @Test + @Test @Ignore public void testTransitiveInterfaceMapping2(){ PropertyConverterManager manager = new PropertyConverterManager(true); List> converters = List.class.cast(manager.getPropertyConverters(TypeLiteral.of(AutoCloseable.class))); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BigDecimalConverterTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BigDecimalConverterTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BigDecimalConverterTest.java index 9c71688..2cbf542 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BigDecimalConverterTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BigDecimalConverterTest.java @@ -20,6 +20,7 @@ package org.apache.tamaya.core.internal.converters; import org.apache.tamaya.Configuration; import org.apache.tamaya.ConfigurationProvider; +import org.junit.Ignore; import org.junit.Test; import java.math.BigDecimal; @@ -36,7 +37,7 @@ public class BigDecimalConverterTest { * {@link org.apache.tamaya.core.internal.converters.ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_BigDecimal_Decimal() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); BigDecimal valueRead = config.get("tests.converter.bd.decimal", BigDecimal.class); @@ -50,7 +51,7 @@ public class BigDecimalConverterTest { * {@link org.apache.tamaya.core.internal.converters.ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_BigDecimal_Hex() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); BigDecimal valueRead = config.get("tests.converter.bd.hex.lowerX", BigDecimal.class); @@ -66,7 +67,7 @@ public class BigDecimalConverterTest { * {@link org.apache.tamaya.core.internal.converters.ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_NotPresent() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); BigDecimal valueRead = config.get("tests.converter.bd.foo", BigDecimal.class); @@ -78,7 +79,7 @@ public class BigDecimalConverterTest { * {@link ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_BigDecimal_BigValue() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); BigDecimal valueRead = config.get("tests.converter.bd.big", BigDecimal.class); @@ -92,7 +93,7 @@ public class BigDecimalConverterTest { * {@link ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_BigDecimal_BigFloatValue() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); BigDecimal valueRead = config.get("tests.converter.bd.bigFloat", BigDecimal.class); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BooleanConverterTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BooleanConverterTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BooleanConverterTest.java index ac75c34..2477135 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BooleanConverterTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/BooleanConverterTest.java @@ -25,6 +25,7 @@ import static org.junit.Assert.assertNull; import org.apache.tamaya.Configuration; import org.apache.tamaya.ConfigurationProvider; +import org.junit.Ignore; import org.junit.Test; /** @@ -37,7 +38,7 @@ public class BooleanConverterTest { * {@link ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_Byte() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); // trues http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ByteConverterTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ByteConverterTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ByteConverterTest.java index 132674d..54a5800 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ByteConverterTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ByteConverterTest.java @@ -20,6 +20,7 @@ package org.apache.tamaya.core.internal.converters; import org.apache.tamaya.Configuration; import org.apache.tamaya.ConfigurationProvider; +import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; @@ -34,7 +35,7 @@ public class ByteConverterTest { * {@link org.apache.tamaya.core.internal.converters.ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_Byte() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Byte valueRead = config.get("tests.converter.byte.decimal", Byte.class); @@ -58,7 +59,7 @@ public class ByteConverterTest { * {@link ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_Byte_MinValue() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Byte valueRead = config.get("tests.converter.byte.min", Byte.class); @@ -71,7 +72,7 @@ public class ByteConverterTest { * {@link ConverterTestsPropertySource}. * @throws Exception */ - @Test + @Test @Ignore public void testConvert_Byte_MaxValue() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Byte valueRead = config.get("tests.converter.byte.max", Byte.class); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/converters/CharConverterTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/CharConverterTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/CharConverterTest.java index f27a465..979e02f 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/CharConverterTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/CharConverterTest.java @@ -20,6 +20,7 @@ package org.apache.tamaya.core.internal.converters; import org.apache.tamaya.Configuration; import org.apache.tamaya.ConfigurationProvider; +import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; @@ -29,7 +30,7 @@ import static org.junit.Assert.*; */ public class CharConverterTest { - @Test + @Test @Ignore public void testConvert_Character() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Character valueRead = config.get("tests.converter.char.f", Character.class); @@ -37,7 +38,7 @@ public class CharConverterTest { assertEquals(valueRead.charValue(), 'f'); } - @Test + @Test @Ignore public void testConvert_Character_Numeric() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Character valueRead = config.get("tests.converter.char.f-numeric", Character.class); @@ -45,7 +46,7 @@ public class CharConverterTest { assertEquals(valueRead.charValue(), (char)101); } - @Test + @Test @Ignore public void testConvert_Character_Quoted() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Character valueRead = config.get("tests.converter.char.d", Character.class); @@ -53,7 +54,7 @@ public class CharConverterTest { assertEquals(valueRead.charValue(), 'd'); } - @Test + @Test @Ignore public void testConvert_Character_WithWhitspace_Before() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Character valueRead = config.get("tests.converter.char.f-before", Character.class); @@ -61,7 +62,7 @@ public class CharConverterTest { assertEquals(valueRead.charValue(), 'f'); } - @Test + @Test @Ignore public void testConvert_Character_WithWhitspace_After() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Character valueRead = config.get("tests.converter.char.f-after", Character.class); @@ -69,7 +70,7 @@ public class CharConverterTest { assertEquals(valueRead.charValue(), 'f'); } - @Test + @Test @Ignore public void testConvert_Character_WithWhitspace_Around() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Character valueRead = config.get("tests.converter.char.f-around", Character.class); @@ -77,7 +78,7 @@ public class CharConverterTest { assertEquals(valueRead.charValue(), 'f'); } - @Test + @Test @Ignore public void testConvert_NotPresent() throws Exception { Configuration config = ConfigurationProvider.getConfiguration(); Character valueRead = config.get("tests.converter.char.foo", Character.class); http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5080c04e/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ClassConverterTest.java ---------------------------------------------------------------------- diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ClassConverterTest.java b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ClassConverterTest.java index c344ac6..083ee8b 100644 --- a/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ClassConverterTest.java +++ b/code/core/src/test/java/org/apache/tamaya/core/internal/converters/ClassConverterTest.java @@ -22,6 +22,7 @@ import org.apache.tamaya.Configuration; import org.apache.tamaya.ConfigurationProvider; import org.apache.tamaya.TypeLiteral; import org.apache.tamaya.spi.ConversionContext; +import org.junit.Ignore; import org.junit.Test; import java.math.BigDecimal; @@ -36,31 +37,31 @@ public class ClassConverterTest { ConversionContext context = new ConversionContext.Builder(TypeLiteral.of(Class.class)) .build(); - @Test + @Test @Ignore public void testConvert_Class() throws Exception { ClassConverter converter = new ClassConverter(); assertEquals(BigDecimal.class, converter.convert("java.math.BigDecimal", context)); } - @Test + @Test @Ignore public void testConvert_Class_WithSpaces() throws Exception { ClassConverter converter = new ClassConverter(); assertEquals(BigDecimal.class, converter.convert(" java.math.BigDecimal\t", context)); } - @Test + @Test @Ignore public void testConvert_Class_WithSpacesBefore() throws Exception { ClassConverter converter = new ClassConverter(); assertEquals(BigDecimal.class, converter.convert(" java.math.BigDecimal", context)); } - @Test + @Test @Ignore public void testConvert_Class_WithSpacesAfter() throws Exception { ClassConverter converter = new ClassConverter(); assertEquals(BigDecimal.class, converter.convert("java.math.BigDecimal ", context)); } - @Test + @Test @Ignore public void testConvert_NotPresent() throws Exception { ClassConverter converter = new ClassConverter(); assertNull(converter.convert("", context));