Skip to content

A4: Convert ResourceTest to JUnit4 with assertions #492

@LSantha

Description

@LSantha

Goal

Convert ResourceTest from JUnit3 to JUnit4 with proper assertions.

Source Under Test

  • File: core/src/core/org/jnode/util/ResourceUtils.java
  • Class: org.jnode.util.ResourceUtils
  • Purpose: Resource loading utilities

Current State

  • Test file: core/src/test/org/jnode/test/ResourceTest.java
  • Type: JUnit3/Legacy
  • Quality: low-assertion-density (14 methods, 10 assertions)
  • Requires JNode: No (host JDK runnable)

Approach

  1. Convert to JUnit4 (@test, @before, @after)
  2. Add assertions for getResource, getResourceAsStream, getSystemResource, classloader delegation
  3. Add to CoreTestSuite
  4. 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/failedThe agent exhausted its retries without producing a result.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