All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.junit.internal.management.FakeThreadMXBean Maven / Gradle / Ivy

Go to download

JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.

There is a newer version: 4.13.2
Show newest version
package org.junit.internal.management;

/**
 * No-op implementation of ThreadMXBean when the platform doesn't provide it.
 */
final class FakeThreadMXBean implements ThreadMXBean {

  /**
   * {@inheritDoc}
   *
   * 

Always throws an {@link UnsupportedOperationException} */ public long getThreadCpuTime(long id) { throw new UnsupportedOperationException(); } /** * {@inheritDoc} * *

Always returns false. */ public boolean isThreadCpuTimeSupported() { return false; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy