22 lines
619 B
Java
22 lines
619 B
Java
|
package com.plannaplan.security;
|
||
|
|
||
|
import org.junit.Ignore;
|
||
|
import org.junit.Test;
|
||
|
|
||
|
public class CasValidatorTest {
|
||
|
|
||
|
@Test
|
||
|
@Ignore
|
||
|
public void shouldValidateTicket() {
|
||
|
//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",
|
||
|
"ST-572267-cbgKrcJLd0tdCubeLqdW-cas.amu.edu.pl");
|
||
|
try {
|
||
|
System.out.println(validator.validate());
|
||
|
} catch (Exception e) {
|
||
|
// TODO Auto-generated catch block
|
||
|
e.printStackTrace();
|
||
|
}
|
||
|
}
|
||
|
}
|