Package org.junit.internal.management
Class FakeThreadMXBean
- java.lang.Object
-
- org.junit.internal.management.FakeThreadMXBean
-
- All Implemented Interfaces:
ThreadMXBean
final class FakeThreadMXBean extends java.lang.Object implements ThreadMXBean
No-op implementation of ThreadMXBean when the platform doesn't provide it.
-
-
Constructor Summary
Constructors Constructor Description FakeThreadMXBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetThreadCpuTime(long id)booleanisThreadCpuTimeSupported()
-
-
-
Method Detail
-
getThreadCpuTime
public long getThreadCpuTime(long id)
Always throws an
UnsupportedOperationException- Specified by:
getThreadCpuTimein interfaceThreadMXBean- See Also:
ThreadMXBean.getThreadCpuTime(long)
-
isThreadCpuTimeSupported
public boolean isThreadCpuTimeSupported()
Always returns false.
- Specified by:
isThreadCpuTimeSupportedin interfaceThreadMXBean- See Also:
ThreadMXBean.isThreadCpuTimeSupported()
-
-