From 03e8d2711c08ecce565546f661cf7fd4bfd224be Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 21 Sep 2017 18:17:18 +0900 Subject: [PATCH] added noauthprobe readByTempKey --- .../module/noauthprobe/service/NoAuthProbeService.java | 4 ++++ .../noauthprobe/service/NoAuthProbeServiceTest.java | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java index 23a55fd..9bd218e 100644 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java @@ -105,4 +105,8 @@ public class NoAuthProbeService { this.noAuthProbeDAO.save(noAuthProbes); return this.readAllByDomain(noAuthProbes.get(0).getDomain()); } + + public NoAuthProbe readByTempKey(String tempKey) { + return this.noAuthProbeDAO.findByTempProbeKey(tempKey); + } } diff --git a/src/test/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeServiceTest.java b/src/test/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeServiceTest.java index fd10020..6a0963d 100644 --- a/src/test/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeServiceTest.java +++ b/src/test/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeServiceTest.java @@ -133,4 +133,13 @@ public class NoAuthProbeServiceTest { System.out.println(sss[0]); } + @Test + public void readByTempKey() { + + NoAuthProbe noAuthProbe = this.noAuthProbeService.readByTempKey("1cf2555c57d511e79714080027658d15"); + + Assert.assertNotEquals(noAuthProbe, null); + + } + } \ No newline at end of file