added noauthprobe readByTempKey

This commit is contained in:
snoop 2017-09-21 18:17:18 +09:00
parent 4d09710884
commit 03e8d2711c
2 changed files with 13 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}