Skip to content

A5: Convert ForEachTest to JUnit4 with fixtures #493

Description

@LSantha

Goal

Convert ForEachTest from JUnit3 to JUnit4 with test fixtures.

Source Under Test

  • File: core/src/core/org/jnode/util/ForEach.java
  • Class: org.jnode.util.ForEach
  • Purpose: Iteration utilities

Current State

  • Test file: core/src/test/org/jnode/test/ForEachTest.java
  • Type: JUnit3/Legacy
  • Quality: no-fixtures (3 methods, 6 assertions)
  • Requires JNode: No (host JDK runnable)

Approach

  1. Convert to JUnit4
  2. Add @Before/@after for test collection setup
  3. Add assertions for forEach, forEachWithIndex, iterate
  4. Add to CoreTestSuite
  5. Verify test compiles and passes

Acceptance Criteria

  • Test class compiles
  • sh build.sh tests exits 0
  • JUnit XML report contains the test
  • QEMU boot test passes
  • PR opened against master

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/doneThe agent finished successfully; PR opened or comment posted.area/corecore/ — VM, kernel, scheduler, classmgr, drivers.area/testUnit tests, boot tests, QEMU test infrastructure.kind/featureNew feature or enhancement request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions