harbor run -t openthoughts/tasktrove-exp-rpt-stack-junit-v6-stack-junit-3257harbor download openthoughts/tasktrove-exp-rpt-stack-junit-v6-stack-junit-3257Implement Java sources under /app/ so that the JUnit test file at /tests/TestSolution.java compiles and passes. The test is in package ai.rapids.cudf — 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: ai.rapids.cudf
Test class: ByteColumnVectorTest
Test extends: CudfTestBase — you must also provide this base class (or it must be importable from the test's package).
Well-known imports (JUnit, JDK, common libs — already on the classpath):
java.util.Randomorg.junit.jupiter.api.TestStatic imports (constants/methods referenced statically):
import static org.junit.jupiter.api.Assertions.assertEquals;import static org.junit.jupiter.api.Assertions.assertFalse;import static org.junit.jupiter.api.Assertions.assertThrows;import static org.junit.jupiter.api.Assertions.assertTrue;Symbols the test references that you likely need to define (class/enum/interface names not coming from JDK or JUnit):
AssertionErrorBitVectorHelperBuilderColumnVectorDATESDTypeINT8Methods 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):
.append(...) — called with: 1 arg.appendNull(...) — called with: 0 args.asBytes(...) — called with: 0 args.build(...) — called with: 0 args.buildOnHost(...) — called with: 0 args.builder(...) — called with: 2 args.datesFromInts(...) — called with: 1 arg.ensureOnHost(...) — called with: 0 args.fromBoxedBytes(...) — called with: 1 arg.fromBytes(...) — called with: 1 arg.fromDoubles(...) — called with: 1 arg.fromShorts(...) — called with: 1 arg.getByte(...) — called with: 1 arg.getNullCount(...) — called with: 0 args.getRowCount(...) — called with: 0 args.hasNulls(...) — called with: 0 args.hasValidityVector(...) — called with: 0 args.isNull(...) — called with: 1 arg.isNullExtendedRange(...) — called with: 1 arg.nextBoolean(...) — called with: 0 args.nextInt(...) — 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 minimal in-memory ByteColumnVector API (in /app/) to satisfy ByteColumnVectorTest
Goal Create a lightweight, self-contained Java implementation of a ColumnVector API sufficient to support the ByteColumnVectorTest suite. The implementation should be self-contained, no external dependencies, and match the behaviors exercised by the tests (construction, null handling, boxing, casting to bytes, appending, and basic builder usage).
Deliverables (placed under /app/)
Behavior mapping to tests
[... description truncated to fit prompt budget ...]