@@ -94,7 +94,6 @@ public void testAdd() {
94
94
assertEquals ("Test Value 257" , msg1 .getValue ().getSimpleObjectValue ());
95
95
assertNull (msg1 .getValue ().getObservableObjectId ());
96
96
assertEquals (0 , msg1 .getPosition ());
97
- assertEquals (1 , msg1 .getNewSize ());
98
97
99
98
// test adding of a observable object
100
99
root .childList .add (new Child ());
@@ -105,14 +104,12 @@ public void testAdd() {
105
104
assertEquals (Child .class .getName (), msg2 .getClassName ());
106
105
assertNull (msg3 .getValue ().getSimpleObjectValue ());
107
106
assertEquals (msg2 .getObjectId (), msg3 .getValue ().getObservableObjectId ());
108
- assertEquals (1 , msg3 .getNewSize ());
109
107
110
108
// test that the position is set correctly
111
109
root .wrappedList .add ("some text" );
112
110
root .wrappedList .add (1 , "some more text" );
113
111
final AddToList msg4 = (AddToList ) cb .getCommands ().get (0 );
114
112
assertEquals (1 , msg4 .getPosition ());
115
- assertEquals (3 , msg4 .getNewSize ());
116
113
117
114
}
118
115
@@ -128,25 +125,21 @@ public void testRemove() {
128
125
final RemoveFromList msg0 = (RemoveFromList ) cb .getCommands ().get (0 );
129
126
assertEquals (2 , msg0 .getStartPosition ());
130
127
assertEquals (1 , msg0 .getRemoveCount ());
131
- assertEquals (3 , msg0 .getNewSize ());
132
128
133
129
root .wrappedList .remove ("Test Value 0" );
134
130
final RemoveFromList msg1 = (RemoveFromList ) cb .getCommands ().get (0 );
135
131
assertEquals (0 , msg1 .getStartPosition ());
136
132
assertEquals (1 , msg1 .getRemoveCount ());
137
- assertEquals (2 , msg1 .getNewSize ());
138
133
139
134
root .childList .remove (new Child (2 ));
140
135
final RemoveFromList msg2 = (RemoveFromList ) cb .getCommands ().get (0 );
141
136
assertEquals (2 , msg2 .getStartPosition ());
142
137
assertEquals (1 , msg2 .getRemoveCount ());
143
- assertEquals (2 , msg2 .getNewSize ());
144
138
145
139
root .childList .remove (1 );
146
140
final RemoveFromList msg3 = (RemoveFromList ) cb .getCommands ().get (0 );
147
141
assertEquals (1 , msg3 .getStartPosition ());
148
142
assertEquals (1 , msg3 .getRemoveCount ());
149
- assertEquals (1 , msg3 .getNewSize ());
150
143
}
151
144
152
145
/**
@@ -175,22 +168,21 @@ public void testReplace() {
175
168
assertNull (replaceCommand2 .getValue ().getSimpleObjectValue ());
176
169
assertNotNull (replaceCommand2 .getValue ().getObservableObjectId ());
177
170
}
178
-
171
+
179
172
/**
180
173
* Tests whether the {@link List#clear()} operation removes all elements from the list.
181
174
*/
182
175
@ Test
183
176
public void testClear () {
184
177
simpleTestData ();
185
-
178
+
186
179
root .wrappedList .clear ();
187
180
188
181
final Command command = cb .getCommands ().get (0 );
189
182
assertTrue (command instanceof RemoveFromList );
190
183
final RemoveFromList replaceCommand = (RemoveFromList ) command ;
191
184
assertEquals (0 , replaceCommand .getStartPosition ());
192
185
assertEquals (4 , replaceCommand .getRemoveCount ());
193
- assertEquals (0 , replaceCommand .getNewSize ());
194
186
}
195
187
196
188
/**
0 commit comments