t est
This commit is contained in:
snoop 2017-06-22 20:25:29 +09:00
parent 5875b72835
commit 4424126bb3

View File

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