Search in sources :

Example 6 with Sso

use of org.ovirt.engine.api.model.Sso in project ovirt-engine by oVirt.

the class SsoMapperTest method mapIncompleteSsoFromRestToBackend.

@Test
public void mapIncompleteSsoFromRestToBackend() throws Exception {
    Sso restSso = new Sso();
    assertNull(SsoMapper.map(restSso, null));
}
Also used : Sso(org.ovirt.engine.api.model.Sso) Test(org.junit.Test)

Example 7 with Sso

use of org.ovirt.engine.api.model.Sso in project ovirt-engine by oVirt.

the class SsoMapperTest method mapNoneSsoFromBackendToRest.

@Test
public void mapNoneSsoFromBackendToRest() throws Exception {
    SsoMethod backendSsoMethod = SsoMethod.NONE;
    Sso restSso = SsoMapper.map(backendSsoMethod, null);
    assertNotNull(restSso);
    assertNotNull(restSso.getMethods());
    assertNotNull(restSso.getMethods().getMethods());
    assertTrue(restSso.getMethods().getMethods().isEmpty());
}
Also used : SsoMethod(org.ovirt.engine.core.common.businessentities.SsoMethod) Sso(org.ovirt.engine.api.model.Sso) Test(org.junit.Test)

Aggregations

Sso (org.ovirt.engine.api.model.Sso)7 Test (org.junit.Test)5 SsoMethod (org.ovirt.engine.core.common.businessentities.SsoMethod)5 Methods (org.ovirt.engine.api.model.Methods)4 Method (org.ovirt.engine.api.model.Method)2 V3Sso (org.ovirt.engine.api.v3.types.V3Sso)1