Search in sources :

Example 6 with ConfigurationMap

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));
}
Also used : ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) AbstractUnitTest(eu.bcvsolutions.idm.test.api.AbstractUnitTest) Test(org.junit.Test)

Example 7 with ConfigurationMap

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));
}
Also used : ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) UUID(java.util.UUID) AbstractUnitTest(eu.bcvsolutions.idm.test.api.AbstractUnitTest) Test(org.junit.Test)

Example 8 with ConfigurationMap

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));
}
Also used : ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) UUID(java.util.UUID) AbstractUnitTest(eu.bcvsolutions.idm.test.api.AbstractUnitTest) Test(org.junit.Test)

Example 9 with ConfigurationMap

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));
}
Also used : ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) IdmIdentityDto(eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto) AbstractUnitTest(eu.bcvsolutions.idm.test.api.AbstractUnitTest) Test(org.junit.Test)

Example 10 with ConfigurationMap

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));
}
Also used : ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) AbstractUnitTest(eu.bcvsolutions.idm.test.api.AbstractUnitTest) Test(org.junit.Test)

Aggregations

ConfigurationMap (eu.bcvsolutions.idm.core.api.domain.ConfigurationMap)16 AbstractUnitTest (eu.bcvsolutions.idm.test.api.AbstractUnitTest)15 Test (org.junit.Test)15 UUID (java.util.UUID)3 IdmIdentityDto (eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto)2