From ecb8a5ca42d2e6eac799e04d08a71c42d8b21a7b Mon Sep 17 00:00:00 2001 From: dongchenxu Date: Sat, 26 Jan 2019 17:53:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E7=94=A8=E4=BE=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sandbox/qatest/api/EventWatchBuilderTestCase.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sandbox-api/src/test/java/com/alibaba/jvm/sandbox/qatest/api/EventWatchBuilderTestCase.java b/sandbox-api/src/test/java/com/alibaba/jvm/sandbox/qatest/api/EventWatchBuilderTestCase.java index 8502ea9b..b3aa94db 100644 --- a/sandbox-api/src/test/java/com/alibaba/jvm/sandbox/qatest/api/EventWatchBuilderTestCase.java +++ b/sandbox-api/src/test/java/com/alibaba/jvm/sandbox/qatest/api/EventWatchBuilderTestCase.java @@ -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") @@ -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); @@ -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); @@ -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);