@ContextConfiguration(classes={ServletInitializer.class,AppConfig.class,HibernateConfig.class,TaskSchedulerConfig.class}) @WebAppConfiguration public class TestDataFetchingAndMappingService extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
(package private) DataFetchingAndMappingService |
dataFetchingAndMappingService |
|
private static org.apache.log4j.Logger |
logger |
|
(package private) SensorDataRepository |
sensorDataRepository |
|
(package private) org.hibernate.SessionFactory |
sessionFactory |
Constructor | Description |
---|---|
TestDataFetchingAndMappingService() |
Modifier and Type | Method | Description |
---|---|---|
void |
testGetAllDataFromDB() |
|
void |
testGetDataForBorderRouterFromDB() |
|
void |
testGetDataForSensorLaterThanFromDB() |
@Autowired DataFetchingAndMappingService dataFetchingAndMappingService
@Autowired org.hibernate.SessionFactory sessionFactory
@Autowired SensorDataRepository sensorDataRepository
private static final org.apache.log4j.Logger logger
@Transactional public void testGetDataForSensorLaterThanFromDB()
@Transactional public void testGetDataForBorderRouterFromDB() throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
@Transactional public void testGetAllDataFromDB() throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException