added meta
This commit is contained in:
parent
6d2c50d953
commit
7eaf1c41d0
|
@ -1,13 +1,17 @@
|
||||||
package com.loafle.overflow.module.meta.dao;
|
package com.loafle.overflow.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaCrawler;
|
||||||
import com.loafle.overflow.module.meta.model.MetaCrawlerInputItem;
|
import com.loafle.overflow.module.meta.model.MetaCrawlerInputItem;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaCrawlerInputItemDAO extends JpaRepository<MetaCrawlerInputItem, Integer> {
|
public interface MetaCrawlerInputItemDAO extends JpaRepository<MetaCrawlerInputItem, Integer> {
|
||||||
|
|
||||||
|
List<MetaCrawlerInputItem> findAllByMetaCrawler(MetaCrawler metaCrawler);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
package com.loafle.overflow.module.meta.dao;
|
package com.loafle.overflow.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInfraType;
|
||||||
import com.loafle.overflow.module.meta.model.MetaInfraVendor;
|
import com.loafle.overflow.module.meta.model.MetaInfraVendor;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaInfraVendorDAO extends JpaRepository<MetaInfraVendor, Integer> {
|
public interface MetaInfraVendorDAO extends JpaRepository<MetaInfraVendor, Integer> {
|
||||||
|
|
||||||
|
List<MetaInfraVendor> findAllByMetaInfraType(MetaInfraType infraType);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaCrawlerInputItemDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaCrawler;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaCrawlerInputItem;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaCrawlerInputItemService")
|
||||||
|
public class MetaCrawlerInputItemService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaCrawlerInputItemDAO crawlerInputItemDAO;
|
||||||
|
|
||||||
|
public List<MetaCrawlerInputItem> readAllByMetaCrawler(MetaCrawler metaCrawler) {
|
||||||
|
return this.crawlerInputItemDAO.findAllByMetaCrawler(metaCrawler);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaInfraTypeDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInfraType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaInfraTypeService")
|
||||||
|
public class MetaInfraTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaInfraTypeDAO infraTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaInfraType> readAll() {
|
||||||
|
return this.infraTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaInfraVendorDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInfraType;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInfraVendor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaInfraVendorService")
|
||||||
|
public class MetaInfraVendorService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaInfraVendorDAO infraVendorDAO;
|
||||||
|
|
||||||
|
public List<MetaInfraVendor> readAllByMetaInfraType(MetaInfraType infraType) {
|
||||||
|
return this.infraVendorDAO.findAllByMetaInfraType(infraType);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaInputTypeDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInputType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaInputTypeService")
|
||||||
|
public class MetaInputTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaInputTypeDAO inputTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaInputType> readAll() {
|
||||||
|
return this.inputTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaMemberStatusDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaMemberStatus;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaMemberStatusService")
|
||||||
|
public class MetaMemberStatusService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaMemberStatusDAO memberStatusDAO;
|
||||||
|
|
||||||
|
public List<MetaMemberStatus> readAll() {
|
||||||
|
return this.memberStatusDAO.findAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaNoAuthProbeStatusDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaNoAuthProbeStatus;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaNoAuthProbeStatusService")
|
||||||
|
public class MetaNoAuthProbeStatusService {
|
||||||
|
@Autowired
|
||||||
|
private MetaNoAuthProbeStatusDAO noAuthProbeStatusDAO;
|
||||||
|
|
||||||
|
public List<MetaNoAuthProbeStatus> readAll() {
|
||||||
|
return this.noAuthProbeStatusDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaProbeArchitectureDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaProbeArchitecture;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaProbeArchitectureService")
|
||||||
|
public class MetaProbeArchitectureService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaProbeArchitectureDAO probeArchitectureDAO;
|
||||||
|
|
||||||
|
public List<MetaProbeArchitecture> readAll() {
|
||||||
|
return this.probeArchitectureDAO.findAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.dao.MetaProbeOsDAO;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaProbeOs;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaProbeOsService")
|
||||||
|
public class MetaProbeOsService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaProbeOsDAO probeOsDAO;
|
||||||
|
|
||||||
|
public List<MetaProbeOs> readAll() {
|
||||||
|
return this.probeOsDAO.findAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaCrawler;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaCrawlerInputItem;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaCrawlerInputItemServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaCrawlerInputItemService crawlerInputItemService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAllByMetaCrawler() throws Exception {
|
||||||
|
|
||||||
|
MetaCrawler metaCrawler = new MetaCrawler();
|
||||||
|
metaCrawler.setId((short)1);
|
||||||
|
|
||||||
|
List<MetaCrawlerInputItem> crawlerInputItems = this.crawlerInputItemService.readAllByMetaCrawler(metaCrawler);
|
||||||
|
|
||||||
|
Assert.assertNotEquals(crawlerInputItems.size(), 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInfraType;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaInfraTypeServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaInfraTypeService infraTypeService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAll() throws Exception {
|
||||||
|
|
||||||
|
List<MetaInfraType> metaInfraTypes = this.infraTypeService.readAll();
|
||||||
|
|
||||||
|
Assert.assertNotEquals(metaInfraTypes.size(), 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInfraType;
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInfraVendor;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaInfraVendorServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaInfraVendorService infraVendorService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAllByMetaInfraType() throws Exception {
|
||||||
|
|
||||||
|
MetaInfraType metaInfraType = new MetaInfraType();
|
||||||
|
metaInfraType.setId(1);
|
||||||
|
|
||||||
|
List<MetaInfraVendor> infraVendors = this.infraVendorService.readAllByMetaInfraType(metaInfraType);
|
||||||
|
|
||||||
|
Assert.assertNotEquals(infraVendors.size(), 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaInputType;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaInputTypeServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaInputTypeService inputTypeService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAll() throws Exception {
|
||||||
|
|
||||||
|
List<MetaInputType> inputTypes = this.inputTypeService.readAll();
|
||||||
|
|
||||||
|
Assert.assertNotEquals(inputTypes.size(), 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaMemberStatus;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaMemberStatusServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaMemberStatusService memberStatusService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAll() throws Exception {
|
||||||
|
|
||||||
|
List<MetaMemberStatus> memberStatuses = this.memberStatusService.readAll();
|
||||||
|
|
||||||
|
Assert.assertNotEquals(memberStatuses.size(), 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaNoAuthProbeStatus;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaNoAuthProbeStatusServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaNoAuthProbeStatusService noAuthProbeStatusService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAll() throws Exception {
|
||||||
|
List<MetaNoAuthProbeStatus> metaNoAuthProbeStatuses = this.noAuthProbeStatusService.readAll();
|
||||||
|
|
||||||
|
Assert.assertNotEquals(metaNoAuthProbeStatuses.size(), 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaProbeArchitecture;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaProbeArchitectureServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaProbeArchitectureService probeArchitectureService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAll() throws Exception {
|
||||||
|
|
||||||
|
List<MetaProbeArchitecture> probeArchitectures = this.probeArchitectureService.readAll();
|
||||||
|
|
||||||
|
Assert.assertNotEquals(probeArchitectures.size(), 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.loafle.overflow.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.meta.model.MetaProbeOs;
|
||||||
|
import com.loafle.overflow.spring.AppConfig;
|
||||||
|
import com.loafle.overflow.spring.JdbcConfiguration;
|
||||||
|
import com.loafle.overflow.spring.MailConfiguration;
|
||||||
|
import org.junit.Assert;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class, MailConfiguration.class})
|
||||||
|
public class MetaProbeOsServiceTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaProbeOsService probeOsService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readAll() throws Exception {
|
||||||
|
|
||||||
|
List<MetaProbeOs> metaProbeOs = this.probeOsService.readAll();
|
||||||
|
|
||||||
|
Assert.assertNotEquals(metaProbeOs.size(), 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user