Fix eclipse/checkstyle warnings
[yangtools.git] / common / util / src / test / java / org / opendaylight / yangtools / util / concurrent / ReflectiveExceptionMapperTest.java
index c10215d1b7ed9a05782c0b14eb3754ba55d55f9c..7d5a9f06f7f16563dee45e9b59adf451fafa8127 100644 (file)
@@ -12,11 +12,11 @@ import static org.junit.Assert.assertEquals;
 import java.util.concurrent.ExecutionException;
 import org.junit.Test;
 
-public final class ReflectiveExceptionMapperTest {
+public class ReflectiveExceptionMapperTest {
     static final class NoArgumentCtorException extends Exception {
         private static final long serialVersionUID = 1L;
 
-        public NoArgumentCtorException() {
+        NoArgumentCtorException() {
             super();
         }
     }
@@ -32,12 +32,12 @@ public final class ReflectiveExceptionMapperTest {
     static final class FailingCtorException extends Exception {
         private static final long serialVersionUID = 1L;
 
-        public FailingCtorException(final String message, final Throwable cause) {
+        FailingCtorException(final String message, final Throwable cause) {
             throw new IllegalArgumentException("just for test");
         }
     }
 
-    static final class GoodException extends Exception {
+    public static final class GoodException extends Exception {
         private static final long serialVersionUID = 1L;
 
         public GoodException(final String message, final Throwable cause) {
@@ -46,24 +46,25 @@ public final class ReflectiveExceptionMapperTest {
     }
 
 
-    @Test(expected=IllegalArgumentException.class)
+    @Test(expected = IllegalArgumentException.class)
     public void testNoArgumentsContructor() {
         ReflectiveExceptionMapper.create("no arguments", NoArgumentCtorException.class);
     }
 
-    @Test(expected=IllegalArgumentException.class)
+    @Test(expected = IllegalArgumentException.class)
     public void testPrivateContructor() {
         ReflectiveExceptionMapper.create("private constructor", PrivateCtorException.class);
     }
 
-    @Test(expected=IllegalArgumentException.class)
+    @Test(expected = IllegalArgumentException.class)
     public void testFailingContructor() {
         ReflectiveExceptionMapper.create("failing constructor", FailingCtorException.class);
     }
 
     @Test
     public void testInstantiation() {
-        ReflectiveExceptionMapper<GoodException> mapper = ReflectiveExceptionMapper.create("instantiation", GoodException.class);
+        ReflectiveExceptionMapper<GoodException> mapper = ReflectiveExceptionMapper.create("instantiation",
+            GoodException.class);
 
         final Throwable cause = new Throwable("some test message");