Java Code Examples for com.oracle.java.testlibrary.OutputAnalyzer#shouldNotMatch()
The following examples show how to use
com.oracle.java.testlibrary.OutputAnalyzer#shouldNotMatch() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestG1ClassUnloadingHWM.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void testWithoutG1ClassUnloading() throws Exception { // -XX:-ClassUnloadingWithConcurrentMark is used, so we expect a full GC instead of a concurrent cycle. OutputAnalyzer out = runWithoutG1ClassUnloading(); out.shouldMatch(".*Full GC.*"); out.shouldNotMatch(".*initial-mark.*"); }
Example 2
Source File: TestMetaspaceSizeFlags.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static MetaspaceFlags runAndGetValue(long maxMetaspaceSize, long metaspaceSize) throws Exception { OutputAnalyzer output = run(maxMetaspaceSize, metaspaceSize); output.shouldNotMatch("Error occurred during initialization of VM\n.*"); String stringMaxMetaspaceSize = output.firstMatch(".* MaxMetaspaceSize .* := (\\d+).*", 1); String stringMetaspaceSize = output.firstMatch(".* MetaspaceSize .* := (\\d+).*", 1); return new MetaspaceFlags(Long.parseLong(stringMaxMetaspaceSize), Long.parseLong(stringMetaspaceSize)); }
Example 3
Source File: TestG1ClassUnloadingHWM.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void testWithG1ClassUnloading() throws Exception { // -XX:+ClassUnloadingWithConcurrentMark is used, so we expect a concurrent cycle instead of a full GC. OutputAnalyzer out = runWithG1ClassUnloading(); out.shouldMatch(".*initial-mark.*"); out.shouldNotMatch(".*Full GC.*"); }
Example 4
Source File: TestG1ClassUnloadingHWM.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void testWithG1ClassUnloading() throws Exception { // -XX:+ClassUnloadingWithConcurrentMark is used, so we expect a concurrent cycle instead of a full GC. OutputAnalyzer out = runWithG1ClassUnloading(); out.shouldMatch(".*initial-mark.*"); out.shouldNotMatch(".*Full GC.*"); }
Example 5
Source File: TestG1ClassUnloadingHWM.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void testWithoutG1ClassUnloading() throws Exception { // -XX:-ClassUnloadingWithConcurrentMark is used, so we expect a full GC instead of a concurrent cycle. OutputAnalyzer out = runWithoutG1ClassUnloading(); out.shouldMatch(".*Full GC.*"); out.shouldNotMatch(".*initial-mark.*"); }
Example 6
Source File: TestMetaspaceSizeFlags.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static MetaspaceFlags runAndGetValue(long maxMetaspaceSize, long metaspaceSize) throws Exception { OutputAnalyzer output = run(maxMetaspaceSize, metaspaceSize); output.shouldNotMatch("Error occurred during initialization of VM\n.*"); String stringMaxMetaspaceSize = output.firstMatch(".* MaxMetaspaceSize .* := (\\d+).*", 1); String stringMetaspaceSize = output.firstMatch(".* MetaspaceSize .* := (\\d+).*", 1); return new MetaspaceFlags(Long.parseLong(stringMaxMetaspaceSize), Long.parseLong(stringMetaspaceSize)); }
Example 7
Source File: TestCMSClassUnloadingEnabledHWM.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void testWithoutCMSClassUnloading() throws Exception { // -XX:-CMSClassUnloadingEnabled is used, so we expect a full GC instead of a concurrent cycle. OutputAnalyzer out = runWithoutCMSClassUnloading(); out.shouldMatch(".*Full GC.*"); out.shouldNotMatch(".*CMS Initial Mark.*"); }
Example 8
Source File: TestMetaspaceSizeFlags.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static MetaspaceFlags runAndGetValue(long maxMetaspaceSize, long metaspaceSize) throws Exception { OutputAnalyzer output = run(maxMetaspaceSize, metaspaceSize); output.shouldNotMatch("Error occurred during initialization of VM\n.*"); String stringMaxMetaspaceSize = output.firstMatch(".* MaxMetaspaceSize .* := (\\d+).*", 1); String stringMetaspaceSize = output.firstMatch(".* MetaspaceSize .* := (\\d+).*", 1); return new MetaspaceFlags(Long.parseLong(stringMaxMetaspaceSize), Long.parseLong(stringMetaspaceSize)); }
Example 9
Source File: TestCMSClassUnloadingEnabledHWM.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void testWithCMSClassUnloading() throws Exception { // -XX:+CMSClassUnloadingEnabled is used, so we expect a concurrent cycle instead of a full GC. OutputAnalyzer out = runWithCMSClassUnloading(); out.shouldMatch(".*CMS Initial Mark.*"); out.shouldNotMatch(".*Full GC.*"); }
Example 10
Source File: TestG1ClassUnloadingHWM.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void testWithoutG1ClassUnloading() throws Exception { // -XX:-ClassUnloadingWithConcurrentMark is used, so we expect a full GC instead of a concurrent cycle. OutputAnalyzer out = runWithoutG1ClassUnloading(); out.shouldMatch(".*Full GC.*"); out.shouldNotMatch(".*initial-mark.*"); }
Example 11
Source File: TestMetaspaceSizeFlags.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static MetaspaceFlags runAndGetValue(long maxMetaspaceSize, long metaspaceSize) throws Exception { OutputAnalyzer output = run(maxMetaspaceSize, metaspaceSize); output.shouldNotMatch("Error occurred during initialization of VM\n.*"); String stringMaxMetaspaceSize = output.firstMatch(".* MaxMetaspaceSize .* := (\\d+).*", 1); String stringMetaspaceSize = output.firstMatch(".* MetaspaceSize .* := (\\d+).*", 1); return new MetaspaceFlags(Long.parseLong(stringMaxMetaspaceSize), Long.parseLong(stringMetaspaceSize)); }
Example 12
Source File: TestCMSClassUnloadingEnabledHWM.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void testWithoutCMSClassUnloading() throws Exception { // -XX:-CMSClassUnloadingEnabled is used, so we expect a full GC instead of a concurrent cycle. OutputAnalyzer out = runWithoutCMSClassUnloading(); out.shouldMatch(".*Full GC.*"); out.shouldNotMatch(".*CMS Initial Mark.*"); }
Example 13
Source File: TestG1ClassUnloadingHWM.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void testWithG1ClassUnloading() throws Exception { // -XX:+ClassUnloadingWithConcurrentMark is used, so we expect a concurrent cycle instead of a full GC. OutputAnalyzer out = runWithG1ClassUnloading(); out.shouldMatch(".*initial-mark.*"); out.shouldNotMatch(".*Full GC.*"); }
Example 14
Source File: TestMetaspaceSizeFlags.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static MetaspaceFlags runAndGetValue(long maxMetaspaceSize, long metaspaceSize) throws Exception { OutputAnalyzer output = run(maxMetaspaceSize, metaspaceSize); output.shouldNotMatch("Error occurred during initialization of VM\n.*"); String stringMaxMetaspaceSize = output.firstMatch(".* MaxMetaspaceSize .* := (\\d+).*", 1); String stringMetaspaceSize = output.firstMatch(".* MetaspaceSize .* := (\\d+).*", 1); return new MetaspaceFlags(Long.parseLong(stringMaxMetaspaceSize), Long.parseLong(stringMetaspaceSize)); }
Example 15
Source File: TestCMSClassUnloadingEnabledHWM.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void testWithCMSClassUnloading() throws Exception { // -XX:+CMSClassUnloadingEnabled is used, so we expect a concurrent cycle instead of a full GC. OutputAnalyzer out = runWithCMSClassUnloading(); out.shouldMatch(".*CMS Initial Mark.*"); out.shouldNotMatch(".*Full GC.*"); }
Example 16
Source File: TestCMSClassUnloadingEnabledHWM.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void testWithoutCMSClassUnloading() throws Exception { // -XX:-CMSClassUnloadingEnabled is used, so we expect a full GC instead of a concurrent cycle. OutputAnalyzer out = runWithoutCMSClassUnloading(); out.shouldMatch(".*Full GC.*"); out.shouldNotMatch(".*CMS Initial Mark.*"); }
Example 17
Source File: TestMetaspaceSizeFlags.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static MetaspaceFlags runAndGetValue(long maxMetaspaceSize, long metaspaceSize) throws Exception { OutputAnalyzer output = run(maxMetaspaceSize, metaspaceSize); output.shouldNotMatch("Error occurred during initialization of VM\n.*"); String stringMaxMetaspaceSize = output.firstMatch(".* MaxMetaspaceSize .* := (\\d+).*", 1); String stringMetaspaceSize = output.firstMatch(".* MetaspaceSize .* := (\\d+).*", 1); return new MetaspaceFlags(Long.parseLong(stringMaxMetaspaceSize), Long.parseLong(stringMetaspaceSize)); }
Example 18
Source File: TestGCId.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private static void verifyContainsNoGCIDs(OutputAnalyzer output) { output.shouldNotMatch("^#[0-9]+: \\["); output.shouldHaveExitValue(0); }
Example 19
Source File: TestGCId.java From hottub with GNU General Public License v2.0 | 4 votes |
private static void verifyContainsNoGCIDs(OutputAnalyzer output) { output.shouldNotMatch("^#[0-9]+: \\["); output.shouldHaveExitValue(0); }
Example 20
Source File: TestGCId.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private static void verifyContainsNoGCIDs(OutputAnalyzer output) { output.shouldNotMatch("^#[0-9]+: \\["); output.shouldHaveExitValue(0); }