89 } |
89 } |
90 return tmp == null ? null : tmp.getValue(); |
90 return tmp == null ? null : tmp.getValue(); |
91 } |
91 } |
92 |
92 |
93 private void testPositive(T value, T expected) { |
93 private void testPositive(T value, T expected) { |
94 Asserts.assertEQ(getVMOptionAsString(), asString(getValue())); |
94 String oldValue = getVMOptionAsString(); |
|
95 Asserts.assertEQ(oldValue, asString(getValue())); |
|
96 Asserts.assertEQ(oldValue, asString(WHITE_BOX.getVMFlag(flagName))); |
95 setNewValue(value); |
97 setNewValue(value); |
96 String newValue = getVMOptionAsString(); |
98 String newValue = getVMOptionAsString(); |
97 Asserts.assertEQ(newValue, asString(expected)); |
99 Asserts.assertEQ(newValue, asString(expected)); |
98 Asserts.assertEQ(getVMOptionAsString(), asString(getValue())); |
100 Asserts.assertEQ(newValue, asString(getValue())); |
|
101 Asserts.assertEQ(newValue, asString(WHITE_BOX.getVMFlag(flagName))); |
99 } |
102 } |
100 |
103 |
101 private void testNegative(T value, T expected) { |
104 private void testNegative(T value, T expected) { |
102 String oldValue = getVMOptionAsString(); |
105 String oldValue = getVMOptionAsString(); |
103 Asserts.assertEQ(oldValue, asString(getValue())); |
106 Asserts.assertEQ(oldValue, asString(getValue())); |
|
107 Asserts.assertEQ(oldValue, asString(WHITE_BOX.getVMFlag(flagName))); |
104 setNewValue(value); |
108 setNewValue(value); |
105 String newValue = getVMOptionAsString(); |
109 String newValue = getVMOptionAsString(); |
106 Asserts.assertEQ(oldValue, newValue); |
110 Asserts.assertEQ(oldValue, newValue); |
107 } |
111 } |
108 |
112 |