Search in sources :

Example 1 with SamlServiceProperties

use of org.springframework.security.cas.SamlServiceProperties in project spring-security by spring-projects.

the class ServicePropertiesTests method testGettersSetters.

@Test
public void testGettersSetters() throws Exception {
    ServiceProperties[] sps = { new ServiceProperties(), new SamlServiceProperties() };
    for (ServiceProperties sp : sps) {
        sp.setSendRenew(false);
        assertThat(sp.isSendRenew()).isFalse();
        sp.setSendRenew(true);
        assertThat(sp.isSendRenew()).isTrue();
        sp.setArtifactParameter("notticket");
        assertThat(sp.getArtifactParameter()).isEqualTo("notticket");
        sp.setServiceParameter("notservice");
        assertThat(sp.getServiceParameter()).isEqualTo("notservice");
        sp.setService("https://mycompany.com/service");
        assertThat(sp.getService()).isEqualTo("https://mycompany.com/service");
        sp.afterPropertiesSet();
    }
}
Also used : SamlServiceProperties(org.springframework.security.cas.SamlServiceProperties) ServiceProperties(org.springframework.security.cas.ServiceProperties) SamlServiceProperties(org.springframework.security.cas.SamlServiceProperties) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 SamlServiceProperties (org.springframework.security.cas.SamlServiceProperties)1 ServiceProperties (org.springframework.security.cas.ServiceProperties)1