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) {
9999 }
100100 });
101101
102- return filteredKeyEvents .scan (Collections .<Integer >emptySet (), new CollectKeys ());
102+ return filteredKeyEvents .scan (Collections .<Integer >emptySet (), new CollectKeys ()). skip ( 1 ) ;
103103 }
104104
105105}
Original file line number Diff line number Diff line change @@ -96,9 +96,6 @@ public void call() {
9696
9797 InOrder inOrder = inOrder (action );
9898 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 ());
10299 inOrder .verify (action , times (1 )).call (
103100 new HashSet <Integer >(asList (1 )));
104101 verify (error , never ()).call (Matchers .<Throwable > any ());
You can’t perform that action at this time.
0 commit comments