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 3474380..f8e10e4 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 @@ -2,8 +2,10 @@ package com.loafle.overflow.module.noauthprobe.dao; import com.loafle.overflow.AppConfig; import com.loafle.overflow.JdbcConfiguration; +import com.loafle.overflow.module.domain.Domain; import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe; import com.loafle.overflow.module.noauthprobe.type.AuthType; +import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; @@ -45,6 +47,13 @@ public class NoAuthProbeDAOTest { noAuthProbe.setStatus(AuthType.PROCESS); noAuthProbe.setTempProbeKey("4444"); + Domain d = new Domain(); + d.setId(1); + noAuthProbe.setDomain(d); + + System.out.println(noAuthProbe.getId()); + + Assert.assertNotEquals(noAuthProbe.getId(), 0); } diff --git a/src/test/java/com/loafle/overflow/noauthagent/dao/JPANoAuthAgentDAOTest.java b/src/test/java/com/loafle/overflow/noauthagent/dao/JPANoAuthAgentDAOTest.java deleted file mode 100644 index c2e6dc0..0000000 --- a/src/test/java/com/loafle/overflow/noauthagent/dao/JPANoAuthAgentDAOTest.java +++ /dev/null @@ -1,58 +0,0 @@ -//package com.loafle.overflow.noauthagent.dao; -// -//import com.loafle.overflow.module.noauthagent.dao.JPANoAuthAgentDAO; -//import com.loafle.overflow.module.noauthagent.model.NoAuthAgent; -//import com.loafle.overflow.module.noauthagent.type.AuthType; -//import org.junit.Before; -//import org.junit.Test; -// -//import java.util.Date; -// -///** -// * Created by root on 17. 6. 4. -// */ -//public class JPANoAuthAgentDAOTest { -// -// private JPANoAuthAgentDAO jpaNoAuthAgentDAO = null; -// -// @Before -// public void Before() { -// this.jpaNoAuthAgentDAO = new JPANoAuthAgentDAO(); -// } -// -// @Test -// public void findByTempKey() throws Exception { -// -// NoAuthAgent noAuthAgent = new NoAuthAgent(); -// noAuthAgent.setTempKey("3398473-90847903874"); -// -// NoAuthAgent aa = this.jpaNoAuthAgentDAO.findByTempKey(noAuthAgent); -// -// System.out.println(aa.getAuthStatus()); -// -// } -// -// @Test -// public void findAllByNoAuth() throws Exception { -// } -// -// -// @Test -// public void createNoAuthAgent() { -// NoAuthAgent noAuthAgent = new NoAuthAgent(); -// -// -// noAuthAgent.setApiKey("aaaaaaa"); -// noAuthAgent.setDate(new Date()); -// noAuthAgent.setHostName("Snoop pc"); -// noAuthAgent.setLocalIP(4123); -// noAuthAgent.setTempKey("3398473-90847903874"); -// noAuthAgent.setAuthStatus(AuthType.WAIT); -// -// this.jpaNoAuthAgentDAO.create(noAuthAgent); -// } -// -// -// -// -//} \ No newline at end of file