Renamed CasValidator -> DefaultUAMCasValidator
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
@ -5,14 +5,14 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class CasValidatorTest {
|
||||
public class DefaultUAMCasValidatorTest {
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void shouldValidateTicket() {
|
||||
// you need to privide fresh ticket to make this test pass that's why it is
|
||||
// marked as ignored
|
||||
final CasValidator validator = new CasValidator("http://localhost:3000",
|
||||
final DefaultUAMCasValidator validator = new DefaultUAMCasValidator("http://localhost:3000",
|
||||
"ST-572267-cbgKrcJLd0tdCubeLqdW-cas.amu.edu.pl");
|
||||
try {
|
||||
System.out.println(validator.validate());
|
||||
@ -24,7 +24,7 @@ public class CasValidatorTest {
|
||||
|
||||
@Test
|
||||
public void shouldNotValidateTicket() {
|
||||
final CasValidator validator = new CasValidator("http://localhost:3000", "notticket");
|
||||
final DefaultUAMCasValidator validator = new DefaultUAMCasValidator("http://localhost:3000", "notticket");
|
||||
try {
|
||||
assertTrue(validator.validate().trim().equals(""));
|
||||
} catch (CasValidationExcepiton e) {
|
Reference in New Issue
Block a user