Skip navigation links
A B C D E F G H I J K L M O P R S T W 

A

AbstractControlledThread - Class in auxtestlib
Class implementing a thread with a myRun method which can throw exceptions.
AbstractControlledThread() - Constructor for class auxtestlib.AbstractControlledThread
Creates a new thread.
AbstractTestHelper - Class in auxtestlib
Super class for all test helpers.
AbstractTestHelper() - Constructor for class auxtestlib.AbstractTestHelper
Creates a new test helper.
add_process_interface_listener(CommandRunner.ProcessInterfaceListener) - Method in class auxtestlib.CommandRunner.ProcessInterface
Adds a listener to the process interface.
addProcessInterfaceListener(CommandRunner.ProcessInterfaceListener) - Method in class auxtestlib.CommandRunner.ProcessInterface
Deprecated.
use #add_process_interface_listener(ProcessInterfaceListener)
allowContinue() - Method in class auxtestlib.ThreadFlag
Starts all threads currently stopped at the flag.
array_equals(Object, Object) - Static method in class auxtestlib.ComparisonUtils
Checks that twu arrays are equals.
auxtestlib - package auxtestlib
 

B

BooleanEvaluation - Interface in auxtestlib
Evaluation that returns a boolean value.

C

clone(T) - Static method in class auxtestlib.Serialization
Marshalls and unmarshalls an object.
close() - Method in class auxtestlib.OutputStreamWithExceptionControl
 
CommandExecutionException - Exception in auxtestlib
Exception thrown when a command failed to execute.
CommandExecutionException(String) - Constructor for exception auxtestlib.CommandExecutionException
Creates a new exception.
CommandExecutionException(String, Throwable) - Constructor for exception auxtestlib.CommandExecutionException
Creates a new exception.
CommandOutput() - Constructor for class auxtestlib.CommandRunner.CommandOutput
 
CommandRunner - Class in auxtestlib
Class that runs a command and captures its output.
CommandRunner() - Constructor for class auxtestlib.CommandRunner
Creates a new instance.
CommandRunner.CommandOutput - Class in auxtestlib
Class that represents the output of a command.
CommandRunner.ProcessInterface - Class in auxtestlib
Interface provided to access the process while it is running.
ComparisonUtils - Class in auxtestlib
Class providing comparison utilities.
ControlledThread - Class in auxtestlib
Deprecated.
use the AbstractControlledThread instead
ControlledThread() - Constructor for class auxtestlib.ControlledThread
Deprecated.
 
cover_enumeration(Class<E>) - Method in class auxtestlib.DefaultTCase
Artificially invoke all automatically generated methods of an enumeration to make sure they are not missing in the code coverage report.

D

dateAddDays(Date, int) - Static method in class auxtestlib.DateHelper
Add a number of days to a data.
DateHelper - Class in auxtestlib
Class that provides simple methods that are usually considered when handling dates.
DefaultTCase - Class in auxtestlib
Super class for all test cases.
DefaultTCase() - Constructor for class auxtestlib.DefaultTCase
 
delete() - Method in class auxtestlib.TemporaryFile
Deletes the file or directory.

E

error - Variable in class auxtestlib.CommandRunner.CommandOutput
Error messages generated.
errorBytes - Variable in class auxtestlib.CommandRunner.CommandOutput
Output written by the commandin the stderr (in bytes).
evaluate() - Method in interface auxtestlib.BooleanEvaluation
Performs the evaluation.
exitCode - Variable in class auxtestlib.CommandRunner.CommandOutput
Program's exit code.

F

fail_once(IOException) - Method in class auxtestlib.OutputStreamWithExceptionControl
The next read will fail with an IOException.
file() - Method in class auxtestlib.TemporaryFile
Obtains a reference to the created file.
FileContentWorker - Class in auxtestlib
Utility class with methods to help dealing with text files.
files_equal(File, File) - Static method in class auxtestlib.FileContentWorker
Checks that two files are equal.
find_current_classpath() - Method in class auxtestlib.JavaLauncher
Obtains the URLs in the current class path.

G

generateFullRandomPicture(int, int) - Static method in class auxtestlib.PictureBuilder
Generates a totally random picture with the given width and height.
generateSemiRandomPicture(int, int, int) - Static method in class auxtestlib.PictureBuilder
Generates a random picture by random drawing figures (rectangles and circles) on a white canvas.
get(String) - Static method in class auxtestlib.WebGetter
Obtains the text at a given URL.
get_death_exception() - Method in class auxtestlib.AbstractControlledThread
Obtains the throwable that killed the thread.
getBinary(String) - Static method in class auxtestlib.WebGetter
Obtains a URL as binary data.
getDouble(String) - Static method in class auxtestlib.TestPropertiesDefinition
Obtains a property which must exist and be a double number.
getErrorText() - Method in class auxtestlib.CommandRunner.ProcessInterface
Obtains the text currently written to the stderr by the process.
getFile() - Method in class auxtestlib.TemporaryFile
Deprecated.
getInt(String) - Static method in class auxtestlib.TestPropertiesDefinition
Obtains a property which must exist and be an integer number.
getMString(String) - Static method in class auxtestlib.TestPropertiesDefinition
Obtains a property as a string.
getOutput() - Method in class auxtestlib.CommandRunner.ProcessInterface
Obtains the output of the command.
getOutputText() - Method in class auxtestlib.CommandRunner.ProcessInterface
Obtains the text currently written to the stdout by the process.
getPropDouble(String) - Method in class auxtestlib.AbstractTestHelper
Gets a test property which has to be defined.
getPropInt(String) - Method in class auxtestlib.AbstractTestHelper
Gets a test property which has to be defined.
getPropMString(String) - Method in class auxtestlib.AbstractTestHelper
Gets a test property which has to be defined.
getSimpleDayDifference(Date, Date) - Static method in class auxtestlib.DateHelper
Returns the difference in days of two dates.
getTotalHelperCount() - Static method in class auxtestlib.AbstractTestHelper
Obtains the total number of helpers created.

H

HashcodeEqualsTest - Class in auxtestlib
Class that makes a test to the hashCode and equals method of a class.
HashcodeEqualsTest() - Constructor for class auxtestlib.HashcodeEqualsTest
 

I

internal_get(Object, Class<FIELD_T>, String) - Static method in class auxtestlib.DefaultTCase
Obtains the value of a field in an object.
internal_set(Object, String, Object) - Static method in class auxtestlib.DefaultTCase
Obtains the value of a field in an object.
invoke() - Method in class auxtestlib.AbstractControlledThread
Simulates a thread "invocation" starting the thread, if it has not yet started and waiting for the thread to die, returning the thread's return value.
invoke_all(AbstractControlledThread[]) - Static method in class auxtestlib.AbstractControlledThread
Calls the invoke() method on all threads in the array.
isRunning() - Method in class auxtestlib.CommandRunner.ProcessInterface
Determines whether the process is still running.

J

JarUtils - Class in auxtestlib
Class that provides utility methods to work with jars.
javac(File, String) - Static method in class auxtestlib.JavacRunner
Runs javac.
javac(File, String, Object[]) - Static method in class auxtestlib.JavacRunner
Runs javac.
javac(File, String[], Object[]) - Static method in class auxtestlib.JavacRunner
Runs javac.
javacResource(File, String, String, Object[]) - Static method in class auxtestlib.JavacRunner
Compiles a file which exists as a resource.
javacResources(File, String[], String[], Object[]) - Static method in class auxtestlib.JavacRunner
Compiles files which exists as resources.
JavacRunner - Class in auxtestlib
Class that runs javac and compiles source code.
JavaLauncher - Class in auxtestlib
Class that is capable of launching new Java virtual machines.
JavaLauncher() - Constructor for class auxtestlib.JavaLauncher
Creates a new java launcher.

K

killProcess() - Method in class auxtestlib.CommandRunner.ProcessInterface
Requests the process to be killed (if it is running).

L

launch_java(String, int, String...) - Method in class auxtestlib.JavaLauncher
Runs a java program and waits for its completion.
launch_java(String, List<String>, int) - Method in class auxtestlib.JavaLauncher
Runs a java program and waits for its completion.
launch_java(String, List<String>, List<URL>, int) - Method in class auxtestlib.JavaLauncher
Runs a java program and waits for completion.
launch_java(String, List<String>, List<URL>, int, Short) - Method in class auxtestlib.JavaLauncher
Runs a java program and waits for completion.
launch_java_async(String, int, String...) - Method in class auxtestlib.JavaLauncher
Runs a java program but doesn't wait for its completion.
launch_java_async(String, List<String>, int) - Method in class auxtestlib.JavaLauncher
Runs a java program but doesn't wait for its completion.
launch_java_async(String, List<String>, List<URL>, int) - Method in class auxtestlib.JavaLauncher
Runs a java program but doesn't wait for completion.
launch_java_async(String, List<String>, List<URL>, int, Short) - Method in class auxtestlib.JavaLauncher
Runs a java program but doesn't wait for completion.
launch_java_async(String, File, List<String>, int) - Method in class auxtestlib.JavaLauncher
Runs a java program but doesn't wait for completion.
launch_java_async(String, File, List<String>, List<URL>, int, Short) - Method in class auxtestlib.JavaLauncher
Runs a java program but doesn't wait for completion.
launchJava(String, int, String...) - Method in class auxtestlib.JavaLauncher
launchJava(String, List<String>, int) - Method in class auxtestlib.JavaLauncher
launchJava(String, List<String>, List<URL>, int) - Method in class auxtestlib.JavaLauncher
launchJava(String, List<String>, List<URL>, int, Short) - Method in class auxtestlib.JavaLauncher
launchJavaAsync(String, int, String...) - Method in class auxtestlib.JavaLauncher
launchJavaAsync(String, List<String>, int) - Method in class auxtestlib.JavaLauncher
launchJavaAsync(String, List<String>, List<URL>, int) - Method in class auxtestlib.JavaLauncher
launchJavaAsync(String, List<String>, List<URL>, int, Short) - Method in class auxtestlib.JavaLauncher
load_global_properties() - Static method in class auxtestlib.TestPropertiesDefinition
Loads the test properties (if not already done).

M

main(String[]) - Static method in class auxtestlib.PictureBuilder
Main method that can be used to try the random picture generator.
makeFullJar(File, File) - Static method in class auxtestlib.JarUtils
Creates a jar from a directory contents (not the directory itself).
makeJar(File, File) - Static method in class auxtestlib.JarUtils
Creates a jar from a directory.
my_run() - Method in class auxtestlib.AbstractControlledThread
Method that will perform the thread's work.
myCleanUp() - Method in class auxtestlib.AbstractTestHelper
Cleans all data that may have been generated by this run or previous run of the helper.
myCleanUp() - Method in class auxtestlib.ThreadCountTestHelper
 
myPrepareFixture() - Method in class auxtestlib.AbstractTestHelper
Prepares data for the test.
myPrepareFixture() - Method in class auxtestlib.ThreadCountTestHelper
 
mySetUp() - Method in class auxtestlib.AbstractTestHelper
Prepares the helper for execution.
mySetUp() - Method in class auxtestlib.ThreadCountTestHelper
 
myTearDown() - Method in class auxtestlib.AbstractTestHelper
Destroys the helper.
myTearDown() - Method in class auxtestlib.ThreadCountTestHelper
 

O

output - Variable in class auxtestlib.CommandRunner.CommandOutput
Output generated by the command.
outputBytes - Variable in class auxtestlib.CommandRunner.CommandOutput
Output generated by the command (in bytes).
OutputStreamWithExceptionControl - Class in auxtestlib
Output stream that delegates to another output stream but allows injecting exceptions.
OutputStreamWithExceptionControl(OutputStream) - Constructor for class auxtestlib.OutputStreamWithExceptionControl
Creates a new stream.

P

pickRandomColor() - Static method in class auxtestlib.PictureBuilder
Generates a random color.
PictureBuilder - Class in auxtestlib
Class that can be used to generate random images.
post_tear_down() - Method in class auxtestlib.DefaultTCase
Runs after tear down.
pre_set_up() - Method in class auxtestlib.DefaultTCase
Runs before any preparation.

R

rand_array(E[]) - Static method in class auxtestlib.RandomGenerator
Picks a random value from an array.
rand_bytes(int) - Static method in class auxtestlib.RandomGenerator
Generates a random byte array.
rand_collection(Collection<E>) - Static method in class auxtestlib.RandomGenerator
Picks a random value from a collection.
rand_date(int, int) - Static method in class auxtestlib.RandomGenerator
Obtains a random date based on the actual date.
rand_date_days(int, int) - Static method in class auxtestlib.RandomGenerator
Obtains a random date based on the actual date.
rand_enum_value(Class<E>) - Static method in class auxtestlib.RandomGenerator
Returns a random value from a supplied enumeration (which cannot be an empty enumeration).
rand_int(int) - Static method in class auxtestlib.RandomGenerator
Obtains a random number between [0, max[.
rand_int(int, int) - Static method in class auxtestlib.RandomGenerator
Obtains a random number between [min, max[.
RandomGenerator - Class in auxtestlib
Class used to generate random values for unit tests.
reach() - Method in class auxtestlib.ThreadFlag
Invoked by a thread to mark that it has reached the flag.
reached() - Method in class auxtestlib.ThreadFlag
Obtains the list of all threads that have reached the flag.
read_contents(File) - Static method in class auxtestlib.FileContentWorker
Reads a file's contents.
read_contents_bin(File) - Static method in class auxtestlib.FileContentWorker
Obtains the contents of a file as a binary array.
read_resource(String) - Static method in class auxtestlib.FileContentWorker
Reads a file's contents (the file is expected to be a resource).
read_resource(Class<?>, String) - Static method in class auxtestlib.FileContentWorker
Reads a file's contents (the file is expected to be a resource).
read_resource_bin(String) - Static method in class auxtestlib.FileContentWorker
Reads a file's contents as binary data (the file is expected to be a resource).
remove_process_interface_listener(CommandRunner.ProcessInterfaceListener) - Method in class auxtestlib.CommandRunner.ProcessInterface
Removes a listener from the process interface.
removeProcessInterfaceListener(CommandRunner.ProcessInterfaceListener) - Method in class auxtestlib.CommandRunner.ProcessInterface
Deprecated.
use #remove_process_interface_listener(ProcessInterfaceListener)
result() - Method in class auxtestlib.AbstractControlledThread
Obtains the execution result (the value returned by my_run)
run() - Method in class auxtestlib.AbstractControlledThread
run method: just wraps myRun.
run_command(String[], File, int) - Method in class auxtestlib.CommandRunner
This method is a shortcut for the CommandRunner.run_command_async(String[], File, int).
run_command_async(String[], File, int) - Method in class auxtestlib.CommandRunner
Runs a command and captures the output.
runCommand(String[], File, int) - Method in class auxtestlib.CommandRunner
runCommandAsync(String[], File, int) - Method in class auxtestlib.CommandRunner

S

Serialization - Class in auxtestlib
Class providing utility methods for serialization test.
Serialization() - Constructor for class auxtestlib.Serialization
 
set_contents(File, String) - Static method in class auxtestlib.FileContentWorker
Changes the contents of a file (or creates a new file if it doesn't exist).
set_contents_bin(File, byte[]) - Static method in class auxtestlib.FileContentWorker
Changes the contents of a file (or creates a new file if it doesn't exist).
start_all(AbstractControlledThread[]) - Static method in class auxtestlib.AbstractControlledThread
Starts all threads in an array.

T

tearDown() - Method in class auxtestlib.AbstractTestHelper
Destroys a test helper.
TemporaryFile - Class in auxtestlib
Class that creates a temporary file or directory.
TemporaryFile(boolean) - Constructor for class auxtestlib.TemporaryFile
Creates a new temporary file (or directory).
TemporaryFile(File, boolean, String, String) - Constructor for class auxtestlib.TemporaryFile
Creates a new file (or directory).
test(T, T, T) - Static method in class auxtestlib.HashcodeEqualsTest
Makes a test.
test_with_to_string(T, T, T) - Static method in class auxtestlib.HashcodeEqualsTest
Tests the same as HashcodeEqualsTest.test(Object, Object, Object) but also tests the toString method.
TestCaseConfigurationException - Exception in auxtestlib
Exception thrown when a test case configuration (or setup) is incorrect.
TestCaseConfigurationException(String) - Constructor for exception auxtestlib.TestCaseConfigurationException
Creates a new exception.
TestCaseConfigurationException(String, Throwable) - Constructor for exception auxtestlib.TestCaseConfigurationException
Creates a new exception.
TestHelper - Annotation Type in auxtestlib
Annotation to add in fields of test cases which are subclasses of DefaultTCase\ whose type is a subclass of AbstractTestHelper.
TestPropertiesDefinition - Class in auxtestlib
Class that defines (and allows manipulating) test properties.
ThreadCountTestHelper - Class in auxtestlib
The thread count test helper ensures that all threads started during the test case are finished by the end of the test case.
ThreadCountTestHelper() - Constructor for class auxtestlib.ThreadCountTestHelper
Creates a new helper.
ThreadFlag - Class in auxtestlib
Class used to control running threads.
ThreadFlag() - Constructor for class auxtestlib.ThreadFlag
Creates a new flag.
threadReached(List<Thread>) - Method in class auxtestlib.ThreadFlag
A thread has reached the flag.
timedOut - Variable in class auxtestlib.CommandRunner.CommandOutput
Has the program timed out?

W

wait_for_end() - Method in class auxtestlib.AbstractControlledThread
Waits for the thread to die (or for an interrupt).
wait_for_true(BooleanEvaluation, long) - Method in class auxtestlib.DefaultTCase
Keeps evaluating an expression until it returns true or until it times out.
wait_for_true(BooleanEvaluation) - Method in class auxtestlib.DefaultTCase
WebGetter - Class in auxtestlib
Class that obtains data from the web.
write(int) - Method in class auxtestlib.OutputStreamWithExceptionControl
 
A B C D E F G H I J K L M O P R S T W 
Skip navigation links

Copyright © 2015. All rights reserved.