public static synchronized void connected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = true; activeBluetoothDevice.save(); } }
public static synchronized void disconnected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = false; activeBluetoothDevice.save(); } }
public static synchronized void connected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = true; activeBluetoothDevice.save(); } }
public static synchronized void disconnected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = false; activeBluetoothDevice.save(); } }
public static synchronized void disconnected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = false; activeBluetoothDevice.save(); } }
public static synchronized void connected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = true; activeBluetoothDevice.save(); } }
@Test public void isBlueReader_True() { // :: Setup ActiveBluetoothDevice mock = new ActiveBluetoothDevice(); mock.name = "blueReader"; mock.save(); // :: Act boolean isBlueReader = blueReader.isblueReader(); // :: Verify assertThat(isBlueReader).isTrue(); }
@Test public void isBlueReader_False() { // :: Setup ActiveBluetoothDevice mock = new ActiveBluetoothDevice(); mock.name = "someOtherDevice"; mock.save(); // :: Act boolean isBlueReader = blueReader.isblueReader(); // :: Verify assertThat(isBlueReader).isFalse(); }
@Test public void isBlueReader_False() { // :: Setup ActiveBluetoothDevice mock = new ActiveBluetoothDevice(); mock.name = "someOtherDevice"; mock.save(); // :: Act boolean isBlueReader = blueReader.isblueReader(); // :: Verify assertThat(isBlueReader).isFalse(); }
@Test public void isBlueReader_True() { // :: Setup ActiveBluetoothDevice mock = new ActiveBluetoothDevice(); mock.name = "blueReader"; mock.save(); // :: Act boolean isBlueReader = blueReader.isblueReader(); // :: Verify assertThat(isBlueReader).isTrue(); }