use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testEqualsDeepLists.
@Test
public void testEqualsDeepLists() {
ConfigurationMap configOne = new ConfigurationMap();
configOne.put("one", Lists.newArrayList("one", "two"));
ConfigurationMap configTwo = new ConfigurationMap();
configTwo.put("one", Lists.newArrayList("one", "two"));
//
Assert.assertTrue(configOne.equals(configTwo));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testToMap.
@Test
public void testToMap() {
ConfigurationMap config = new ConfigurationMap();
config.put("one", true);
//
Assert.assertEquals(true, config.toMap().get("one"));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testNotEquals.
@Test
public void testNotEquals() {
ConfigurationMap configOne = new ConfigurationMap();
configOne.put("one", "valueOne");
ConfigurationMap configTwo = new ConfigurationMap();
configTwo.put("one", "valueOnea");
//
Assert.assertFalse(configOne.equals(configTwo));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testEqualsEntity.
@Test
public void testEqualsEntity() {
ConfigurationMap configOne = new ConfigurationMap();
UUID uuid = UUID.randomUUID();
configOne.put("one", new IdmIdentityDto(uuid));
ConfigurationMap configTwo = new ConfigurationMap();
configTwo.put("one", new IdmIdentityDto(uuid));
//
Assert.assertTrue(configOne.equals(configTwo));
}
use of eu.bcvsolutions.idm.core.api.domain.ConfigurationMap in project CzechIdMng by bcvsolutions.
the class ConfigurationMapUnitTest method testEqualsBoolean.
@Test
public void testEqualsBoolean() {
ConfigurationMap configOne = new ConfigurationMap();
configOne.put("one", true);
ConfigurationMap configTwo = new ConfigurationMap();
configTwo.put("one", true);
//
Assert.assertTrue(configOne.equals(configTwo));
}
Aggregations