backend/restservice/src/test/java/com/plannaplan/security/CasValidatorTest.java

22 lines
619 B
Java
Raw Normal View History

2020-09-11 13:15:22 +02:00
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();
}
}
}