Commit 40b5ce2bb5ff299e548d5c390a6033683a5cba5a

Authored by Ednara Oliveira
1 parent 2e0039d4
Exists in master

Refatoração de testes

impl/core/src/test/java/template/TemplateTest.java
... ... @@ -51,7 +51,7 @@ import org.junit.Before;
51 51 import org.junit.Test;
52 52 import org.junit.runner.RunWith;
53 53  
54   -import template.business.TemplateBC;
  54 +import template.business.TemplateDelegateCrud;
55 55 import template.crud.CrudImpl;
56 56 import template.model.DummyEntity;
57 57 import test.Tests;
... ... @@ -66,7 +66,7 @@ public class TemplateTest {
66 66 private static final Long VALID_ID = 1L;
67 67  
68 68 @Inject
69   - private TemplateBC templateBC;
  69 + private TemplateDelegateCrud templateBC;
70 70  
71 71 @Inject
72 72 private CrudImpl crudImpl;
... ...
impl/core/src/test/java/template/business/TemplateBC.java
... ... @@ -1,11 +0,0 @@
1   -package template.business;
2   -
3   -import template.crud.CrudImpl;
4   -import template.model.DummyEntity;
5   -import br.gov.frameworkdemoiselle.stereotype.BusinessController;
6   -import br.gov.frameworkdemoiselle.template.DelegateCrud;
7   -
8   -@BusinessController
9   -public class TemplateBC extends DelegateCrud<DummyEntity, Long, CrudImpl>{
10   -
11   -}
impl/core/src/test/java/template/business/TemplateDelegateCrud.java 0 → 100644
... ... @@ -0,0 +1,11 @@
  1 +package template.business;
  2 +
  3 +import template.crud.CrudImpl;
  4 +import template.model.DummyEntity;
  5 +import br.gov.frameworkdemoiselle.stereotype.BusinessController;
  6 +import br.gov.frameworkdemoiselle.template.DelegateCrud;
  7 +
  8 +@BusinessController
  9 +public class TemplateDelegateCrud extends DelegateCrud<DummyEntity, Long, CrudImpl>{
  10 +
  11 +}
... ...