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