@Test public void testCreateSubscription() { BluetoothDevice bluetoothDevice = Mockito.mock(BluetoothDevice.class); Mockito.when(bluetoothDevice.getAddress()).thenReturn("00:11:22:33:44:55"); assertNotNull(Neatle.createSubscription(RuntimeEnvironment.application, bluetoothDevice, Neatle.createUUID(0), Neatle.createUUID(0))); }
public static CharacteristicSubscription createSubscription(@NonNull Context context, @NonNull BluetoothDevice device, @NonNull UUID serviceUUID, @NonNull UUID characteristicsUUID) { return new CharacteristicSubscriptionImpl(context, device, serviceUUID, characteristicsUUID); }
Neatle { public static CharacteristicSubscription createSubscription(@NonNull Context context, @NonNull BluetoothDevice device, @NonNull UUID serviceUUID, @NonNull UUID characteristicsUUID) { return new CharacteristicSubscriptionImpl(context, device, serviceUUID, characteristicsUUID); } }
Neatle { public static CharacteristicSubscription createSubscription(@NonNull Context context, @NonNull BluetoothDevice device, @NonNull UUID serviceUUID, @NonNull UUID characteristicsUUID) { return new CharacteristicSubscriptionImpl(context, device, serviceUUID, characteristicsUUID); } private  Neatle(); }
Neatle { public static CharacteristicSubscription createSubscription(@NonNull Context context, @NonNull BluetoothDevice device, @NonNull UUID serviceUUID, @NonNull UUID characteristicsUUID) { return new CharacteristicSubscriptionImpl(context, device, serviceUUID, characteristicsUUID); } private  Neatle(); static CharacteristicSubscription createSubscription(@NonNull Context context, @NonNull BluetoothDevice device,
                                                                @NonNull UUID serviceUUID, @NonNull UUID characteristicsUUID); static ConnectionMonitor createConnectionMonitor(@NonNull Context context, @NonNull BluetoothDevice device); static OperationBuilder createOperationBuilder(@NonNull Context context); static UUID createUUID(int uuid); static Connection getConnection(@NonNull Context context, @NonNull BluetoothDevice device); static boolean isMacValid(@NonNull String mac); static BluetoothDevice getDevice(@NonNull String mac); static ScanBuilder createScannerBuilder(); }
Neatle { public static CharacteristicSubscription createSubscription(@NonNull Context context, @NonNull BluetoothDevice device, @NonNull UUID serviceUUID, @NonNull UUID characteristicsUUID) { return new CharacteristicSubscriptionImpl(context, device, serviceUUID, characteristicsUUID); } private  Neatle(); static CharacteristicSubscription createSubscription(@NonNull Context context, @NonNull BluetoothDevice device,
                                                                @NonNull UUID serviceUUID, @NonNull UUID characteristicsUUID); static ConnectionMonitor createConnectionMonitor(@NonNull Context context, @NonNull BluetoothDevice device); static OperationBuilder createOperationBuilder(@NonNull Context context); static UUID createUUID(int uuid); static Connection getConnection(@NonNull Context context, @NonNull BluetoothDevice device); static boolean isMacValid(@NonNull String mac); static BluetoothDevice getDevice(@NonNull String mac); static ScanBuilder createScannerBuilder();  }