From 8c5c11a445e9b0662368fb495bcca4394ff96034 Mon Sep 17 00:00:00 2001 From: xen Date: Tue, 12 Feb 2019 11:49:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/ma/luan/yiyan/service/DataServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/ma/luan/yiyan/service/DataServiceTest.java b/src/test/java/ma/luan/yiyan/service/DataServiceTest.java index 6570655..e4bd8b7 100644 --- a/src/test/java/ma/luan/yiyan/service/DataServiceTest.java +++ b/src/test/java/ma/luan/yiyan/service/DataServiceTest.java @@ -38,8 +38,8 @@ public void testGetHelpFromRedis(TestContext context) { vertx.eventBus().send(Key.GET_HELP_FROM_REDIS, null, r1 -> { if (r1.succeeded()) { JsonArray array = (JsonArray) r1.result().body(); - assertThat(array.getJsonObject(0) - , equalTo(new JsonObject().put("全部", "https://api.gushi.ci/all"))); + context.verify(v -> assertThat(array.getJsonObject(0) + , equalTo(new JsonObject().put("全部", "https://api.gushi.ci/all")))); async.complete(); } else { context.fail();