Class RecursiveActionSquareTest
java.lang.Object
topics.parallel.square.RecursiveActionSquareTest
Validation Suite for Parallel Squaring
Verifies the mathematical truth and side-effect consistency of in-place parallel array transformations using JUnit 5.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()Provisions resources and generates raw mock sequences prior to evaluation.(package private) voidScenario: Processing an array of 1,000 integers through Fork/Join decomposition.(package private) static voidteardown()Disposes of operational hardware thread pools to guarantee clean environment teardown.
-
Constructor Details
-
RecursiveActionSquareTest
RecursiveActionSquareTest()
-
-
Method Details
-
setup
@BeforeAll static void setup()Provisions resources and generates raw mock sequences prior to evaluation. -
teardown
@AfterAll static void teardown()Disposes of operational hardware thread pools to guarantee clean environment teardown. -
shouldComputeSquaresInParallelCorrectly
@Test void shouldComputeSquaresInParallelCorrectly()Scenario: Processing an array of 1,000 integers through Fork/Join decomposition.
Expected Outcome: Every discrete index must exactly match the square of its original value.
-