@ContextConfiguration(classes={ServletInitializer.class,AppConfig.class,HibernateConfig.class}) @WebAppConfiguration public class TestSensorDataRepository extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private static org.apache.log4j.Logger |
logger |
|
(package private) SensorDataRepository |
sensorDataRepository |
|
(package private) org.hibernate.SessionFactory |
sessionFactory |
Constructor | Description |
---|---|
TestSensorDataRepository() |
Modifier and Type | Method | Description |
---|---|---|
void |
testClear() |
|
void |
testGetAll() |
|
void |
testGetAllBySensorId() |
|
void |
testGetAllLaterThan() |
|
void |
testGetAllLaterThanBySensorIp() |
|
void |
testSave() |
|
void |
testSize() |
@Autowired org.hibernate.SessionFactory sessionFactory
@Autowired SensorDataRepository sensorDataRepository
private static final org.apache.log4j.Logger logger
@Transactional public void testSave()
@Transactional public void testGetAll()
@Transactional public void testGetAllBySensorId()
@Transactional public void testSize()
@Transactional public void testClear()
@Transactional public void testGetAllLaterThan()
@Transactional public void testGetAllLaterThanBySensorIp()