From 7fcac63be5fabbdc1f35277baa3f90c43e20fde1 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 23 Jun 2017 18:57:30 +0900 Subject: [PATCH] fixed test --- .../module/noauthprobe/dao/NoAuthProbeDAOTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAOTest.java b/src/test/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAOTest.java index a46cb78..9dd0205 100644 --- a/src/test/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAOTest.java +++ b/src/test/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAOTest.java @@ -29,7 +29,7 @@ public class NoAuthProbeDAOTest { @Test public void testFindTempKey() { - NoAuthProbe probe = this.noAuthProbeDAO.findByTempKey("1cf2555c57d511e79714080027658d13"); + NoAuthProbe probe = this.noAuthProbeDAO.findByTempProbeKey("1cf2555c57d511e79714080027658d13"); Assert.assertNotEquals(probe, null); @@ -64,7 +64,7 @@ public class NoAuthProbeDAOTest { @Test public void update() { - NoAuthProbe probe = this.noAuthProbeDAO.findByTempKey("1cf2555c57d511e79714080027658d13"); + NoAuthProbe probe = this.noAuthProbeDAO.findByTempProbeKey("1cf2555c57d511e79714080027658d13"); probe.setStatus(AuthType.A); @@ -75,8 +75,10 @@ public class NoAuthProbeDAOTest { @Test public void list() { + Domain domain = new Domain(); + domain.setId(1); - List probes = this.noAuthProbeDAO.findAllByDomainId(1); + List probes = this.noAuthProbeDAO.findAllByDomain(domain); Assert.assertNotEquals(probes.size(), 0);