[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

    [ https://java.net/jira/browse/GLAZEDLISTS-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=394154#comment-394154 ]

brands commented on GLAZEDLISTS-599:
------------------------------------

I have found a (ugly) solution to this problem, shich I am testing currently...

> 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.10.0, 1.9.1
>            Reporter: brands
>            Assignee: jessewilson
>             Fix For: 1.10.0
>
>
> Another test for GroupingList that still fails:
> {code}
>     @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());
>     }
> {code}



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