Skip to content

Commit 7f0fc97

Browse files
authored
Merge pull request #18534 from theresa-m/testclassrefactor
Move lw5 classes to ValueTypeTestClasses
2 parents d3c9bd0 + fcc53b9 commit 7f0fc97

File tree

5 files changed

+1209
-1209
lines changed

5 files changed

+1209
-1209
lines changed

test/functional/Valhalla/src_lw5/org/openj9/test/lworld/DDRBackfillLayoutTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
package org.openj9.test.lworld;
2323

2424
import java.lang.reflect.Array;
25-
import static org.openj9.test.lworld.ValueTypeTests.*;
2625
import static org.openj9.test.lworld.ValueTypeTestClasses.*;
2726

2827
public class DDRBackfillLayoutTest {
@@ -66,12 +65,12 @@ private static void createAndCheckValueType() throws Throwable {
6665
new ObjectBackfill(defaultLong, defaultObject);
6766

6867
ValueTypeDoubleLong doubleLongInstance = new ValueTypeDoubleLong(
69-
new ValueLong(ValueTypeTests.defaultLong), ValueTypeTests.defaultLongNew);
68+
new ValueLong(defaultLong), defaultLongNew);
7069
ValueTypeQuadLong quadLongInstance = new ValueTypeQuadLong(doubleLongInstance,
71-
new ValueLong(ValueTypeTests.defaultLongNew2), ValueTypeTests.defaultLongNew3);
70+
new ValueLong(defaultLongNew2), defaultLongNew3);
7271
ValueTypeDoubleQuadLong doubleQuadLongInstance =
7372
new ValueTypeDoubleQuadLong(quadLongInstance, doubleLongInstance,
74-
new ValueLong(ValueTypeTests.defaultLongNew4), ValueTypeTests.defaultLongNew5);
73+
new ValueLong(defaultLongNew4), defaultLongNew5);
7574

7675
FlatUnAlignedSingleBackfill2![] flatUnAlignedSingleBackfill2Array =
7776
new FlatUnAlignedSingleBackfill2![3];
@@ -80,7 +79,7 @@ private static void createAndCheckValueType() throws Throwable {
8079
ValueTypeQuadLong[] quadLongArray = new ValueTypeQuadLong[3];
8180
quadLongArray[1] = quadLongInstance;
8281

83-
checkObject(flatSingleBackfillInstance,
82+
ValueTypeTests.checkObject(flatSingleBackfillInstance,
8483
objectBackfillInstance,
8584
flatUnAlignedSingleBackfillInstance,
8685
flatUnAlignedSingleBackfill2Instance,

test/functional/Valhalla/src_lw5/org/openj9/test/lworld/DDRValueTypeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import java.lang.invoke.MethodType;
2727
import java.lang.reflect.Array;
2828

29-
import static org.openj9.test.lworld.ValueTypeTests.*;
29+
import static org.openj9.test.lworld.ValueTypeTestClasses.*;
3030

3131
public class DDRValueTypeTest {
3232
public static void main(String[] args) {
@@ -51,7 +51,7 @@ private static void createAndCheckValueType() throws Throwable {
5151
array[0] = assortedValueWithSingleAlignment;
5252
array[1] = assortedValueWithSingleAlignmentAlt;
5353

54-
checkObject(assortedValueWithSingleAlignment,
54+
ValueTypeTests.checkObject(assortedValueWithSingleAlignment,
5555
assortedValueWithSingleAlignmentAlt,
5656
array
5757
);

0 commit comments

Comments
 (0)