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 long
getThreadCpuTime(long id)
boolean
isThreadCpuTimeSupported()
-
-
-
Method Detail
-
getThreadCpuTime
public long getThreadCpuTime(long id)
Always throws an
UnsupportedOperationException
- Specified by:
getThreadCpuTime
in interfaceThreadMXBean
- See Also:
ThreadMXBean.getThreadCpuTime(long)
-
isThreadCpuTimeSupported
public boolean isThreadCpuTimeSupported()
Always returns false.
- Specified by:
isThreadCpuTimeSupported
in interfaceThreadMXBean
- See Also:
ThreadMXBean.isThreadCpuTimeSupported()
-
-