@Test public void testMalformedUri() throws DataSourceException { try { source = new UsbVehicleInterface(getContext(), malformedDeviceUri); } catch(DataSourceResourceException e) { return; } Assert.fail("Expected a DataSourceResourceException"); }
@Test public void testUriWithBadScheme() throws DataSourceException { try { source = new UsbVehicleInterface(getContext(), incorrectSchemeUri); } catch(DataSourceResourceException e) { return; } Assert.fail("Expected a DataSourceResourceException"); }