...
Table 15: Tests in SensorWithGraphDAOTest
GaugeGraphSettings tests
GaugeGraphService
...
Name
...
Expected result
...
Actual result
...
Table 13: Test in SensorServiceTest
SensorSettingsResourceTest
Name | Expected result | Parameters | Actual result | Success | Comments | |
---|---|---|---|---|---|---|
1 | ||||||
2 | ||||||
3 |
Table 14 16: Tests in SensorWithGraphResourceTestSensorSettingsResourceTest
GaugeGraphSettingsDAOTest
Name | Expected result | Parameters | Actual result | Success | Comments | |
---|---|---|---|---|---|---|
1 | getSensorSettingsForGauge() | Expect a result that is not null. | Returns something that is not null. | Yes | ||
2 | getSensorSettingsForLinechart() | Expect a result that is not null. | A DatabaseException is thrown. | Yes | ||
3 | getSensorSettingsForGaugeException() | Throws a SQLException that in return throws a DatabaseException. | A DatabaseException is thrown. | Yes |
Table 15 17: Tests in SensorWithGraphDAOTestin GaugeGraphSettingsDAOTest
DtoTest
This class tests if the DTO's do not contain any logic and only getters and setters. The testPojoStructureAndBehavior() function executes this test. Pojo is a dependency that can be used for this kind of testing.
...