Skip navigation links
A C D E F G I M N O P S T U W 

A

assertAfter(int, int, Runnable) - Static method in class org.onlab.junit.TestTools
Runs the specified runnable until it completes successfully or until the specified time expires.
assertAfter(int, Runnable) - Static method in class org.onlab.junit.TestTools
Runs the specified runnable until it completes successfully or until the specified time expires.
assertThatClassIsImmutable(Class<?>) - Static method in class org.onlab.junit.ImmutableClassChecker
Assert that the given class adheres to the immutable class rules.
assertThatClassIsImmutableBaseClass(Class<?>) - Static method in class org.onlab.junit.ImmutableClassChecker
Assert that the given class adheres to the immutable class rules, but is not declared final.
assertThatClassIsUtility(Class<?>) - Static method in class org.onlab.junit.UtilityClassChecker
Assert that the given class adheres to the utility class rules.
awaitTermination(long, TimeUnit) - Method in class org.onlab.junit.NullScheduledExecutor
 

C

callConstructor(Constructor<T>) - Static method in class org.onlab.junit.TestUtils
Triggers an allocation of an object of type T and forces a call to the private constructor.
callMethod(T, String, Class<?>[], Object...) - Static method in class org.onlab.junit.TestUtils
Calls the method, bypassing scope restriction.
callMethod(T, String, Class<?>, Object) - Static method in class org.onlab.junit.TestUtils
Calls the method, bypassing scope restriction.
CAUSE - Static variable in class org.onlab.junit.ExceptionTest
 
createTestFiles(List<String>) - Static method in class org.onlab.junit.TestTools
Creates a directory tree of test files.
createTestFiles(List<String>, int, int) - Static method in class org.onlab.junit.TestTools
Creates a directory tree of test files.

D

delay(int) - Static method in class org.onlab.junit.TestTools
Suspends the current thread for a specified number of millis.
describeMismatch(Description) - Method in class org.onlab.junit.ImmutableClassChecker
Describe why an error was reported.
describeMismatch(Description) - Method in class org.onlab.junit.UtilityClassChecker
Describe why an error was reported.
describeTo(Description) - Method in class org.onlab.junit.ImmutableClassChecker
Describe the source object that caused an error, using a Hamcrest Matcher style interface.
describeTo(Description) - Method in class org.onlab.junit.UtilityClassChecker
Describe the source object that caused an error, using a Hamcrest Matcher style interface.

E

ExceptionTest - Class in org.onlab.junit
Base for exception tests.
ExceptionTest() - Constructor for class org.onlab.junit.ExceptionTest
 
execute(Runnable) - Method in class org.onlab.junit.NullScheduledExecutor
 

F

findAvailablePort(int) - Static method in class org.onlab.junit.TestTools
 

G

getDefault() - Method in class org.onlab.junit.ExceptionTest
 
getField(T, String) - Static method in class org.onlab.junit.TestUtils
Gets the field, bypassing scope restriction.
getWithMessage() - Method in class org.onlab.junit.ExceptionTest
 
getWithMessageAndCause() - Method in class org.onlab.junit.ExceptionTest
 

I

ImmutableClassChecker - Class in org.onlab.junit
Hamcrest style class for verifying that a class follows the accepted rules for immutable classes.
ImmutableClassChecker() - Constructor for class org.onlab.junit.ImmutableClassChecker
 
IntegrationTest - Interface in org.onlab.junit
Marker interface used to separate unit tests from integration tests.
invokeAll(Collection<? extends Callable<T>>) - Method in class org.onlab.junit.NullScheduledExecutor
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.onlab.junit.NullScheduledExecutor
 
invokeAny(Collection<? extends Callable<T>>) - Method in class org.onlab.junit.NullScheduledExecutor
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.onlab.junit.NullScheduledExecutor
 
isShutdown() - Method in class org.onlab.junit.NullScheduledExecutor
 
isTerminated() - Method in class org.onlab.junit.NullScheduledExecutor
 

M

MESSAGE - Static variable in class org.onlab.junit.ExceptionTest
 

N

noMessageNoCause() - Method in class org.onlab.junit.ExceptionTest
 
now() - Static method in class org.onlab.junit.TestTools
Returns the current time in millis since epoch.
NullScheduledExecutor - Class in org.onlab.junit
A scheduled executor service that does not do any of the work scheduled to it.
NullScheduledExecutor() - Constructor for class org.onlab.junit.NullScheduledExecutor
 

O

org.onlab.junit - package org.onlab.junit
Utilities to assist in developing JUnit tests.

P

print(String) - Static method in class org.onlab.junit.TestTools
 

S

schedule(Runnable, long, TimeUnit) - Method in class org.onlab.junit.NullScheduledExecutor
 
schedule(Callable<V>, long, TimeUnit) - Method in class org.onlab.junit.NullScheduledExecutor
 
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class org.onlab.junit.NullScheduledExecutor
 
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class org.onlab.junit.NullScheduledExecutor
 
setField(T, String, U) - Static method in class org.onlab.junit.TestUtils
Sets the field, bypassing scope restriction.
shutdown() - Method in class org.onlab.junit.NullScheduledExecutor
 
shutdownNow() - Method in class org.onlab.junit.NullScheduledExecutor
 
submit(Callable<T>) - Method in class org.onlab.junit.NullScheduledExecutor
 
submit(Runnable, T) - Method in class org.onlab.junit.NullScheduledExecutor
 
submit(Runnable) - Method in class org.onlab.junit.NullScheduledExecutor
 

T

TestTools - Class in org.onlab.junit
Utilities to aid in producing JUnit tests.
TestUtils - Class in org.onlab.junit
Utilities for testing.
TestUtils.TestUtilsException - Exception in org.onlab.junit
Exception that can be thrown if problems are encountered while executing the utility method.
TestUtilsException(String, Throwable) - Constructor for exception org.onlab.junit.TestUtils.TestUtilsException
Constructs a new exception with the specified detail message and cause.
tweakBytes(Random, byte[], int) - Static method in class org.onlab.junit.TestTools
Tweaks the given number of bytes in a byte array.
tweakBytes(Random, byte[], int, int, int) - Static method in class org.onlab.junit.TestTools
Tweaks the given number of bytes in the specified range of a byte array.

U

UtilityClassChecker - Class in org.onlab.junit
Hamcrest style class for verifying that a class follows the accepted rules for utility classes.
UtilityClassChecker() - Constructor for class org.onlab.junit.UtilityClassChecker
 

W

withCause() - Method in class org.onlab.junit.ExceptionTest
 
withMessage() - Method in class org.onlab.junit.ExceptionTest
 
writeRandomFile(File, int, int) - Static method in class org.onlab.junit.TestTools
Writes random binary content into the specified file.
A C D E F G I M N O P S T U W 
Skip navigation links