Author: sebb Date: Thu Mar 27 14:59:51 2014 New Revision: 1582335 URL: http://svn.apache.org/r1582335 Log: Avoid unused warnings
Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/InvokerInterceptorTest.java commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/ObjectProviderInterceptorTest.java commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/InvokerInterceptorTest.java URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/InvokerInterceptorTest.java?rev=1582335&r1=1582334&r2=1582335&view=diff ============================================================================== --- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/InvokerInterceptorTest.java (original) +++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/InvokerInterceptorTest.java Thu Mar 27 14:59:51 2014 @@ -18,6 +18,7 @@ package org.apache.commons.proxy2.interceptor; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; import java.lang.reflect.Method; @@ -55,6 +56,6 @@ public class InvokerInterceptorTest exte @Test(expected = NullPointerException.class) public void testWithNullInvoker() { - new InvokerInterceptor(null); + assertNotNull(new InvokerInterceptor(null)); // assert is used to avoid not used warning } } Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/ObjectProviderInterceptorTest.java URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/ObjectProviderInterceptorTest.java?rev=1582335&r1=1582334&r2=1582335&view=diff ============================================================================== --- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/ObjectProviderInterceptorTest.java (original) +++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/interceptor/ObjectProviderInterceptorTest.java Thu Mar 27 14:59:51 2014 @@ -18,6 +18,7 @@ package org.apache.commons.proxy2.interceptor; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; import org.apache.commons.proxy2.provider.ObjectProviderUtils; import org.apache.commons.proxy2.util.AbstractTestCase; @@ -39,6 +40,6 @@ public class ObjectProviderInterceptorTe @Test(expected = NullPointerException.class) public void testWithNullProvider() { - new ObjectProviderInterceptor(null); + assertNotNull(new ObjectProviderInterceptor(null)); // assert is used to avoid not used warning } } Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java?rev=1582335&r1=1582334&r2=1582335&view=diff ============================================================================== --- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java (original) +++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java Thu Mar 27 14:59:51 2014 @@ -18,6 +18,7 @@ package org.apache.commons.proxy2.provider; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotSame; import static org.junit.Assert.fail; @@ -71,7 +72,7 @@ public class CloningProviderTest extends @Test(expected = IllegalArgumentException.class) public void testWithInvalidCloneable() { - new CloningProvider<InvalidCloneable>(new InvalidCloneable()); + assertNotNull(new CloningProvider<InvalidCloneable>(new InvalidCloneable())); // assert is used to avoid not used warning } @Test(expected = IllegalArgumentException.class)