src/test/java/de/blau/android/validation/ValidatorTest.java
/**
     * Read test data into memory
     * 
     * @param fileName the resource file name
     */
Read test data into memory

@param fileName the resource file name
Read test data into memory @param fileName the resource file name
private void readTestData(@NotNull String fileName) {
        final CountDownLatch signal1 = new CountDownLatch(1);
        ClassLoader loader = Thread.currentThread().getContextClassLoader();
        try (InputStream is = loader.getResourceAsStream(fileName)) {
            logic.readOsmFile(main, is, false, new SignalHandler(signal1));
            signal1.await(10, TimeUnit.SECONDS); 
        } catch (IOException | InterruptedException e1) { 
            fail(e1.getMessage());
        }
    }
private void readTestData ( @ NotNull String fileName ) { final CountDownLatch signal1 = new CountDownLatch ( 1 ) ; ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; try ( InputStream is = loader . getResourceAsStream ( fileName ) ) { logic . readOsmFile ( main , is , false , new SignalHandler ( signal1 ) ) ; signal1 . await ( 10 , TimeUnit . SECONDS ) ; } catch ( IOException | InterruptedException e1 ) { fail ( e1 . getMessage ( ) ) ; } }
Read test data into memory
Read test data into memory
// read in test data // NOSONAR // NOSONAR