@Test public void testChangeHistorySpaceInFieldName() { String change = "[foo bar] set to [baz]"; assertEquals( "[<font color=#ffffff>foo bar</font>] set to [<font color=#ffffff>baz</font>]\n", ChangeHistoryUtils.highlight(change, colour)); }
@Test public void testChangeHistorySetTo() { String change = "[foo] set to [bar]"; assertEquals( "[<font color=#ffffff>foo</font>] set to [<font color=#ffffff>bar</font>]\n", ChangeHistoryUtils.highlight(change, colour)); }
@Test public void testChangeHistoryWasRemoved() { String change = "[foo] [1.0] was removed"; assertEquals( "[<font color=#ffffff>foo</font>] [<font color=#ffffff>1.0</font>] was removed\n", ChangeHistoryUtils.highlight(change, colour)); }
@Test public void testChangeHistoryChangedFrom() { String change = "[foo] changed from [bar] to [baz]"; assertEquals( "[<font color=#ffffff>foo</font>] changed from [<font color=#ffffff>bar</font>] to [<font color=#ffffff>baz</font>]\n", ChangeHistoryUtils.highlight(change, colour)); }