Commit 04aa1987fdfd5b372451f0adf521e7c1efd36838
1 parent
d677aece
Exists in
master
Retirada do @Ignore
Showing
5 changed files
with
11 additions
and
9 deletions
Show diff stats
impl/core/src/test/java/br/gov/frameworkdemoiselle/internal/configuration/PaginationConfigTest.java
| @@ -41,21 +41,20 @@ import org.junit.Ignore; | @@ -41,21 +41,20 @@ import org.junit.Ignore; | ||
| 41 | import org.junit.Before; | 41 | import org.junit.Before; |
| 42 | import org.junit.Test; | 42 | import org.junit.Test; |
| 43 | 43 | ||
| 44 | -@Ignore | ||
| 45 | public class PaginationConfigTest { | 44 | public class PaginationConfigTest { |
| 46 | 45 | ||
| 47 | private PaginationConfig config; | 46 | private PaginationConfig config; |
| 48 | - | 47 | + |
| 49 | @Before | 48 | @Before |
| 50 | public void setUp() throws Exception { | 49 | public void setUp() throws Exception { |
| 51 | this.config = new PaginationConfig(); | 50 | this.config = new PaginationConfig(); |
| 52 | } | 51 | } |
| 53 | - | 52 | + |
| 54 | @Test | 53 | @Test |
| 55 | public void testGetMaxPageLinks() { | 54 | public void testGetMaxPageLinks() { |
| 56 | assertEquals(5, config.getMaxPageLinks()); | 55 | assertEquals(5, config.getMaxPageLinks()); |
| 57 | } | 56 | } |
| 58 | - | 57 | + |
| 59 | @Test | 58 | @Test |
| 60 | public void testGetPageSize() { | 59 | public void testGetPageSize() { |
| 61 | assertEquals(10, config.getPageSize()); | 60 | assertEquals(10, config.getPageSize()); |
impl/core/src/test/java/br/gov/frameworkdemoiselle/internal/configuration/SecurityConfigTest.java
| 1 | package br.gov.frameworkdemoiselle.internal.configuration; | 1 | package br.gov.frameworkdemoiselle.internal.configuration; |
| 2 | + | ||
| 2 | import org.junit.Ignore; | 3 | import org.junit.Ignore; |
| 3 | import static org.junit.Assert.assertEquals; | 4 | import static org.junit.Assert.assertEquals; |
| 4 | 5 | ||
| 5 | import org.junit.Before; | 6 | import org.junit.Before; |
| 6 | import org.junit.Test; | 7 | import org.junit.Test; |
| 7 | 8 | ||
| 8 | -@Ignore | ||
| 9 | public class SecurityConfigTest { | 9 | public class SecurityConfigTest { |
| 10 | 10 | ||
| 11 | private SecurityConfig config; | 11 | private SecurityConfig config; |
impl/core/src/test/java/br/gov/frameworkdemoiselle/internal/context/ContextStoreTest.java
| @@ -35,6 +35,7 @@ | @@ -35,6 +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.internal.context; | 37 | package br.gov.frameworkdemoiselle.internal.context; |
| 38 | + | ||
| 38 | import org.junit.Ignore; | 39 | import org.junit.Ignore; |
| 39 | import java.util.Map; | 40 | import java.util.Map; |
| 40 | import java.util.TreeMap; | 41 | import java.util.TreeMap; |
| @@ -45,7 +46,7 @@ import org.junit.Before; | @@ -45,7 +46,7 @@ import org.junit.Before; | ||
| 45 | import org.junit.Test; | 46 | import org.junit.Test; |
| 46 | import org.powermock.api.easymock.PowerMock; | 47 | import org.powermock.api.easymock.PowerMock; |
| 47 | import org.powermock.reflect.Whitebox; | 48 | import org.powermock.reflect.Whitebox; |
| 48 | -@Ignore | 49 | + |
| 49 | public class ContextStoreTest { | 50 | public class ContextStoreTest { |
| 50 | 51 | ||
| 51 | private ContextStore store; | 52 | private ContextStore store; |
impl/core/src/test/java/br/gov/frameworkdemoiselle/internal/context/ContextsTest.java
| @@ -17,6 +17,7 @@ | @@ -17,6 +17,7 @@ | ||
| 17 | * Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | 17 | * Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. |
| 18 | */ | 18 | */ |
| 19 | package br.gov.frameworkdemoiselle.internal.context; | 19 | package br.gov.frameworkdemoiselle.internal.context; |
| 20 | + | ||
| 20 | import org.junit.Ignore; | 21 | import org.junit.Ignore; |
| 21 | import static org.easymock.EasyMock.createMock; | 22 | import static org.easymock.EasyMock.createMock; |
| 22 | import static org.easymock.EasyMock.expectLastCall; | 23 | import static org.easymock.EasyMock.expectLastCall; |
| @@ -39,7 +40,7 @@ import org.junit.BeforeClass; | @@ -39,7 +40,7 @@ import org.junit.BeforeClass; | ||
| 39 | import org.junit.Test; | 40 | import org.junit.Test; |
| 40 | 41 | ||
| 41 | import br.gov.frameworkdemoiselle.annotation.ViewScoped; | 42 | import br.gov.frameworkdemoiselle.annotation.ViewScoped; |
| 42 | -@Ignore | 43 | + |
| 43 | public class ContextsTest { | 44 | public class ContextsTest { |
| 44 | 45 | ||
| 45 | private AfterBeanDiscovery event; | 46 | private AfterBeanDiscovery event; |
| @@ -193,7 +194,7 @@ public class ContextsTest { | @@ -193,7 +194,7 @@ public class ContextsTest { | ||
| 193 | Contexts.add(context, event); | 194 | Contexts.add(context, event); |
| 194 | assertEquals(1, Contexts.getActiveContexts().size()); | 195 | assertEquals(1, Contexts.getActiveContexts().size()); |
| 195 | } | 196 | } |
| 196 | - | 197 | + |
| 197 | // Only to get 100% on coverage report | 198 | // Only to get 100% on coverage report |
| 198 | @Test | 199 | @Test |
| 199 | public void testCreateNew() { | 200 | public void testCreateNew() { |
impl/core/src/test/java/br/gov/frameworkdemoiselle/internal/context/ThreadLocalContextTest.java
| @@ -35,6 +35,7 @@ | @@ -35,6 +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.internal.context; | 37 | package br.gov.frameworkdemoiselle.internal.context; |
| 38 | + | ||
| 38 | import org.junit.Ignore; | 39 | import org.junit.Ignore; |
| 39 | import static org.easymock.EasyMock.expect; | 40 | import static org.easymock.EasyMock.expect; |
| 40 | import static org.junit.Assert.fail; | 41 | import static org.junit.Assert.fail; |
| @@ -58,7 +59,7 @@ import org.powermock.api.easymock.PowerMock; | @@ -58,7 +59,7 @@ import org.powermock.api.easymock.PowerMock; | ||
| 58 | import org.powermock.core.classloader.annotations.PrepareForTest; | 59 | import org.powermock.core.classloader.annotations.PrepareForTest; |
| 59 | import org.powermock.modules.junit4.PowerMockRunner; | 60 | import org.powermock.modules.junit4.PowerMockRunner; |
| 60 | import org.powermock.reflect.Whitebox; | 61 | import org.powermock.reflect.Whitebox; |
| 61 | -@Ignore | 62 | + |
| 62 | @RunWith(PowerMockRunner.class) | 63 | @RunWith(PowerMockRunner.class) |
| 63 | @PrepareForTest({ Bean.class }) | 64 | @PrepareForTest({ Bean.class }) |
| 64 | public class ThreadLocalContextTest { | 65 | public class ThreadLocalContextTest { |