@Test public void fileNotWrittenShouldYieldDefaultUri() { FileWriterSnitch snitch = new FileWriterSnitch(analyzerMock, objectMapper, new CereebroProperties()); Assertions.assertThat(snitch.getUri()).isEqualTo(URI.create("file: }
@Override public URI getUri() { if (file == null) { URI uri = URI.create("file: LOGGER.warn("File hasn't been written for some reason, returning default URI : {}", uri); return uri; } return file.toURI(); }
FileWriterSnitch implements CommandLineRunner, Snitch { @Override public URI getUri() { if (file == null) { URI uri = URI.create("file: LOGGER.warn("File hasn't been written for some reason, returning default URI : {}", uri); return uri; } return file.toURI(); } }
FileWriterSnitch implements CommandLineRunner, Snitch { @Override public URI getUri() { if (file == null) { URI uri = URI.create("file: LOGGER.warn("File hasn't been written for some reason, returning default URI : {}", uri); return uri; } return file.toURI(); } FileWriterSnitch(ApplicationAnalyzer analyzer, ObjectMapper objectMapper, CereebroProperties properties); }
FileWriterSnitch implements CommandLineRunner, Snitch { @Override public URI getUri() { if (file == null) { URI uri = URI.create("file: LOGGER.warn("File hasn't been written for some reason, returning default URI : {}", uri); return uri; } return file.toURI(); } FileWriterSnitch(ApplicationAnalyzer analyzer, ObjectMapper objectMapper, CereebroProperties properties); @Override void run(String... args); void write(File f); @Override URI getUri(); @Override SystemFragment snitch(); }
FileWriterSnitch implements CommandLineRunner, Snitch { @Override public URI getUri() { if (file == null) { URI uri = URI.create("file: LOGGER.warn("File hasn't been written for some reason, returning default URI : {}", uri); return uri; } return file.toURI(); } FileWriterSnitch(ApplicationAnalyzer analyzer, ObjectMapper objectMapper, CereebroProperties properties); @Override void run(String... args); void write(File f); @Override URI getUri(); @Override SystemFragment snitch();  }