Implement Java sources under /app/src/main/java/ so that the JUnit 5 test at /tests/TestSolution.java compiles and passes. The verifier runs mvn test against the project rooted at /app/ (see /tests/pom.xml). Java 17 is the target.
The test (verbatim)
java
import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.*;
public class TestSolution {
@Test public void testEscapeLineTermination() { String text = "Some text with \nmore than one line\n"; String escaped = escaper.escapeForLoadFile(text); assertEquals("Some text with " + ESCAPED_BY_CHAR + LINE_TERMINATED_CHAR + "more than one line" + ESCAPED_BY_CHAR + LINE_TERMINATED_CHAR, escaped); logger.info("FROM:"); logger.info(text); logger.info("TO:"); logger.info(escaped); }
}
Symbols the test references
Your code must define (or pull in via a properly configured classpath) the symbols below. JUnit 5 itself is already on the test classpath via pom.xml, so you only need to provide the non-JUnit symbols.
Top-level types/constants the test uses (not Java/JUnit builtins):
ESCAPED_BY_CHAR
LINE_TERMINATED_CHAR
Implementation notes
Place every Java source file under /app/src/main/java/ (matching pom.xml's sourceDirectory). Use package directories for fully-qualified types (e.g. /app/src/main/java/org/example/Foo.java for org.example.Foo).
The test compiles in the default package (no package line), so any class it references by bare name (e.g. Solution, NamingUtils, etc.) must also live in the default package (directly under /app/src/main/java/).
If the test uses static-imported helpers like singletonList(...) or assertThat(...) that aren't covered by the two import lines shown above, add the missing import static ...; to your own source files (the test file itself is read-only).
The verifier runs mvn test from /app/. Maven dependencies beyond JUnit 5 (already in /tests/pom.xml) need to be declared in your own /app/pom.xml if you choose to bring in third-party libraries; otherwise implement the referenced classes yourself.
Do NOT modify /tests/TestSolution.java or /tests/pom.xml — they are the spec.