Added method to getting app states

This commit is contained in:
Filip Izydorczyk
2020-12-12 15:33:00 +01:00
parent e02523b4f4
commit 84d7ed8e65
4 changed files with 178 additions and 4 deletions

View File

@ -1,5 +1,6 @@
package com.plannaplan.security.cas;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Value;
@ -9,12 +10,15 @@ public class CustomUAMCasValidatorTest {
private String serviceUrl;
@Test
@Ignore
public void shouldValidateWithDomain() {
CustomUAMCasValidator validator = new CustomUAMCasValidator(serviceUrl, "ST-54649-5x4h09vzUpEIyAGmf1sz-cas.amu.edu.pl");
validator.validate();
// 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();
}
}