From 63d78e1f1ec213e983070c5f12a4da1f6389ab8a Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 23 Jun 2017 14:45:51 +0900 Subject: [PATCH] added test --- .../module/noauthprobe/dao/NoAuthProbeDAOTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 3a4bbb6..0417c8b 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 @@ -13,6 +13,8 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import java.util.List; + import static org.junit.Assert.*; /** @@ -73,4 +75,15 @@ public class NoAuthProbeDAOTest { } + @Test + public void list() { + + + List probes = this.noAuthProbeDAO.findAllByDomainId(1); + + + Assert.assertNotEquals(probes.size(), 0); + + } + } \ No newline at end of file