Skip to content

Commit

Permalink
清理用例代码
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchenxu committed Jan 26, 2019
1 parent f61d086 commit ecb8a5c
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public class EventWatchBuilderTestCase {

final MockForBuilderModuleEventWatcher mockForBuilderModuleEventWatcher
= new MockForBuilderModuleEventWatcher();
final MockForBuilderProgress mockForBuilderProgress
= new MockForBuilderProgress();
new EventWatchBuilder(mockForBuilderModuleEventWatcher)
.onClass(String.class)
.onBehavior("toString")
Expand All @@ -41,15 +39,12 @@ public class EventWatchBuilderTestCase {

final MockForBuilderModuleEventWatcher mockForBuilderModuleEventWatcher
= new MockForBuilderModuleEventWatcher();
final MockForBuilderProgress mockForBuilderProgress
= new MockForBuilderProgress();
new EventWatchBuilder(mockForBuilderModuleEventWatcher)
.onClass(String.class)
.onBehavior("toString")
.onWatching()
.withCall()
.withLine()
.withProgress(mockForBuilderProgress)
.onWatch(new AdviceListener());

Assert.assertEquals(9, mockForBuilderModuleEventWatcher.getEventTypeArray().length);
Expand All @@ -70,14 +65,11 @@ public class EventWatchBuilderTestCase {

final MockForBuilderModuleEventWatcher mockForBuilderModuleEventWatcher
= new MockForBuilderModuleEventWatcher();
final MockForBuilderProgress mockForBuilderProgress
= new MockForBuilderProgress();
new EventWatchBuilder(mockForBuilderModuleEventWatcher)
.onClass(String.class)
.onBehavior("toString")
.onWatching()
.withCall()
.withProgress(mockForBuilderProgress)
.onWatch(new AdviceListener());

Assert.assertEquals(8, mockForBuilderModuleEventWatcher.getEventTypeArray().length);
Expand All @@ -98,14 +90,11 @@ public class EventWatchBuilderTestCase {

final MockForBuilderModuleEventWatcher mockForBuilderModuleEventWatcher
= new MockForBuilderModuleEventWatcher();
final MockForBuilderProgress mockForBuilderProgress
= new MockForBuilderProgress();
new EventWatchBuilder(mockForBuilderModuleEventWatcher)
.onClass(String.class)
.onBehavior("toString")
.onWatching()
.withLine()
.withProgress(mockForBuilderProgress)
.onWatch(new AdviceListener());

Assert.assertEquals(6, mockForBuilderModuleEventWatcher.getEventTypeArray().length);
Expand Down

0 comments on commit ecb8a5c

Please sign in to comment.