backend/restservice/src/test/java/com/plannaplan/security/cas/CustomUAMCasValidatorTest.java
2020-12-12 15:33:00 +01:00

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();
}
}