Commit 07d06b49326d41c1a54a031bc2fbe7c6c73aabed
1 parent
f16c2d82
Exists in
master
Retirada da importação da anotação @Ignore
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
impl/core/src/test/java/br/gov/frameworkdemoiselle/template/DelegateCrudTest.java
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | 35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. |
36 | */ | 36 | */ |
37 | package br.gov.frameworkdemoiselle.template; | 37 | package br.gov.frameworkdemoiselle.template; |
38 | -import org.junit.Ignore; | 38 | + |
39 | import static org.easymock.EasyMock.expect; | 39 | import static org.easymock.EasyMock.expect; |
40 | import static org.junit.Assert.assertEquals; | 40 | import static org.junit.Assert.assertEquals; |
41 | import static org.powermock.api.easymock.PowerMock.mockStatic; | 41 | import static org.powermock.api.easymock.PowerMock.mockStatic; |
@@ -56,7 +56,7 @@ import org.powermock.reflect.Whitebox; | @@ -56,7 +56,7 @@ import org.powermock.reflect.Whitebox; | ||
56 | 56 | ||
57 | import br.gov.frameworkdemoiselle.util.Beans; | 57 | import br.gov.frameworkdemoiselle.util.Beans; |
58 | import br.gov.frameworkdemoiselle.util.Reflections; | 58 | import br.gov.frameworkdemoiselle.util.Reflections; |
59 | -//@Ignore | 59 | + |
60 | @RunWith(PowerMockRunner.class) | 60 | @RunWith(PowerMockRunner.class) |
61 | @PrepareForTest({ Crud.class, Beans.class, Reflections.class }) | 61 | @PrepareForTest({ Crud.class, Beans.class, Reflections.class }) |
62 | public class DelegateCrudTest { | 62 | public class DelegateCrudTest { |
@@ -115,7 +115,7 @@ public class DelegateCrudTest { | @@ -115,7 +115,7 @@ public class DelegateCrudTest { | ||
115 | Whitebox.setInternalState(delegateCrud, "delegate", mockCrud); | 115 | Whitebox.setInternalState(delegateCrud, "delegate", mockCrud); |
116 | 116 | ||
117 | mockStatic(Beans.class); | 117 | mockStatic(Beans.class); |
118 | - | 118 | + |
119 | expect(Beans.getReference(EasyMock.anyObject(Class.class))).andReturn(mockCrud); | 119 | expect(Beans.getReference(EasyMock.anyObject(Class.class))).andReturn(mockCrud); |
120 | 120 | ||
121 | Contact insert = new Contact(); | 121 | Contact insert = new Contact(); |