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 | 37 | package security.interceptor.loggedin; |
| 38 | 38 | |
| 39 | 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 | 41 | import javax.inject.Inject; |
| 45 | 42 | |
| ... | ... | @@ -51,17 +48,14 @@ import org.junit.Before; |
| 51 | 48 | import org.junit.Test; |
| 52 | 49 | import org.junit.runner.RunWith; |
| 53 | 50 | |
| 54 | -import br.gov.frameworkdemoiselle.context.RequestContext; | |
| 51 | +import test.Tests; | |
| 55 | 52 | import br.gov.frameworkdemoiselle.context.SessionContext; |
| 56 | -import br.gov.frameworkdemoiselle.security.AuthenticationException; | |
| 57 | 53 | import br.gov.frameworkdemoiselle.security.NotLoggedInException; |
| 58 | 54 | import br.gov.frameworkdemoiselle.security.SecurityContext; |
| 59 | 55 | import br.gov.frameworkdemoiselle.util.Beans; |
| 60 | 56 | import br.gov.frameworkdemoiselle.util.NameQualifier; |
| 61 | 57 | import br.gov.frameworkdemoiselle.util.ResourceBundle; |
| 62 | 58 | |
| 63 | -import test.Tests; | |
| 64 | - | |
| 65 | 59 | @RunWith(Arquillian.class) |
| 66 | 60 | public class LoggedInInterceptorTest { |
| 67 | 61 | |
| ... | ... | @@ -98,7 +92,8 @@ public class LoggedInInterceptorTest { |
| 98 | 92 | @Test |
| 99 | 93 | public void callProtectedClassAttribLogged() { |
| 100 | 94 | context.login(); |
| 101 | - protectedClass.getDummyAttrib(); | |
| 95 | + protectedClass.setDummyAttrib("Test"); | |
| 96 | + assertEquals("Test", protectedClass.getDummyAttrib()); | |
| 102 | 97 | } |
| 103 | 98 | |
| 104 | 99 | @After | ... | ... |