Commit 68eb56046e24c613fef66a168d2206dbb92dac74
1 parent
892df7e6
Exists in
master
Refatoração do teste e exclusão de imports não utilizados
Showing
1 changed file
with
3 additions
and
8 deletions
Show diff stats
impl/core/src/test/java/security/interceptor/loggedin/LoggedInInterceptorTest.java
@@ -37,9 +37,6 @@ | @@ -37,9 +37,6 @@ | ||
37 | package security.interceptor.loggedin; | 37 | package security.interceptor.loggedin; |
38 | 38 | ||
39 | import static junit.framework.Assert.assertEquals; | 39 | import static junit.framework.Assert.assertEquals; |
40 | -import static org.junit.Assert.assertEquals; | ||
41 | -import static org.junit.Assert.assertNotNull; | ||
42 | -import static org.junit.Assert.assertTrue; | ||
43 | 40 | ||
44 | import javax.inject.Inject; | 41 | import javax.inject.Inject; |
45 | 42 | ||
@@ -51,17 +48,14 @@ import org.junit.Before; | @@ -51,17 +48,14 @@ import org.junit.Before; | ||
51 | import org.junit.Test; | 48 | import org.junit.Test; |
52 | import org.junit.runner.RunWith; | 49 | import org.junit.runner.RunWith; |
53 | 50 | ||
54 | -import br.gov.frameworkdemoiselle.context.RequestContext; | 51 | +import test.Tests; |
55 | import br.gov.frameworkdemoiselle.context.SessionContext; | 52 | import br.gov.frameworkdemoiselle.context.SessionContext; |
56 | -import br.gov.frameworkdemoiselle.security.AuthenticationException; | ||
57 | import br.gov.frameworkdemoiselle.security.NotLoggedInException; | 53 | import br.gov.frameworkdemoiselle.security.NotLoggedInException; |
58 | import br.gov.frameworkdemoiselle.security.SecurityContext; | 54 | import br.gov.frameworkdemoiselle.security.SecurityContext; |
59 | import br.gov.frameworkdemoiselle.util.Beans; | 55 | import br.gov.frameworkdemoiselle.util.Beans; |
60 | import br.gov.frameworkdemoiselle.util.NameQualifier; | 56 | import br.gov.frameworkdemoiselle.util.NameQualifier; |
61 | import br.gov.frameworkdemoiselle.util.ResourceBundle; | 57 | import br.gov.frameworkdemoiselle.util.ResourceBundle; |
62 | 58 | ||
63 | -import test.Tests; | ||
64 | - | ||
65 | @RunWith(Arquillian.class) | 59 | @RunWith(Arquillian.class) |
66 | public class LoggedInInterceptorTest { | 60 | public class LoggedInInterceptorTest { |
67 | 61 | ||
@@ -98,7 +92,8 @@ public class LoggedInInterceptorTest { | @@ -98,7 +92,8 @@ public class LoggedInInterceptorTest { | ||
98 | @Test | 92 | @Test |
99 | public void callProtectedClassAttribLogged() { | 93 | public void callProtectedClassAttribLogged() { |
100 | context.login(); | 94 | context.login(); |
101 | - protectedClass.getDummyAttrib(); | 95 | + protectedClass.setDummyAttrib("Test"); |
96 | + assertEquals("Test", protectedClass.getDummyAttrib()); | ||
102 | } | 97 | } |
103 | 98 | ||
104 | @After | 99 | @After |