(no commit message)
[utils] / support / general / src / test / java / org / wamblee / reflection / ReflectionUtilsTest.java
index 1cc6e4b0cdb30e872af8ac047d4d5e886ce57259..d56e29483e0322bd892fc07e6528fa0f0b2c680d 100644 (file)
@@ -37,10 +37,10 @@ public class ReflectionUtilsTest {
 
         }
     }
-    
-    public static class X5 extends X2 { 
-        private String field; 
-        private int g; 
+
+    public static class X5 extends X2 {
+        private String field;
+        private int g;
     }
 
     @Test(expected = IllegalArgumentException.class)
@@ -50,19 +50,22 @@ public class ReflectionUtilsTest {
 
     @Test
     public void testBasicClass() {
-        List<Method> res = ReflectionUtils.getAllMethods(X2.class, Object.class);
+        List<Method> res = ReflectionUtils
+            .getAllMethods(X2.class, Object.class);
         assertEquals(2, res.size());
     }
 
     @Test
     public void testInheritanceAdditionalMethod() {
-        List<Method> res = ReflectionUtils.getAllMethods(X3.class, Object.class);
+        List<Method> res = ReflectionUtils
+            .getAllMethods(X3.class, Object.class);
         assertEquals(3, res.size());
     }
 
     @Test
     public void testInheritanceOverriddenMethod() {
-        List<Method> res = ReflectionUtils.getAllMethods(X4.class, Object.class);
+        List<Method> res = ReflectionUtils
+            .getAllMethods(X4.class, Object.class);
         assertEquals(2, res.size());
         for (Method method : res) {
             if (method.getName().equals("x")) {
@@ -70,20 +73,20 @@ public class ReflectionUtilsTest {
             }
         }
     }
-    
+
     @Test(expected = IllegalArgumentException.class)
     public void testGetAllFieldsInterface() {
         ReflectionUtils.getAllFields(X.class);
     }
 
     @Test
-    public void testFieldsFromBasicClass() { 
+    public void testFieldsFromBasicClass() {
         List<Field> fields = ReflectionUtils.getAllFields(X2.class);
         assertEquals(1, fields.size());
         assertEquals("bla", fields.get(0).getName());
     }
-    
-    public void testFieldsWithInheritance() { 
+
+    public void testFieldsWithInheritance() {
         List<Field> fields = ReflectionUtils.getAllFields(X5.class);
         assertEquals(3, fields.size());
     }