Commit 42325e71decbb015c0c6be4e018b0f80e825b004

Authored by Ednara Oliveira
1 parent 5d9bde65
Exists in master

Refatoração de teste unitário: ReflectionsTest

impl/core/src/test/java/br/gov/frameworkdemoiselle/util/ReflectionsTest.java
@@ -38,17 +38,12 @@ package br.gov.frameworkdemoiselle.util; @@ -38,17 +38,12 @@ package br.gov.frameworkdemoiselle.util;
38 38
39 import static org.junit.Assert.assertEquals; 39 import static org.junit.Assert.assertEquals;
40 40
41 -import java.lang.reflect.Field;  
42 import java.lang.reflect.Member; 41 import java.lang.reflect.Member;
43 -import java.lang.reflect.Method;  
44 -import java.util.logging.Logger;  
45 42
46 import org.junit.Test; 43 import org.junit.Test;
47 44
48 public class ReflectionsTest { 45 public class ReflectionsTest {
49 46
50 - private String text;  
51 -  
52 @Test 47 @Test
53 public void testGetGenericTypeArgumentClass() { 48 public void testGetGenericTypeArgumentClass() {
54 assertEquals(Long.class, Reflections.getGenericTypeArgument(OtherClass.class, 0)); 49 assertEquals(Long.class, Reflections.getGenericTypeArgument(OtherClass.class, 0));
@@ -66,7 +61,7 @@ public class ReflectionsTest { @@ -66,7 +61,7 @@ public class ReflectionsTest {
66 class SomeClass<T, I> { 61 class SomeClass<T, I> {
67 62
68 public void setNumber(T t) { 63 public void setNumber(T t) {
69 - 64 +
70 } 65 }
71 } 66 }
72 67
@@ -74,6 +69,5 @@ class OtherClass extends SomeClass&lt;Long, String&gt; { @@ -74,6 +69,5 @@ class OtherClass extends SomeClass&lt;Long, String&gt; {
74 69
75 public Class<Long> number; 70 public Class<Long> number;
76 71
77 -  
78 public Class<String> text; 72 public Class<String> text;
79 } 73 }