Finishes testing, cleanup, adds license

This commit is contained in:
Guillaume Tâche
2024-12-28 17:25:33 +01:00
parent 58fbbff7cb
commit b5c38bea54
73 changed files with 1259 additions and 455 deletions

View File

@@ -3,6 +3,7 @@ package com.github.gtache.fxml.compiler;
/**
* Exception thrown when a generation error occurs
*/
@SuppressWarnings("serial")
public class GenerationException extends Exception {
/**

View File

@@ -3,6 +3,7 @@ package com.github.gtache.fxml.compiler.parsing;
/**
* Exception thrown when a parsing error occurs
*/
@SuppressWarnings("serial")
public class ParseException extends Exception {
/**

View File

@@ -7,7 +7,7 @@ import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
import static java.util.Objects.requireNonNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -46,7 +46,7 @@ class TestFXMLParser {
@Test
void testParseIOException() throws Exception {
final var file = Paths.get("whatever");
final var file = Path.of("whatever");
assertThrows(ParseException.class, () -> parser.parse(file));
verify(parser, never()).parse(content);
}