public class IlrMonitorJunitTestCase
extends junit.framework.TestCase
IlrMonitorLocalTool| Constructor and Description |
|---|
IlrMonitorJunitTestCase(java.lang.String string) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertClassNotInvolvedInContentionPointStackTrace(java.lang.String message,
java.lang.String fullyQualifiedClassName)
Asserts that no contention occurs in calls made by a specific class.
|
void |
assertInstanceOfThisClassArentLock(java.lang.String message,
java.lang.String fullyQualifiedClassName)
Asserts that any instances of a specific class is used as a lock.
|
void |
assertMethodNotInvolvedInContentionPointStackTrace(java.lang.String message,
java.lang.String fullyQualifiedMethodName)
Asserts that no contention occurs in calls made by a specific method.
|
void |
assertNoContentionDetected(java.lang.String message)
Asserts that no contention occurs.
|
void |
assertNoContentionPointInThisClass(java.lang.String message,
java.lang.String fullyQualifiedClassName)
Asserts that no contention occurs in a specific class.
|
void |
assertNoContentionPointInThisPackage(java.lang.String message,
java.lang.String fullyQualifiedPackageName)
Asserts that no contention occurs in a specific package.
|
void |
assertNoContentionPointOnThisMethod(java.lang.String message,
java.lang.String fullyQualifiedMethodName)
Asserts that no contention occurs in a specific method.
|
void |
assertNumberOfContentionPointsEquals(java.lang.String message,
int number)
Asserts the the number of contention point detected is equal to a specific number.
|
void |
assertNumberOfContentionPointsInThisClass(java.lang.String message,
java.lang.String fullyQualifiedClassName,
int number)
Assert that the number of contention point detected in a specific class is equal to a specific number.
|
void |
assertPackageInvolvedInContentionPointStackTrace(java.lang.String message,
java.lang.String fullyQualifiedPackageName)
Asserts that any class of specific package is involved in a contention.
|
void |
initializeMonitorTestCase(int depth,
long intervalMs)
Call this method at the beginning of a test method.
|
void |
initializeMonitorTestCase(int depth,
long intervalMs,
java.util.EnumSet<java.lang.Thread.State> threadStates,
long[] excludedThs)
Call this method at the beginning of a test method.
|
boolean |
isMonitoring()
Returns the monitoring state.
|
void |
stopMonitoring()
Call this method before making any concurrency assertion.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic void initializeMonitorTestCase(int depth,
long intervalMs,
java.util.EnumSet<java.lang.Thread.State> threadStates,
long[] excludedThs)
depth - value of stack trace depth. It means the number of stack elements in a stack trace.intervalMs - interval in milliseconds between two snapshots.threadStates - EnumSet of thread state that should be monitored.excludedThs - array of long of thread ids that shouldn't be monitored.public void initializeMonitorTestCase(int depth,
long intervalMs)
depth - value of stack trace depth. It means the number of stack elements in a stack trace.intervalMs - interval in milliseconds between two snapshots.public void stopMonitoring()
public boolean isMonitoring()
public void assertNoContentionDetected(java.lang.String message)
message - the identifying message for the AssertionError (null okay)public void assertNoContentionPointInThisClass(java.lang.String message,
java.lang.String fullyQualifiedClassName)
message - the identifying message for the AssertionError (null okay)fullyQualifiedClassName - a fully qualified class name.public void assertClassNotInvolvedInContentionPointStackTrace(java.lang.String message,
java.lang.String fullyQualifiedClassName)
message - the identifying message for the AssertionError (null okay)fullyQualifiedClassName - a fully qualified class name.public void assertNoContentionPointOnThisMethod(java.lang.String message,
java.lang.String fullyQualifiedMethodName)
message - the identifying message for the AssertionError (null okay)fullyQualifiedMethodName - a fully qualified method name.public void assertMethodNotInvolvedInContentionPointStackTrace(java.lang.String message,
java.lang.String fullyQualifiedMethodName)
message - the identifying message for the AssertionError (null okay)fullyQualifiedMethodName - a fully qualified method name.public void assertNoContentionPointInThisPackage(java.lang.String message,
java.lang.String fullyQualifiedPackageName)
message - the identifying message for the AssertionError (null okay)fullyQualifiedPackageName - a fully qualified package name.public void assertPackageInvolvedInContentionPointStackTrace(java.lang.String message,
java.lang.String fullyQualifiedPackageName)
message - the identifying message for the AssertionError (null okay)fullyQualifiedPackageName - a fully qualified package name.public void assertInstanceOfThisClassArentLock(java.lang.String message,
java.lang.String fullyQualifiedClassName)
message - the identifying message for the AssertionError (null okay)fullyQualifiedClassName - a fully qualified class name.Object.wait()public void assertNumberOfContentionPointsEquals(java.lang.String message,
int number)
message - the identifying message for the AssertionError (null okay)number - the contention point's number expected.public void assertNumberOfContentionPointsInThisClass(java.lang.String message,
java.lang.String fullyQualifiedClassName,
int number)
message - the identifying message for the AssertionError (null okay)fullyQualifiedClassName - a fully qualified class name.number - the contention point's number expected.© Copyright IBM Corp. 1987, 2017