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