Quantcast

[JIRA] (GLAZEDLISTS-599) GroupingList produces invalid ListChanges

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[JIRA] (GLAZEDLISTS-599) GroupingList produces invalid ListChanges

JIRA jira-no-reply@java.net
brands created GLAZEDLISTS-599:
----------------------------------

             Summary: GroupingList produces invalid ListChanges
                 Key: GLAZEDLISTS-599
                 URL: https://java.net/jira/browse/GLAZEDLISTS-599
             Project: glazedlists
          Issue Type: Bug
          Components: core
    Affects Versions: 1.9.1, 1.10.0
            Reporter: brands
            Assignee: jessewilson
             Fix For: 1.10.0


Another test for GroupingList that still fails:

    @Test
    public void testIssue599() {
        BasicEventList<String> base = new BasicEventList<String>();
        base.add("A");
        base.add("A");
        TransactionList<String> source = new TransactionList<String>(base);
        GroupingList<String> grouped = new GroupingList<String>(source, String.CASE_INSENSITIVE_ORDER);
        ListConsistencyListener<List<String>> listener = ListConsistencyListener.<List<String>>install(grouped, "GROUPED:", true);
        listener.setPreviousElementTracked(false);
        source.beginEvent(true);
        source.add(0, "A");
        source.set(1, "A");
        source.add(3, "A");
        source.commitEvent();
        assertEquals("[[A, A, A, A]]", grouped.toString());
    }




--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
Loading...