use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testEmptyUuid.
@Test
public void testEmptyUuid() {
ConfigurationMap config = new ConfigurationMap();
//
Assert.assertNull(config.getUuid(UUID_PARAMETER));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testValidUuidAsString.
@Test
public void testValidUuidAsString() {
ConfigurationMap config = new ConfigurationMap();
UUID uuid = UUID.randomUUID();
config.put(UUID_PARAMETER, uuid.toString());
//
Assert.assertEquals(uuid, config.getUuid(UUID_PARAMETER));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testValidUuid.
@Test
public void testValidUuid() {
ConfigurationMap config = new ConfigurationMap();
UUID uuid = UUID.randomUUID();
config.put(UUID_PARAMETER, uuid);
//
Assert.assertEquals(uuid, config.getUuid(UUID_PARAMETER));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testNotEqualsEntity.
@Test
public void testNotEqualsEntity() {
ConfigurationMap configOne = new ConfigurationMap();
configOne.put("one", new IdmIdentityDto(UUID.randomUUID()));
ConfigurationMap configTwo = new ConfigurationMap();
configTwo.put("one", new IdmIdentityDto(UUID.randomUUID()));
//
Assert.assertFalse(configOne.equals(configTwo));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testNotEqualsBoolean.
@Test
public void testNotEqualsBoolean() {
ConfigurationMap configOne = new ConfigurationMap();
configOne.put("one", true);
ConfigurationMap configTwo = new ConfigurationMap();
configTwo.put("one", false);
//
Assert.assertFalse(configOne.equals(configTwo));
}
Aggregations