~ubuntu-branches/ubuntu/natty/libswingx-java/natty

« back to all changes in this revision

Viewing changes to src/test/org/jdesktop/swingx/sort/TableSortControllerTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2010-07-26 12:11:27 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100726121127-k0d3b21nhja0dn93
Tags: 1:1.6.1-1
* New upstream release.
* Switch to 3.0 (quilt) format.
* Bump Standards-Version to 3.9.1: no changes needed.
* Drop Depends on JRE: not requested anymore by new Java Policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        }
59
59
    }
60
60
 
 
61
//--------------- start of #1291-swingx related tests
 
62
//--------------- PENDING JW: uncomment if the change is uncommented    
 
63
//    /**
 
64
//     * Core Issue http://forums.sun.com/thread.jspa?messageID=10939199#10939199
 
65
//     * 
 
66
//     * Table looses selection of last row if deleted before last.
 
67
//     * 
 
68
//     * Here: DefaultRowSorter conversion throws too much if not sorted.
 
69
//     */
 
70
//    @Test
 
71
//    public void testViewRowCountAfterRemoveNotSorted() {
 
72
//        int rows = controller.getModelRowCount();
 
73
//        ((AncientSwingTeam) controller.getModel()).removeRows(0, 1);
 
74
//        assertEquals(rows, controller.getViewRowCount());
 
75
//    }
 
76
//    
 
77
//    /**
 
78
//     * Core Issue http://forums.sun.com/thread.jspa?messageID=10939199#10939199
 
79
//     * 
 
80
//     * Table looses selection of last row if deleted before last.
 
81
//     * 
 
82
//     * Here: DefaultRowSorter conversion throws too much if not sorted.
 
83
//     */
 
84
//    @Test
 
85
//    public void testViewRowCountAfterInsertNotSorted() {
 
86
//        int rows = controller.getModelRowCount();
 
87
//        ((AncientSwingTeam) controller.getModel()).insertRows(0, 1);
 
88
//        assertEquals(rows, controller.getViewRowCount());
 
89
//    }
 
90
//    
 
91
//    
 
92
//    /**
 
93
//     * Core Issue http://forums.sun.com/thread.jspa?messageID=10939199#10939199
 
94
//     * 
 
95
//     * Table looses selection of last row if deleted before last.
 
96
//     * 
 
97
//     * Here: DefaultRowSorter conversion throws too much if not sorted.
 
98
//     */
 
99
//    @Test
 
100
//    public void testModelRowCountAfterRemoveNotSorted() {
 
101
//        int rows = controller.getModelRowCount();
 
102
//        ((AncientSwingTeam) controller.getModel()).removeRows(0, 1);
 
103
//        assertEquals(rows, controller.getModelRowCount());
 
104
//    }
 
105
//    
 
106
//    /**
 
107
//     * Core Issue http://forums.sun.com/thread.jspa?messageID=10939199#10939199
 
108
//     * 
 
109
//     * Table looses selection of last row if deleted before last.
 
110
//     * 
 
111
//     * Here: DefaultRowSorter conversion throws too much if not sorted.
 
112
//     */
 
113
//    @Test
 
114
//    public void testModelRowCountAfterInsertNotSorted() {
 
115
//        int rows = controller.getModelRowCount();
 
116
//        ((AncientSwingTeam) controller.getModel()).insertRows(0, 1);
 
117
//        assertEquals(rows, controller.getModelRowCount());
 
118
//    }
 
119
//    
 
120
//--------------- end of #1291 related tests    
 
121
 
61
122
    /**
62
123
     * Issue #1156-swingx: sorter must use comparable if available
63
124
     * TableSortController