mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-02 20:45:23 +02:00
fix tests
This commit is contained in:
parent
0c1aa4a24f
commit
5ce44a4575
@ -51,7 +51,7 @@ public class DeviceCommunicationServiceTestCase extends TestBase {
|
|||||||
super.setUp();
|
super.setUp();
|
||||||
mockSupport = null;
|
mockSupport = null;
|
||||||
realSupport = new TestDeviceSupport();
|
realSupport = new TestDeviceSupport();
|
||||||
realSupport.setContext(new GBDevice(TEST_DEVICE_ADDRESS, "Test Device", DeviceType.TEST), null, getContext());
|
realSupport.setContext(new GBDevice(TEST_DEVICE_ADDRESS, "Test Device", "Test Device Alias", DeviceType.TEST), null, getContext());
|
||||||
mockSupport = Mockito.spy(realSupport);
|
mockSupport = Mockito.spy(realSupport);
|
||||||
DeviceCommunicationService.setDeviceSupportFactory(new TestDeviceSupportFactory(getContext()));
|
DeviceCommunicationService.setDeviceSupportFactory(new TestDeviceSupportFactory(getContext()));
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ public abstract class TestBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected GBDevice createDummyGDevice(String macAddress) {
|
protected GBDevice createDummyGDevice(String macAddress) {
|
||||||
GBDevice dummyGBDevice = new GBDevice(macAddress, "Testie", DeviceType.TEST);
|
GBDevice dummyGBDevice = new GBDevice(macAddress, "Testie", "Tesie Alias", DeviceType.TEST);
|
||||||
dummyGBDevice.setFirmwareVersion("1.2.3");
|
dummyGBDevice.setFirmwareVersion("1.2.3");
|
||||||
dummyGBDevice.setModel("4.0");
|
dummyGBDevice.setModel("4.0");
|
||||||
return dummyGBDevice;
|
return dummyGBDevice;
|
||||||
|
Loading…
Reference in New Issue
Block a user