@NonNull @Override public TestConfigurationLoader build() { return new TestConfigurationLoader(this); } }
@Test public void testLoadNonexistantFile(@TempDirectory.TempDir Path tempDir) throws IOException { File tempFile = new File(tempDir.resolve("text5.txt").getRoot().toFile(), "does-not-exist-dont-edit-testdir"); TestConfigurationLoader loader = TestConfigurationLoader.builder().setFile(tempFile).build(); loader.load(); } }
@Test public void testLoadNonexistantPath(@TempDirectory.TempDir Path tempDir) throws IOException { Path tempPath = tempDir.resolve("text5.txt").getRoot().resolve("does-not-exist-dont-edit-testdir"); TestConfigurationLoader loader = TestConfigurationLoader.builder().setPath(tempPath).build(); loader.load(); }