File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
rxjava-contrib/rxjava-swing/src
main/java/rx/swing/sources
test/java/rx/swing/sources Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public Boolean call(KeyEvent event) {
99
99
}
100
100
});
101
101
102
- return filteredKeyEvents .scan (Collections .<Integer >emptySet (), new CollectKeys ());
102
+ return filteredKeyEvents .scan (Collections .<Integer >emptySet (), new CollectKeys ()). skip ( 1 ) ;
103
103
}
104
104
105
105
}
Original file line number Diff line number Diff line change @@ -96,9 +96,6 @@ public void call() {
96
96
97
97
InOrder inOrder = inOrder (action );
98
98
fireKeyEvent (keyEvent (1 , KeyEvent .KEY_PRESSED ));
99
- // we receive an empty event at the beginning due to behavior of scan with an initial value
100
- inOrder .verify (action , times (1 )).call (
101
- Collections .<Integer > emptySet ());
102
99
inOrder .verify (action , times (1 )).call (
103
100
new HashSet <Integer >(asList (1 )));
104
101
verify (error , never ()).call (Matchers .<Throwable > any ());
You can’t perform that action at this time.
0 commit comments