Java Code Examples for com.oracle.java.testlibrary.Asserts#assertGT()
The following examples show how to use
com.oracle.java.testlibrary.Asserts#assertGT() .
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: TestMetaspaceSizeFlags.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static void testMaxMetaspaceSizeGTMetaspaceSize(long maxMetaspaceSize, long metaspaceSize) throws Exception { MetaspaceFlags mf = runAndGetValue(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(mf.maxMetaspaceSize, mf.metaspaceSize); Asserts.assertEQ(mf.maxMetaspaceSize, maxMetaspaceSize); Asserts.assertEQ(mf.metaspaceSize, metaspaceSize); }
Example 2
Source File: AbortProvoker.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Get instance of specified AbortProvoker, inflate associated monitor * if needed and then invoke forceAbort method in a loop. * * Usage: * AbortProvoker <AbortType name> [<inflate monitor> * [<iterations> [ <delay>]]] * * Default parameters are: * <ul> * <li>inflate monitor = <b>true</b></li> * <li>iterations = {@code AbortProvoker.DEFAULT_ITERATIONS}</li> * <li>delay = <b>0</b></li> * </ul> */ public static void main(String args[]) throws Throwable { Asserts.assertGT(args.length, 0, "At least one argument is required."); AbortType abortType = AbortType.lookup(Integer.valueOf(args[0])); boolean monitorShouldBeInflated = true; long iterations = AbortProvoker.DEFAULT_ITERATIONS; if (args.length > 1) { monitorShouldBeInflated = Boolean.valueOf(args[1]); if (args.length > 2) { iterations = Long.valueOf(args[2]); if (args.length > 3) { Thread.sleep(Integer.valueOf(args[3])); } } } AbortProvoker provoker = abortType.provoker(); if (monitorShouldBeInflated) { provoker.inflateMonitor(); } for (long i = 0; i < iterations; i++) { AbortProvoker.verifyMonitorState(provoker, monitorShouldBeInflated); provoker.forceAbort(); } }
Example 3
Source File: TestMetaspaceSizeFlags.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static void testMaxMetaspaceSizeGTMetaspaceSize(long maxMetaspaceSize, long metaspaceSize) throws Exception { MetaspaceFlags mf = runAndGetValue(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(mf.maxMetaspaceSize, mf.metaspaceSize); Asserts.assertEQ(mf.maxMetaspaceSize, maxMetaspaceSize); Asserts.assertEQ(mf.metaspaceSize, metaspaceSize); }
Example 4
Source File: AbortProvoker.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Get instance of specified AbortProvoker, inflate associated monitor * if needed and then invoke forceAbort method in a loop. * * Usage: * AbortProvoker <AbortType name> [<inflate monitor> * [<iterations> [ <delay>]]] * * Default parameters are: * <ul> * <li>inflate monitor = <b>true</b></li> * <li>iterations = {@code AbortProvoker.DEFAULT_ITERATIONS}</li> * <li>delay = <b>0</b></li> * </ul> */ public static void main(String args[]) throws Throwable { Asserts.assertGT(args.length, 0, "At least one argument is required."); AbortType abortType = AbortType.lookup(Integer.valueOf(args[0])); boolean monitorShouldBeInflated = true; long iterations = AbortProvoker.DEFAULT_ITERATIONS; if (args.length > 1) { monitorShouldBeInflated = Boolean.valueOf(args[1]); if (args.length > 2) { iterations = Long.valueOf(args[2]); if (args.length > 3) { Thread.sleep(Integer.valueOf(args[3])); } } } AbortProvoker provoker = abortType.provoker(); if (monitorShouldBeInflated) { provoker.inflateMonitor(); } for (long i = 0; i < iterations; i++) { AbortProvoker.verifyMonitorState(provoker, monitorShouldBeInflated); provoker.forceAbort(); } }
Example 5
Source File: TestMetaspaceSizeFlags.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static void testMaxMetaspaceSizeGTMetaspaceSize(long maxMetaspaceSize, long metaspaceSize) throws Exception { MetaspaceFlags mf = runAndGetValue(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(mf.maxMetaspaceSize, mf.metaspaceSize); Asserts.assertEQ(mf.maxMetaspaceSize, maxMetaspaceSize); Asserts.assertEQ(mf.metaspaceSize, metaspaceSize); }
Example 6
Source File: AbortProvoker.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Get instance of specified AbortProvoker, inflate associated monitor * if needed and then invoke forceAbort method in a loop. * * Usage: * AbortProvoker <AbortType name> [<inflate monitor> * [<iterations> [ <delay>]]] * * Default parameters are: * <ul> * <li>inflate monitor = <b>true</b></li> * <li>iterations = {@code AbortProvoker.DEFAULT_ITERATIONS}</li> * <li>delay = <b>0</b></li> * </ul> */ public static void main(String args[]) throws Throwable { Asserts.assertGT(args.length, 0, "At least one argument is required."); AbortType abortType = AbortType.lookup(Integer.valueOf(args[0])); boolean monitorShouldBeInflated = true; long iterations = AbortProvoker.DEFAULT_ITERATIONS; if (args.length > 1) { monitorShouldBeInflated = Boolean.valueOf(args[1]); if (args.length > 2) { iterations = Long.valueOf(args[2]); if (args.length > 3) { Thread.sleep(Integer.valueOf(args[3])); } } } AbortProvoker provoker = abortType.provoker(); if (monitorShouldBeInflated) { provoker.inflateMonitor(); } for (long i = 0; i < iterations; i++) { AbortProvoker.verifyMonitorState(provoker, monitorShouldBeInflated); provoker.forceAbort(); } }
Example 7
Source File: TestMetaspaceSizeFlags.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static void testMaxMetaspaceSizeGTMetaspaceSize(long maxMetaspaceSize, long metaspaceSize) throws Exception { MetaspaceFlags mf = runAndGetValue(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(mf.maxMetaspaceSize, mf.metaspaceSize); Asserts.assertEQ(mf.maxMetaspaceSize, maxMetaspaceSize); Asserts.assertEQ(mf.metaspaceSize, metaspaceSize); }
Example 8
Source File: AbortProvoker.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Get instance of specified AbortProvoker, inflate associated monitor * if needed and then invoke forceAbort method in a loop. * * Usage: * AbortProvoker <AbortType name> [<inflate monitor> * [<iterations> [ <delay>]]] * * Default parameters are: * <ul> * <li>inflate monitor = <b>true</b></li> * <li>iterations = {@code AbortProvoker.DEFAULT_ITERATIONS}</li> * <li>delay = <b>0</b></li> * </ul> */ public static void main(String args[]) throws Throwable { Asserts.assertGT(args.length, 0, "At least one argument is required."); AbortType abortType = AbortType.lookup(Integer.valueOf(args[0])); boolean monitorShouldBeInflated = true; long iterations = AbortProvoker.DEFAULT_ITERATIONS; if (args.length > 1) { monitorShouldBeInflated = Boolean.valueOf(args[1]); if (args.length > 2) { iterations = Long.valueOf(args[2]); if (args.length > 3) { Thread.sleep(Integer.valueOf(args[3])); } } } AbortProvoker provoker = abortType.provoker(); if (monitorShouldBeInflated) { provoker.inflateMonitor(); } for (long i = 0; i < iterations; i++) { AbortProvoker.verifyMonitorState(provoker, monitorShouldBeInflated); provoker.forceAbort(); } }
Example 9
Source File: TestMetaspaceSizeFlags.java From hottub with GNU General Public License v2.0 | 5 votes |
private static void testMaxMetaspaceSizeGTMetaspaceSize(long maxMetaspaceSize, long metaspaceSize) throws Exception { MetaspaceFlags mf = runAndGetValue(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(mf.maxMetaspaceSize, mf.metaspaceSize); Asserts.assertEQ(mf.maxMetaspaceSize, maxMetaspaceSize); Asserts.assertEQ(mf.metaspaceSize, metaspaceSize); }
Example 10
Source File: AbortProvoker.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Get instance of specified AbortProvoker, inflate associated monitor * if needed and then invoke forceAbort method in a loop. * * Usage: * AbortProvoker <AbortType name> [<inflate monitor> * [<iterations> [ <delay>]]] * * Default parameters are: * <ul> * <li>inflate monitor = <b>true</b></li> * <li>iterations = {@code AbortProvoker.DEFAULT_ITERATIONS}</li> * <li>delay = <b>0</b></li> * </ul> */ public static void main(String args[]) throws Throwable { Asserts.assertGT(args.length, 0, "At least one argument is required."); AbortType abortType = AbortType.lookup(Integer.valueOf(args[0])); boolean monitorShouldBeInflated = true; long iterations = AbortProvoker.DEFAULT_ITERATIONS; if (args.length > 1) { monitorShouldBeInflated = Boolean.valueOf(args[1]); if (args.length > 2) { iterations = Long.valueOf(args[2]); if (args.length > 3) { Thread.sleep(Integer.valueOf(args[3])); } } } AbortProvoker provoker = abortType.provoker(); if (monitorShouldBeInflated) { provoker.inflateMonitor(); } for (long i = 0; i < iterations; i++) { AbortProvoker.verifyMonitorState(provoker, monitorShouldBeInflated); provoker.forceAbort(); } }
Example 11
Source File: TestMetaspaceSizeFlags.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static void testMaxMetaspaceSizeGTMetaspaceSize(long maxMetaspaceSize, long metaspaceSize) throws Exception { MetaspaceFlags mf = runAndGetValue(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(mf.maxMetaspaceSize, mf.metaspaceSize); Asserts.assertEQ(mf.maxMetaspaceSize, maxMetaspaceSize); Asserts.assertEQ(mf.metaspaceSize, metaspaceSize); }
Example 12
Source File: TestMetaspaceSizeFlags.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static void testMaxMetaspaceSizeGTMetaspaceSize(long maxMetaspaceSize, long metaspaceSize) throws Exception { MetaspaceFlags mf = runAndGetValue(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(maxMetaspaceSize, metaspaceSize); Asserts.assertGT(mf.maxMetaspaceSize, mf.metaspaceSize); Asserts.assertEQ(mf.maxMetaspaceSize, maxMetaspaceSize); Asserts.assertEQ(mf.metaspaceSize, metaspaceSize); }