Added CasValidator
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user