Small test fixc
This commit is contained in:
		| @@ -12,7 +12,6 @@ import com.plannaplan.exceptions.UserNotFoundException; | |||||||
| import com.plannaplan.types.UserRoles; | import com.plannaplan.types.UserRoles; | ||||||
|  |  | ||||||
| import org.junit.Before; | import org.junit.Before; | ||||||
| import org.junit.Ignore; |  | ||||||
| import org.junit.Test; | import org.junit.Test; | ||||||
| import org.junit.jupiter.api.TestMethodOrder; | import org.junit.jupiter.api.TestMethodOrder; | ||||||
| import org.junit.jupiter.api.MethodOrderer.OrderAnnotation; | import org.junit.jupiter.api.MethodOrderer.OrderAnnotation; | ||||||
| @@ -41,7 +40,6 @@ public class UserServiceTest { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Test |     @Test | ||||||
|     @Ignore |  | ||||||
|     public void shouldReturnToken() { |     public void shouldReturnToken() { | ||||||
|         try { |         try { | ||||||
|             String token = this.userService.login(TEST_USER_MAIL); |             String token = this.userService.login(TEST_USER_MAIL); | ||||||
|   | |||||||
| @@ -10,7 +10,8 @@ public class CasValidatorTest { | |||||||
|     @Test |     @Test | ||||||
|     @Ignore |     @Ignore | ||||||
|     public void shouldValidateTicket() { |     public void shouldValidateTicket() { | ||||||
|         //you need to privide fresh ticket to make this test pass that's why it is marked as ignored |         // you need to privide fresh ticket to make this test pass that's why it is | ||||||
|  |         // marked as ignored | ||||||
|         CasValidator validator = new CasValidator("http://localhost:3000", |         CasValidator validator = new CasValidator("http://localhost:3000", | ||||||
|                 "ST-572267-cbgKrcJLd0tdCubeLqdW-cas.amu.edu.pl"); |                 "ST-572267-cbgKrcJLd0tdCubeLqdW-cas.amu.edu.pl"); | ||||||
|         try { |         try { | ||||||
| @@ -23,16 +24,12 @@ public class CasValidatorTest { | |||||||
|  |  | ||||||
|     @Test |     @Test | ||||||
|     public void shouldNotValidateTicket() { |     public void shouldNotValidateTicket() { | ||||||
|         //you need to privide fresh ticket to make this test pass that's why it is marked as ignored |         CasValidator validator = new CasValidator("http://localhost:3000", "notticket"); | ||||||
|         CasValidator validator = new CasValidator("http://localhost:3000", |  | ||||||
|                 "notticket"); |  | ||||||
|         try { |         try { | ||||||
|             assertTrue(validator.validate().trim().equals("")); |             assertTrue(validator.validate().trim().equals("")); | ||||||
|         }  |         } catch (CasValidationExcepiton e) { | ||||||
|         catch (CasValidationExcepiton e){ |  | ||||||
|             assertTrue(true); |             assertTrue(true); | ||||||
|         } |         } catch (Exception e) { | ||||||
|         catch (Exception e) { |  | ||||||
|             e.printStackTrace(); |             e.printStackTrace(); | ||||||
|             assertTrue(false); |             assertTrue(false); | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user