From 987b248e89ef45a7b220dd1e4330d9dce481f437 Mon Sep 17 00:00:00 2001 From: insanity Date: Fri, 27 Apr 2018 12:25:44 +0900 Subject: [PATCH] bug --- .../service/CentralNoAuthProbeService.java | 2 +- .../service/NoAuthProbeServiceTest.java | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java index 1ae9c99..2b929f5 100644 --- a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java @@ -214,7 +214,7 @@ public class CentralNoAuthProbeService implements NoAuthProbeService { return this.readAllByDomain(noAuthProbe.getDomain()); } - public NoAuthProbe readByTempKey(String tempKey) { + public NoAuthProbe readByTempProbeKey(String tempKey) throws OverflowException { return this.noAuthProbeDAO.findByTempProbeKey(tempKey); } } diff --git a/src/test/java/com/loafle/overflow/central/module/noauthprobe/service/NoAuthProbeServiceTest.java b/src/test/java/com/loafle/overflow/central/module/noauthprobe/service/NoAuthProbeServiceTest.java index 4271f9c..2e19359 100644 --- a/src/test/java/com/loafle/overflow/central/module/noauthprobe/service/NoAuthProbeServiceTest.java +++ b/src/test/java/com/loafle/overflow/central/module/noauthprobe/service/NoAuthProbeServiceTest.java @@ -1,10 +1,13 @@ // package com.loafle.overflow.central.module.noauthprobe.service; // import com.loafle.overflow.central.commons.service.MessagePublisher; -// import com.loafle.overflow.central.module.domain.model.Domain; -// import com.loafle.overflow.central.module.meta.model.MetaNoAuthProbeStatus; -// import com.loafle.overflow.central.module.noauthprobe.model.NoAuthProbe; // import com.loafle.overflow.central.spring.AppConfigTest; +// import com.loafle.overflow.core.exception.OverflowException; +// import com.loafle.overflow.model.domain.Domain; +// import com.loafle.overflow.model.meta.MetaNoAuthProbeStatus; +// import com.loafle.overflow.model.noauthprobe.NoAuthProbe; +// import com.loafle.overflow.service.central.noauthprobe.NoAuthProbeService; + // import org.junit.Assert; // import org.junit.Ignore; // import org.junit.Test; @@ -106,7 +109,7 @@ // } -// // @Ignore +// @Ignore // @Test // public void read() throws Exception { @@ -115,7 +118,7 @@ // Assert.assertNotEquals(noAuthProbe, null); // } - +// @Ignore // @Test // public void acceptProbe() throws IOException { @@ -125,6 +128,7 @@ // } +// @Ignore // @Test // public void ssss() { // String ss = "192.168.1.106/24|fe80::36c0:6c3e:6006:dd23/64"; @@ -144,7 +148,8 @@ // } // @Test -// public void sendWeb() { +// @Ignore +// public void sendWeb() throws OverflowException { // Domain domain = new Domain(); // domain.setId(1);