Skip to content

Instantly share code, notes, and snippets.

@fab1an
Created January 7, 2017 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fab1an/0670b43886e63a4edee7c162f058fd01 to your computer and use it in GitHub Desktop.
Save fab1an/0670b43886e63a4edee7c162f058fd01 to your computer and use it in GitHub Desktop.
@Test
public void bugInGrouper() {
final TransactionList<String> source = new TransactionList<String>(new BasicEventList<String>());
final UniqueList<String> uniqueList = new UniqueList<String>(source, String.CASE_INSENSITIVE_ORDER);
source.add("A");
source.add("A");
source.add("B");
source.beginEvent();
source.set(0, "B");
source.set(1, "B");
source.commitEvent();
assertEquals(GlazedListsTests.stringToList("BBB"), source);
assertEquals(GlazedListsTests.stringToList("B"), uniqueList);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment