25 lines
626 B
Java
Executable File
25 lines
626 B
Java
Executable File
package com.plannaplan.security.cas;
|
|
|
|
import org.junit.Ignore;
|
|
import org.junit.Test;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
public class CustomUAMCasValidatorTest {
|
|
|
|
@Value("${plannaplan.frontendUrl}")
|
|
private String serviceUrl;
|
|
|
|
@Test
|
|
@Ignore
|
|
public void shouldValidateWithDomain() {
|
|
// you need to privide fresh ticket to make this test pass that's why it is
|
|
// marked as ignored
|
|
|
|
CustomUAMCasValidator validator = new CustomUAMCasValidator(serviceUrl,
|
|
"ST-54649-5x4h09vzUpEIyAGmf1sz-cas.amu.edu.pl");
|
|
|
|
validator.validate();
|
|
|
|
}
|
|
}
|