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 new file mode 100644 index 0000000..fa1c2a4 --- /dev/null +++ b/src/test/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAOTest.java @@ -0,0 +1,51 @@ +package com.loafle.overflow.module.noauthprobe.dao; + +import com.loafle.overflow.AppConfig; +import com.loafle.overflow.JdbcConfiguration; +import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe; +import com.loafle.overflow.module.noauthprobe.type.AuthType; +import org.junit.Ignore; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +import static org.junit.Assert.*; + +/** + * Created by root on 17. 6. 22. + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class}) +public class NoAuthProbeDAOTest { + + + @Autowired + private NoAuthProbeDAO noAuthProbeDAO; + + + @Test + public void testFindTempKey() { + + + + } + + @Ignore + @Test + public void saveNoauth() { + + NoAuthProbe noAuthProbe = new NoAuthProbe(); + + noAuthProbe.setApiKey("11111111111111"); + noAuthProbe.setHostName("snooop"); + noAuthProbe.setIpAddress(44444); + noAuthProbe.setMacAddress(222222); + noAuthProbe.setStatus(AuthType.PROCESS); + noAuthProbe.setTempProbeKey("4444"); + + + } + +} \ No newline at end of file