public class DevicesServiceIntegrationTest
extends AbstractOSGiTest
| Constructor and Description |
|---|
DevicesServiceIntegrationTest()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAfter()
Here you can put everything you want to be executed after every test
|
void |
doBefore()
Here you can put everything you want to be executed before every test
|
void |
testActiveDevice()
Tests the getActiveDevices() method
|
void |
testAllDevices()
Tests the getAllDevices() method of the DevicesService
|
void |
testDeviceIdOK() |
void |
testDeviceNullId() |
void |
testDeviceWrongId() |
void |
testInconsistentDate()
Tests the implementation of the getDataEntries when start and end dates are inconsistent.
|
void |
testNoDataEntry()
Tests the implementation of the getDataEntries method when start and end dates are consistent, but
no entries has been found in the DB.
|
void |
testOKDataEntry()
Tests the implementation of getDataEntries method when the start and end dates are provided within
a valid range and there is an entry in the DB for such time range.
|
void |
testServiceCreation()
Here you can put your test
|
void |
testSimulation() |
void |
testUpdatedDevInfoOK()
1.
|
void |
testUpdateDevConfigOK()
1.
|
void |
testUpdateDeviceNew()
1.
|
void |
testUpdateDeviceNoUpdateNeeded() |
void |
testUpdateDeviceNullId() |
void |
testUpdateDeviceOK()
1.
|
public DevicesServiceIntegrationTest()
bundleContext - public void doBefore()
public void doAfter()
public void testServiceCreation()
public void testActiveDevice()
public void testAllDevices()
public void testDeviceNullId()
public void testDeviceWrongId()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testDeviceIdOK()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUpdateDeviceNullId()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUpdateDeviceNew()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUpdateDeviceNoUpdateNeeded()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUpdateDeviceOK()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUpdateDevConfigOK()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUpdatedDevInfoOK()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testOKDataEntry()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testNoDataEntry()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testInconsistentDate()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testSimulation()
throws DeviceException,
java.lang.InterruptedException,
InvalidSyntaxException
DeviceExceptionjava.lang.InterruptedExceptionInvalidSyntaxExceptionData In Motion GmbH all rights reserved