test/gc/g1/TestStringDeduplicationTools.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
8059557_open Cdiff test/gc/g1/TestStringDeduplicationTools.java
test/gc/g1/TestStringDeduplicationTools.java
Print this page
*** 410,429 ****
// Test with too low age threshold
output = DeduplicationTest.run(SmallNumberOfStrings,
TooLowAgeThreshold,
YoungGC);
! output.shouldContain("StringDeduplicationAgeThreshold of " + TooLowAgeThreshold +
! " is invalid; must be between " + MinAgeThreshold + " and " + MaxAgeThreshold);
output.shouldHaveExitValue(1);
// Test with too high age threshold
output = DeduplicationTest.run(SmallNumberOfStrings,
TooHighAgeThreshold,
YoungGC);
! output.shouldContain("StringDeduplicationAgeThreshold of " + TooHighAgeThreshold +
! " is invalid; must be between " + MinAgeThreshold + " and " + MaxAgeThreshold);
output.shouldHaveExitValue(1);
}
public static void testPrintOptions() throws Exception {
OutputAnalyzer output;
--- 410,427 ----
// Test with too low age threshold
output = DeduplicationTest.run(SmallNumberOfStrings,
TooLowAgeThreshold,
YoungGC);
! output.shouldContain("outside the allowed range");
output.shouldHaveExitValue(1);
// Test with too high age threshold
output = DeduplicationTest.run(SmallNumberOfStrings,
TooHighAgeThreshold,
YoungGC);
! output.shouldContain("outside the allowed range");
output.shouldHaveExitValue(1);
}
public static void testPrintOptions() throws Exception {
OutputAnalyzer output;
test/gc/g1/TestStringDeduplicationTools.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File