harbor run -t openthoughts/tasktrove-exp-rpt-stack-junit-v6-stack-junit-2098harbor download openthoughts/tasktrove-exp-rpt-stack-junit-v6-stack-junit-2098Implement Java sources under /app/ so that the JUnit test file at /tests/TestSolution.java compiles and passes. The test is in package com.jfireframework.fse — your sources must be reachable via the same package layout (e.g. /app/<package>/<Class>.java).
tests/TestSolution.java)Below is a deterministic summary of what the JUnit test file expects. Use this as the source of truth for package, imports, and public API. If the original task description above conflicts with this section, prefer this section.
Language: Java
Test package: com.jfireframework.fse
Test class: SimpleTest
Well-known imports (JUnit, JDK, common libs — already on the classpath):
org.junit.TestStatic imports (constants/methods referenced statically):
import static org.junit.Assert.assertTrue;Symbols the test references that you likely need to define (class/enum/interface names not coming from JDK or JUnit):
ByteArrayFse — constructed via new Fse(...) with arities: 0 argsSimplePerson — constructed via new SimplePerson(...) with arities: 0 argsTestData — constructed via new TestData(...) with arities: 0 argsMethods the test invokes on instances (you must expose at least these with the indicated arity; return type inferred from how the test uses the result):
.allocate(...) — called with: 1 arg.clear(...) — called with: 0 args.deSerialize(...) — called with: 1 arg.println(...) — called with: 1 arg.put(...) — called with: 1 arg.serialize(...) — called with: 2 args.setAge(...) — called with: 1 arg.setName(...) — called with: 1 arg.setWeight(...) — called with: 1 arg.toArray(...) — called with: 0 argstests/TestSolution.java against JUnit's standalone console (/junit/junit-platform-console-standalone.jar) — both JUnit 4 (org.junit.*) and JUnit Jupiter (org.junit.jupiter.api.*) APIs are available.pom.xml exists in /app, the grader runs mvn test instead. Otherwise it runs javac over every .java file under /app plus tests/TestSolution.java, then executes JUnit Console with --scan-class-path./app/ in directories that match the package declaration. For example, a class in package com.foo.bar; must live at /app/com/foo/bar/<ClassName>.java (or under a Maven layout like /app/src/main/java/com/foo/bar/).imports_project, wildcard-imported packages, and the test's own package) must resolve to source files you create.Task: Implement a lightweight binary serialization framework and supporting data classes under /app/
Objective: Create a small, self-contained serialization system that the provided tests (SimpleTest) can exercise. The system will use Java’s built-in serialization and a simple ByteArray container to store serialized bytes. Implement the following classes in package com.jfireframework.fse and ensure they work together to make the tests pass.
Requirements:
ByteArray (under /app/com/jfireframework/fse/)
Fse (under /app/com/jfireframework/fse/)
SimplePerson (under /app/com/jfireframework/fse/)
TestData (under /app/com/jfireframework/fse/)
Behavioral guarantees:
Notes:
Deliverable: Provide the complete Java source files for the following, placed under /app/com/jfireframework/fse/:
These implementations should allow the provided tests to compile and pass.