diff --git a/lombok.config b/lombok.config new file mode 100644 index 0000000..a23edb4 --- /dev/null +++ b/lombok.config @@ -0,0 +1,2 @@ +config.stopBubbling = true +lombok.addLombokGeneratedAnnotation = true \ No newline at end of file diff --git a/src/main/java/com/ljunggren/storm/exceptions/ContextException.java b/src/main/java/com/ljunggren/storm/exceptions/ContextException.java index 761e493..e91346c 100644 --- a/src/main/java/com/ljunggren/storm/exceptions/ContextException.java +++ b/src/main/java/com/ljunggren/storm/exceptions/ContextException.java @@ -8,12 +8,4 @@ super(message); } - public ContextException(Throwable cause) { - super(cause); - } - - public ContextException(String message, Throwable cause) { - super(message, cause); - } - } diff --git a/src/test/java/com/ljunggren/storm/context/ContextFactoryTest.java b/src/test/java/com/ljunggren/storm/context/ContextFactoryTest.java index 3e914b6..e017572 100644 --- a/src/test/java/com/ljunggren/storm/context/ContextFactoryTest.java +++ b/src/test/java/com/ljunggren/storm/context/ContextFactoryTest.java @@ -2,14 +2,12 @@ import static org.junit.Assert.assertEquals; -import org.junit.Ignore; import org.junit.Test; import com.ljunggren.storm.exceptions.ContextException; public class ContextFactoryTest { - @Ignore @Test public void getContextTest() { Context context = new ContextFactory().getContext("H2"); @@ -17,7 +15,6 @@ assertEquals("org.h2.Driver", context.getDriver()); } - @Ignore @Test(expected = ContextException.class) public void getNoContextByNameTest() { new ContextFactory().getContext("DNE"); diff --git a/src/test/java/com/ljunggren/storm/utils/ReflectionUtilsTest.java b/src/test/java/com/ljunggren/storm/utils/ReflectionUtilsTest.java index df69b9d..fbde3c9 100644 --- a/src/test/java/com/ljunggren/storm/utils/ReflectionUtilsTest.java +++ b/src/test/java/com/ljunggren/storm/utils/ReflectionUtilsTest.java @@ -131,6 +131,13 @@ } @Test + public void isIntegerFalseTest() throws NoSuchFieldException, SecurityException { + Field field = ReflectionUtilsTest.class.getDeclaredField("string"); + Type fieldType = field.getGenericType(); + assertFalse(ReflectionUtils.isInteger(fieldType)); + } + + @Test public void isPrimitiveFalseTest() throws NoSuchFieldException, SecurityException { Field field = ReflectionUtilsTest.class.getDeclaredField("stringList"); Type fieldType = field.getGenericType();