@Test public void testSetAttributeValuesAddOneRemoveOne() throws Exception { artifact.setAttributeValues(CoreAttributeTypes.StaticId, ADD_ONE_REMOVE_ONE); List<String> actual = artifact.getAttributesToStringList(CoreAttributeTypes.StaticId); assertTrue(Collections.isEqual(ADD_ONE_REMOVE_ONE, actual)); }
@Test public void testSetAttributeValuesWithDuplicates() throws Exception { artifact.setAttributeValues(CoreAttributeTypes.StaticId, ADD_DUPLICATES); List<String> actual = artifact.getAttributesToStringList(CoreAttributeTypes.StaticId); assertTrue(Collections.isEqual(ADD_DUPLICATES_EXPECTED, actual)); }
@Test public void testSetAttributeValues() throws Exception { List<String> actual = artifact.getAttributesToStringList(CoreAttributeTypes.StaticId); assertTrue(Collections.isEqual(START_VALUE, actual)); }