A B C D E F G H I J L M N O P R S T U V W X Z 
All Classes All Packages

A

AbstractLogger - Class in patterntesting.runtime.log
This is a common super class for all classes which do a kind of logging.
AbstractLogger(OutputStream) - Constructor for class patterntesting.runtime.log.AbstractLogger
Instantiates a new abstract logger.
AbstractProfileMonitor - Class in patterntesting.runtime.monitor
The Class AbstractProfileMonitor.
AbstractProfileMonitor() - Constructor for class patterntesting.runtime.monitor.AbstractProfileMonitor
 
AbstractSerializer - Class in patterntesting.runtime.io
This is the common superclass for all Serializer casses in PatternTesting.
AbstractSerializer() - Constructor for class patterntesting.runtime.io.AbstractSerializer
 
AbstractTester - Class in patterntesting.runtime.junit
This is the common superclass for some tester classes defined in this package.
AbstractTester() - Constructor for class patterntesting.runtime.junit.AbstractTester
Utility class - no need to instantiate it.
Account - Class in patterntesting.sample.jfs2010
A simple bank account.
Account(int, User) - Constructor for class patterntesting.sample.jfs2010.Account
Instantiates a new account.
activate() - Method in class patterntesting.exception.ExceptionFactory
Activate.
activate() - Method in interface patterntesting.exception.ExceptionFactoryMBean
You can only provoke Exceptions if the active flag is set.
activateOnce() - Method in class patterntesting.exception.ExceptionFactory
Activate once.
activateOnce() - Method in interface patterntesting.exception.ExceptionFactoryMBean
If you want to provoke an Exception only for the next time use this method.
ACTOR - patterntesting.runtime.log.internal.DrawType
The actor.
add(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Adds the.
add(double) - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Normally this method should be synchronized.
add(double) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Adds the.
add(Class<?>, AssertionError) - Method in error patterntesting.runtime.junit.Failures
Adds the given class and error to the internal error colllection.
add(String) - Method in class patterntesting.sample.intro.Rot13
We add the given string to the internal crypted string.
addAsShutdownHook() - Static method in class patterntesting.runtime.monitor.ProfileStatistic
You can register the instance as shutdown hook.
addAsShutdownHook(ProfileStatistic) - Static method in class patterntesting.runtime.monitor.ProfileStatistic
Adds the given instance (hook) as shutdown hook.
addChild(String) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Adds the child.
addChild(SimpleProfileMonitor) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Adds the child.
addChildren(List<String>) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Adds the children.
addError(AjcResult) - Method in class patterntesting.tool.aspectj.AjcFileResult
Adds the error.
addFailure(RunNotifier, Throwable, Description) - Method in class patterntesting.runtime.junit.SmokeRunner
This method was inspired from an internal JUnit class (EachTestNotifier#addFailure(Throwable)).
addListener(DeadLockListener) - Method in class patterntesting.concurrent.ThreadDeadLockMonitor
Adds the listener.
addMonitor(String) - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Adds the monitor.
addMonitors(List<String>) - Method in class patterntesting.runtime.monitor.JamonMonitorFactory
Adds the monitors.
addMonitors(List<String>) - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Adds the monitors.
addMonitors(List<String>) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitorFactory
Adds the monitors.
addSrcdir(String) - Method in class patterntesting.tool.aspectj.AjcXml
With this method you can add different source dirs for compiling.
addStatement(DrawStatement) - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Adds a statement.
addStatements(Collection<DrawStatement>) - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Adds the statements.
addWarning(AjcResult) - Method in class patterntesting.tool.aspectj.AjcFileResult
Adds the warning.
AjcErrorHandler - Class in patterntesting.tool.aspectj
Error handler to pass to the Ajc compiler in order to get structured error information.
AjcErrorHandler() - Constructor for class patterntesting.tool.aspectj.AjcErrorHandler
 
AjcFileResult - Class in patterntesting.tool.aspectj
All errors reported by Ajc for a given file.
AjcFileResult(String) - Constructor for class patterntesting.tool.aspectj.AjcFileResult
Instantiates a new ajc file result.
AjcResult - Class in patterntesting.tool.aspectj
An error entry reported by Ajc (for a given file).
AjcResult(int, String) - Constructor for class patterntesting.tool.aspectj.AjcResult
Instantiates a new ajc result.
AjcXml - Class in patterntesting.tool.aspectj
Allow to use the AjcXmlTask Ant task from a java application.
AjcXml() - Constructor for class patterntesting.tool.aspectj.AjcXml
Create default Ant objects to be able to run the task outside of the Ant engine.
AjcXmlTask - Class in patterntesting.tool.aspectj
Ant task that is a wrapper around the Ajc task.
AjcXmlTask() - Constructor for class patterntesting.tool.aspectj.AjcXmlTask
As a precondition for a successful compilation the aspectjrt.jar must be in the java.class.path - otherwise the AjcTask doesn't seem to work (got by experimental programming, also known als trial & error).
AlarmClock - Class in patterntesting.sample.jmx
This is a simple example how you can to write an MBean and how you can use the MBeanRegistry interface to register the MBean at the MBean server.
AlarmClock() - Constructor for class patterntesting.sample.jmx.AlarmClock
Instantiates a new alarm clock.
AlarmClock(Date) - Constructor for class patterntesting.sample.jmx.AlarmClock
Instantiates a new alarm clock.
AlarmClockMBean - Interface in patterntesting.sample.jmx
The Interface AlarmClockMBean.
ALL_CLASSES - Static variable in interface patterntesting.exception.ExceptionFactoryMBean
The default value for ExceptionFactoryMBean.setScope(String) if nothing was set.
AllowJDBC - Annotation Type in patterntesting.annotation.check.ct
If you have damn JDBC calls in your class via DamnJDBC you can allow some methods these calls be declaring them with @AllowJDBC.
and(StringConverter...) - Method in class patterntesting.runtime.util.StringConverter
With this method you can combine several converters.
AnnotatedStandardMBean - Class in patterntesting.runtime.jmx
The Class AnnotatedStandardMBean.
AnnotatedStandardMBean(Class<?>) - Constructor for class patterntesting.runtime.jmx.AnnotatedStandardMBean
Instance where the MBean interface is implemented by this object.
AnnotatedStandardMBean(T, Class<T>) - Constructor for class patterntesting.runtime.jmx.AnnotatedStandardMBean
Instance where the MBean interface is implemented by another object.
AntiPattern - Class in patterntesting.sample
This class contains some common anti pattern.
AntiPattern() - Constructor for class patterntesting.sample.AntiPattern
 
ArchivEntry - Class in patterntesting.runtime.util
Unfortunately we can't extends URI because this is a final class.
ArchivEntry(File) - Constructor for class patterntesting.runtime.util.ArchivEntry
Instantiates a new archiv entry.
ArchivEntry(String, File, String) - Constructor for class patterntesting.runtime.util.ArchivEntry
Instantiates a new archiv entry.
ArchivEntry(URI) - Constructor for class patterntesting.runtime.util.ArchivEntry
Instantiates a new archiv entry.
ArchivEntry(URL) - Constructor for class patterntesting.runtime.util.ArchivEntry
Instantiates a new archiv entry.
areEnabled() - Static method in class patterntesting.runtime.util.Assertions
If you want to know if the JavaVM was started with "Assertion enabled" (option -ea for SunVM) you can use this method.
areThreadsAllowed() - Static method in class patterntesting.runtime.util.Environment
In some JEE environment like Google's App Engine (GAE) it is not allowed to use multi threading.
ArrayTester - Class in patterntesting.runtime.junit
If you want to assert that the content of two arrays are equals use this tester here.
assertAll(Class<? extends T>) - Static method in class patterntesting.runtime.junit.ObjectTester
Starts all known checks like checkEquals(..), checks from the SerializableTester (if the given class is serializable) or from other classes.
assertAll(Package) - Static method in class patterntesting.runtime.junit.ObjectTester
Starts all known checks for all classes of the given package.
assertAll(Package, Class<?>...) - Static method in class patterntesting.runtime.junit.ObjectTester
Starts all known checks for all classes of the given package except for the "excluded" classes.
assertAll(Collection<Class<? extends T>>) - Static method in class patterntesting.runtime.junit.ObjectTester
Check all.
assertAllOfPackage(String) - Static method in class patterntesting.runtime.junit.ObjectTester
Starts all known checks for all classes of the given package.
assertAllOfPackage(String, Class<?>...) - Static method in class patterntesting.runtime.junit.ObjectTester
Starts all known checks for all classes of the given package but not for the "excluded" classes.
assertAllOfPackage(String, Pattern...) - Static method in class patterntesting.runtime.junit.ObjectTester
Starts all known checks for all classes of the given package but not for the "excluded" classes.
AssertArg - Class in patterntesting.runtime.util
This utility class is intended to check arguments.
assertCloning(Class<? extends Cloneable>) - Static method in class patterntesting.runtime.junit.CloneableTester
Check cloning.
assertCloning(Cloneable) - Static method in class patterntesting.runtime.junit.CloneableTester
We call the clone method of the given orig paramter.Because the clone method is normally "protected" we use reflection to call it.
assertCloning(Package) - Static method in class patterntesting.runtime.junit.CloneableTester
Check for each class in the given package if it can be cloned correct.
assertCloning(Package, Pattern...) - Static method in class patterntesting.runtime.junit.CloneableTester
Check for each class in the given package if it can be cloned correct.
assertCloning(Collection<Class<? extends Cloneable>>) - Static method in class patterntesting.runtime.junit.CloneableTester
Check for each class in the given collection if it can be cloned correct.
assertCloningOfPackage(String) - Static method in class patterntesting.runtime.junit.CloneableTester
Check for each class in the given package if it can be cloned correct.
assertCloningOfPackage(String, Class<? extends Cloneable>...) - Static method in class patterntesting.runtime.junit.CloneableTester
Check for each class in the given package if the clone method is implemented correct.
assertCloningOfPackage(String, Pattern...) - Static method in class patterntesting.runtime.junit.CloneableTester
Check for each class in the given package if the clone method is implemented correct.
assertCompareTo(Class<? extends Comparable>) - Static method in class patterntesting.runtime.junit.ComparableTester
This method will create two objects of the given class using the default constructor and compares them.
assertCompareTo(Comparable, Comparable) - Static method in class patterntesting.runtime.junit.ComparableTester
The Comparable.compareTo(Object) method should return 0 if the given objects are eqals.
assertCompareTo(Object, Object) - Static method in class patterntesting.runtime.junit.ObjectTester
Check equality of the given objects by using the compareTo() method.
assertCompareTo(Package) - Static method in class patterntesting.runtime.junit.ComparableTester
Check for each Comparable class in the given package if the compareTo(..) method works as expected.
assertCompareTo(Package, Pattern...) - Static method in class patterntesting.runtime.junit.ComparableTester
Check for each Comparable class in the given package if the compareTo(..) method works as expected.
assertCompareTo(Collection<Class<? extends Comparable>>) - Static method in class patterntesting.runtime.junit.ComparableTester
Check for each class in the given collection if the compareTo method works as expected.
assertCompareToOfPackage(String) - Static method in class patterntesting.runtime.junit.ComparableTester
Check for each Comparable class in the given package if the compareTo(..) method works as expected.
assertCompareToOfPackage(String, Class<? extends Comparable<?>>...) - Static method in class patterntesting.runtime.junit.ComparableTester
Check for each Comparable class in the given package if the compareTo(..) method works as expected.
assertCompareToOfPackage(String, Pattern...) - Static method in class patterntesting.runtime.junit.ComparableTester
Check for each Comparable class in the given package if the compareTo(..) method works as expected.
assertContentEquals(BufferedReader, BufferedReader) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(File, File) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, int, int) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, int, int, String) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, int, int, Charset) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, String) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, Charset) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, Charset, Pattern...) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, Charset, StringConverter) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, Charset, StringConverter, Pattern...) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, Pattern...) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, StringConverter) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(File, File, StringConverter, Pattern...) - Static method in class patterntesting.runtime.junit.FileTester
Asserts that the content of two files are equal.
assertContentEquals(InputStream, InputStream) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two InputStream are equal.
assertContentEquals(InputStream, InputStream, int, int) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two InputStream are equal.
assertContentEquals(InputStream, InputStream, Charset) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two InputStream are equal.
assertContentEquals(InputStream, InputStream, Charset, int, int) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two InputStream are equal.
assertContentEquals(InputStream, InputStream, Charset, Pattern...) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(InputStream, InputStream, Pattern...) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(Reader, Reader) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(Reader, Reader, int, int) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(Reader, Reader, Pattern...) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(Reader, Reader, StringConverter) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(Reader, Reader, StringConverter, Pattern[]) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(LineReader, LineReader, int, int) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(LineReader, LineReader, Pattern...) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertContentEquals(LineReader, LineReader, StringConverter, Pattern[]) - Static method in class patterntesting.runtime.junit.IOTester
Asserts that the content of two Readers are equal.
assertEmpty(String) - Static method in class patterntesting.runtime.junit.StringTester
Check if the given string is null or empty.
assertEqualKeys(Map<?, ?>, Map<?, ?>) - Static method in class patterntesting.runtime.junit.MapTester
Checks if each key in map m1 is equals to that of map m2.
assertEquals(byte[], byte[]) - Static method in class patterntesting.runtime.junit.ArrayTester
Checks if each object in array a1 is equals to that of array a2.
assertEquals(File, File) - Static method in class patterntesting.runtime.junit.FileTester
Two files are considered equals if the would point to the same file location on the disk.
assertEquals(Serializable) - Static method in class patterntesting.runtime.junit.ObjectTester
The given object will be serialized and deserialized to get a copy of that object.
assertEquals(Class<?>) - Static method in class patterntesting.runtime.junit.ObjectTester
This method will create two objects of the given class using the default constructor.
assertEquals(Cloneable) - Static method in class patterntesting.runtime.junit.ObjectTester
The given object will be cloned to get a copy of that object.
assertEquals(Object[], Object[]) - Static method in class patterntesting.runtime.junit.ArrayTester
Checks if each object in array a1 is equals to that of array a2.
assertEquals(Object, Object) - Static method in class patterntesting.runtime.junit.ObjectTester
Check equality of the given objects.
assertEquals(Package) - Static method in class patterntesting.runtime.junit.ObjectTester
Check for each class in the given package if the equals() method is implemented correct.
assertEquals(Package, Class<?>...) - Static method in class patterntesting.runtime.junit.ObjectTester
Check for each class in the given package if the equals() method is implemented correct.
assertEquals(Package, Pattern...) - Static method in class patterntesting.runtime.junit.ObjectTester
Check for each class in the given package if the equals() method is implemented correct.
assertEquals(Collection<?>, Collection<?>) - Static method in class patterntesting.runtime.junit.CollectionTester
Checks if each object in collection c1 is equals to that of Collection c2.
assertEquals(Collection<?>, Collection<?>, String) - Static method in class patterntesting.runtime.junit.CollectionTester
Assert equals.
assertEquals(Collection<Class<? extends T>>) - Static method in class patterntesting.runtime.junit.ObjectTester
Check for each class in the given collection if the equals() method is implemented correct.
assertEquals(List<?>, List<?>) - Static method in class patterntesting.runtime.junit.CollectionTester
Checks if each object in list l1 is equals to that of list l2.
assertEquals(Map<?, ?>, Map<?, ?>) - Static method in class patterntesting.runtime.junit.MapTester
Checks if each key-value pair in map m1 is equals to that of map m2.
assertEqualsOfPackage(String) - Static method in class patterntesting.runtime.junit.ObjectTester
Check for each class in the given package if the equals() method is implemented correct.
assertEqualsOfPackage(String, Class<?>...) - Static method in class patterntesting.runtime.junit.ObjectTester
Check for each class in the given package if the equals() method is implemented correct.
assertEqualsOfPackage(String, Pattern...) - Static method in class patterntesting.runtime.junit.ObjectTester
Check for each class in the given package if the equals() method is implemented correct.
assertEqualValues(Map<?, ?>, Map<?, ?>) - Static method in class patterntesting.runtime.junit.MapTester
Checks if each value in map m1 is equals to that of map m2.
assertExists(URI) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given URI exists and is reachable.
assertExists(URL) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given URL exists and is reachable.
assertFreeMemory(int) - Static method in class patterntesting.runtime.junit.RuntimeTester
If you need a certain amount of free memory you can assert it with this method here.
assertImmutable(Class<? extends Object>) - Static method in class patterntesting.runtime.junit.ImmutableTester
Assert that a class is immutable.
assertImmutable(Package) - Static method in class patterntesting.runtime.junit.ImmutableTester
Check for each class with the Immutable annotation if it is really (strict) Immutable and has on non-final field.
assertImmutable(Package, Class<?>...) - Static method in class patterntesting.runtime.junit.ImmutableTester
Check for each class with the Immutable annotation if it is really (strict) Immutable and has on non-final field.
assertImmutable(Collection<Class<? extends Object>>) - Static method in class patterntesting.runtime.junit.ImmutableTester
Checks for each class in the given collection if it is immutable.
assertImmutableOfPackage(String) - Static method in class patterntesting.runtime.junit.ImmutableTester
Check for each class with the Immutable annotation if it is really (strict) Immutable and has on non-final field.
assertImmutableOfPackage(String, Class<?>...) - Static method in class patterntesting.runtime.junit.ImmutableTester
Check for each class with the Immutable annotation if it is really (strict) Immutable and has on non-final field.
Assertions - Class in patterntesting.runtime.util
If you want to know if assertions are enabled (java option "-ea"), you can use this helper class.
assertMaxMemory(int) - Static method in class patterntesting.runtime.junit.RuntimeTester
If you have some tests which needs a certain amount of memory this test is for you.
assertNoFinalTransientAttribute(Class<? extends Serializable>) - Static method in class patterntesting.runtime.junit.SerializableTester
Serializable classes must not have final transient attributes.
assertNotEmpty(String) - Static method in class patterntesting.runtime.junit.StringTester
Check if the given string is not null and not empty.
assertNotEquals(Object, Object) - Static method in class patterntesting.runtime.junit.ObjectTester
Checks if the two given objects are really not equals.
assertOffline(String) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is offline.
assertOffline(String, int) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the port of the given host is offline.
assertOffline(String, int, TimeUnit) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is offline.
assertOffline(InetAddress) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is offline.
assertOffline(InetAddress, int) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the port of the given host is offline.
assertOffline(InetAddress, int, TimeUnit) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is offline.
assertOffline(InetSocketAddress) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the socket address is offline.
assertOnline(String) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is online.
assertOnline(String, int) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is online at the given port.
assertOnline(String, int, TimeUnit) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is online.
assertOnline(InetAddress) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is online.
assertOnline(InetAddress, int) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is online at the given port.
assertOnline(InetAddress, int, TimeUnit) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the given host is online.
assertOnline(InetSocketAddress) - Static method in class patterntesting.runtime.junit.NetworkTester
Asserts, that the socket address is online.
assertSerialization(Serializable) - Static method in class patterntesting.runtime.junit.SerializableTester
Check serialization and deserialization of an object.
assertSerialization(Class<? extends Serializable>) - Static method in class patterntesting.runtime.junit.SerializableTester
This method will create an object of the given class using the default constructor.
assertSerialization(Package) - Static method in class patterntesting.runtime.junit.SerializableTester
Check for each class in the given package if it can be serialized and deserialized.
assertSerialization(Collection<Class<Serializable>>) - Static method in class patterntesting.runtime.junit.SerializableTester
Check for each class in the given collection if it can be serialized and deserialized.
assertSerializationOfPackage(String) - Static method in class patterntesting.runtime.junit.SerializableTester
Check for each class in the given package if it can be serialized and deserialized.
assertToString(Object) - Static method in class patterntesting.runtime.junit.ObjectTester
If a object is only partially initalized it sometimes can happen, that calling the toString() method will result in a NullPointerException.

B

BackgroundRunner - Class in patterntesting.concurrent.junit.internal
The Class BackgroundRunner will run the wrapped Runner in background, record the results und plays them when they are needed.
BackgroundRunner(Class<?>) - Constructor for class patterntesting.concurrent.junit.internal.BackgroundRunner
Instantiates a new background runner.
BackgroundRunner(Runner) - Constructor for class patterntesting.concurrent.junit.internal.BackgroundRunner
Instantiates a new background runner.
BankRepository - Class in patterntesting.sample.jfs2010
This class represents the repository (or DB) of a bank.
BetterFileInputStream - Class in patterntesting.runtime.io
Whenever you need a FileInputStream and want a better toString implementation you can use the class BetterFileInputStream.
BetterFileInputStream(File) - Constructor for class patterntesting.runtime.io.BetterFileInputStream
Instantiates a new better file input stream.
BetterFileInputStream(String) - Constructor for class patterntesting.runtime.io.BetterFileInputStream
Instantiates a new better file input stream.
BetterFileOutputStream - Class in patterntesting.runtime.io
Whenever you need a FileOutputStream and want a better toString implementation you can use the class BetterFileOutputStream.
BetterFileOutputStream(File) - Constructor for class patterntesting.runtime.io.BetterFileOutputStream
Instantiates a new better file output stream.
BetterFileOutputStream(File, boolean) - Constructor for class patterntesting.runtime.io.BetterFileOutputStream
Instantiates a new better file output stream.
BetterFileOutputStream(String) - Constructor for class patterntesting.runtime.io.BetterFileOutputStream
Instantiates a new better file output stream.
BetterFileOutputStream(String, boolean) - Constructor for class patterntesting.runtime.io.BetterFileOutputStream
Instantiates a new better file output stream.
betterSAXException(SAXException) - Static method in class patterntesting.exception.xml.SAXHelper
Transforms a SAXException with too less infos into a better SAXException with more infos.
betterSAXException(SAXException, String) - Static method in class patterntesting.exception.xml.SAXHelper
Better sax exception.
binarySearch(List<? extends Comparable<? super T>>, T) - Static method in class patterntesting.sample.dbc.Collections
Binary search.
BinarySerializer - Class in patterntesting.runtime.io
This is the default serializer which uses the default mechanism proved by the JDK.
BinarySerializer() - Constructor for class patterntesting.runtime.io.BinarySerializer
 
Bird - Class in patterntesting.sample.animal
The Class Bird.
Bird(String) - Constructor for class patterntesting.sample.animal.Bird
This is a bad example.
Bomb - Class in patterntesting.sample
This is a simple bomb which ticks for one hour and then makes "bumm".
Bomb() - Constructor for class patterntesting.sample.Bomb
 
Bomb(int) - Constructor for class patterntesting.sample.Bomb
 
Broken - Annotation Type in patterntesting.runtime.annotation
If you want to mark JUnit tests which does not work for the moment as "broken" you can use this annotation.

C

callSetupBeforeClass() - Method in class patterntesting.concurrent.junit.JUnitExecutor
If the JUnit test class have a setupBeforeClass method we will call it here.
catchAndIgnore(String) - Static method in class patterntesting.sample.AntiPattern
This is similar like the "log & return null" anti pattern in the method before.
childrenInvoker(RunNotifier) - Method in class patterntesting.concurrent.junit.ParallelProxyRunner
Returns a Statement: Call ParallelProxyRunner.runChild(FrameworkMethod, RunNotifier) on each object returned by SmokeRunner.getChildren() (subject to any imposed filter and sort).
childrenInvoker(RunNotifier) - Method in class patterntesting.concurrent.junit.ParallelRunner
Returns a Statement: Call SmokeRunner.runChild(FrameworkMethod, RunNotifier) on each object returned by SmokeRunner.getChildren() (subject to any imposed filter and sort).
ClassloaderException - Exception in patterntesting.runtime.exception
If you have some problems with the ClassLoader you can use this exception here for throwing.
ClassloaderException(ClassLoader, String, Throwable) - Constructor for exception patterntesting.runtime.exception.ClassloaderException
Instantiates a new classloader exception.
ClassloaderType - Enum in patterntesting.runtime.monitor
This enum type can detect if a classloader is a Tomcat, WebLogic or Websphere classloader.
ClasspathHelper - Class in patterntesting.runtime.util
This class contains some helper classes which are used inside ClasspathMonitor and ClasspathDigger.
ClasspathMonitor - Class in patterntesting.runtime.monitor
Deprecated.
replaced by clazzfish.monitor.ClasspathMonitor
ClasspathMonitor() - Constructor for class patterntesting.runtime.monitor.ClasspathMonitor
Deprecated.
Instantiates a new classpath monitor.
ClassTester - Class in patterntesting.runtime.junit
This tester examines classes.
ClassTester(String) - Constructor for class patterntesting.runtime.junit.ClassTester
Instantiates a new class tester.
classToResource(String) - Static method in class patterntesting.runtime.util.Converter
Converts a classname (e.g.
clone() - Method in class patterntesting.sample.intro.Rot13
Clone the object.
CloneableTester - Class in patterntesting.runtime.junit
This tester checks class which implements Clonable and has therefore the clone method implemented.
close() - Method in class patterntesting.runtime.io.FileInputStreamReader
Close.
close() - Method in class patterntesting.runtime.log.AbstractLogger
Closes the stream with the logged objects.
close() - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Close quietly.
close() - Method in class patterntesting.runtime.log.ObjectRecorder
Closes the stream with the logged objects.
close() - Method in class patterntesting.runtime.log.SequenceGrapher
Closes the stream with the logged objects.
CoffeeAccount - Class in patterntesting.sample.dbc
This is a simple example application to show the use of DbC (Design by Contract).
CoffeeAccount(String) - Constructor for class patterntesting.sample.dbc.CoffeeAccount
Instantiates a new coffee account.
Collections - Class in patterntesting.sample.dbc
This is an example how the Collections utilties can be implemented using DbC.
CollectionTester - Class in patterntesting.runtime.junit
If you want to assert that the content of two collections are equals use this tester here.
ComparableTester - Class in patterntesting.runtime.junit
This utility class checks classes which implements the Comparable interface.
compare(Object, Object) - Method in class patterntesting.runtime.util.ObjectComparator
Compare.
compareTo(ProfileMonitor) - Method in class patterntesting.runtime.monitor.AbstractProfileMonitor
The ProfileMonitor with the higher number of totals is considered as "greater".
compareTo(CoffeeAccount) - Method in class patterntesting.sample.dbc.CoffeeAccount
Compare to.
compareTo(Fraction) - Method in class patterntesting.sample.Fraction
This is an example of an automatically generated method by Eclipse.
compareTo(Rot13) - Method in class patterntesting.sample.intro.Rot13
Compare two objects.
Config - Class in patterntesting.sample
This class is an example how NullPointerExceptions may happen.
ConstructorSignatureImpl - Class in patterntesting.runtime.util.reflect
The Class ConstructorSignatureImpl.
ConstructorSignatureImpl(Constructor<?>) - Constructor for class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Instantiates a new constructor signature impl.
Contract - Interface in patterntesting.runtime.dbc
With this Contract interface you can realize Design-by-Contract, also known as DbC.
ContractViolation - Error in patterntesting.runtime.dbc
The Class ContractViolation.
ContractViolation(Object) - Constructor for error patterntesting.runtime.dbc.ContractViolation
Instantiates a new contract violation.
controlFlag(String, boolean) - Static method in class patterntesting.sample.AntiPattern
This is an example for the use of a control flag which is normally an indication for bad design.
convert(String) - Method in class patterntesting.runtime.util.StringConverter
This is the method for conversion.
Converter - Class in patterntesting.runtime.util
The Class Converter to convert objects from one type to another type.
copyAndPaste() - Static method in class patterntesting.sample.AntiPattern
countErrors() - Method in class patterntesting.tool.aspectj.Logger
Count errors.
Crash - Class in patterntesting.sample
This class will crash while initializing the static part.
CrazyCookie - Class in patterntesting.sample
This is an example for a class with a dynamic serialVersionUID.
CrazyCookie() - Constructor for class patterntesting.sample.CrazyCookie
 
create(Class<? extends Throwable>) - Static method in class patterntesting.runtime.util.ExceptionThrower
Creates any desired exception you want.
CREATE_MESSAGE - patterntesting.runtime.log.internal.DrawType
The create message.
createAccountFor(User) - Static method in class patterntesting.sample.jfs2010.BankRepository
Creates the account for.
createMessage(Object, Object, JoinPoint.StaticPart) - Method in class patterntesting.runtime.log.SequenceGrapher
Logs the creation of an object in the created sequence diagram.
createMessage(JoinPoint, Object) - Method in class patterntesting.runtime.log.SequenceGrapher
Logs the creation of an object in the created sequence diagram.
createObjectInputStream(InputStream) - Method in class patterntesting.runtime.io.AbstractSerializer
Creates the ObjectInputStream that deserializes a stream of objects from an InputStream.
createObjectInputStream(InputStream) - Method in class patterntesting.runtime.io.BinarySerializer
Creates the ObjectInputStream that deserializes a stream of objects from an InputStream using the default mechnism of Java.
createObjectInputStream(InputStream) - Method in class patterntesting.runtime.io.XStreamSerializer
Creates the ObjectInputStream that deserializes a stream of objects from an InputStream using XStream.
createObjectOutputStream(OutputStream) - Method in class patterntesting.runtime.io.AbstractSerializer
Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream.
createObjectOutputStream(OutputStream) - Method in class patterntesting.runtime.io.BinarySerializer
Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream using the default mechnism of Java.
createObjectOutputStream(OutputStream) - Method in class patterntesting.runtime.io.XStreamSerializer
Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream using XStream.
createOutputStream() - Method in class patterntesting.runtime.io.ExtendedFile
Creates the output stream of the file.
createOutputStreamFor(File) - Static method in class patterntesting.runtime.io.ExtendedFile
Creates the output stream of the file.
createTabularDataSupport(CompositeType, String[]) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Creates a TabularDataSupport object.
createTargetName(Object) - Static method in class patterntesting.runtime.log.internal.DrawStatement
Creates the target name depending on the given object.
createTempLogFile(String, String) - Static method in class patterntesting.runtime.log.AbstractLogger
Creates a file in the temp directory.
createTestDescription(Description, Annotation[]) - Static method in class patterntesting.runtime.junit.internal.DescriptionUtils
Creates the test description.
createTmpdir(String, String) - Static method in class patterntesting.runtime.io.ExtendedFile
Creates a directory in the temp directory.
crypt() - Method in interface patterntesting.sample.intro.Cryptable
We return a crypted message.
crypt() - Method in class patterntesting.sample.intro.Rot13
Nothing to do - it's already crypted!.
crypt(char) - Static method in class patterntesting.sample.intro.Rot13
Crypts the given character.
crypt(File) - Static method in class patterntesting.sample.intro.Rot13
Not only the content of the given file will be encrypted but also a new file with the encrypted content will be created.
crypt(String) - Static method in class patterntesting.sample.intro.Rot13
Crypts the given string.
crypt(URI) - Static method in class patterntesting.sample.intro.Rot13
If you want a to crypt a web site you can use this crypt method here.
Cryptable - Interface in patterntesting.sample.intro
This interface is only an example.

D

DamnJDBC - Annotation Type in patterntesting.annotation.check.ct
If you want to forbid JDBC calls use this annotation.
DamnStaticVars - Annotation Type in patterntesting.annotation.check.ct
The Interface DamnStaticVars.
day() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
With the day attribute you can limit the run of your tests on special days.
day() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
With the day attribute you can skip the run of your tests on special days.
DbC - Class in patterntesting.runtime.dbc
The Class DbC.
deactivate() - Method in class patterntesting.exception.ExceptionFactory
Deactivate.
deactivate() - Method in interface patterntesting.exception.ExceptionFactoryMBean
You don't want to provoke an exception any longer?
deactivateAlarm() - Method in class patterntesting.sample.jmx.AlarmClock
Deactivate alarm.
deactivateAlarm() - Method in interface patterntesting.sample.jmx.AlarmClockMBean
Deactivate alarm.
deadLockDetected(Thread[]) - Method in interface patterntesting.concurrent.DeadLockListener
This method will be called if a dead lock will be detected.
deadLockDetected(Thread[]) - Method in class patterntesting.concurrent.DeadLockLogger
Dead lock detected.
DeadLockListener - Interface in patterntesting.concurrent
If you want to be notified if a dead lock happens you must implement this interface.
DeadLockLogger - Class in patterntesting.concurrent
The Class DeadLockLogger.
DeadLockLogger() - Constructor for class patterntesting.concurrent.DeadLockLogger
 
debit(String) - Method in class patterntesting.sample.jfs2010.Account
Pay off some money.
debit(BigDecimal) - Method in class patterntesting.sample.jfs2010.Account
Pay off some money.
debitServiceFee() - Method in class patterntesting.sample.dbc.CoffeeAccount
Debit service fee.
debug(String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Debug.
decrypt() - Method in class patterntesting.sample.intro.Rot13
Decrypts the crypted string.
decrypt(byte[], String, String) - Static method in class patterntesting.sample.Enigma
Decrypt.
decrypt(String) - Static method in class patterntesting.sample.intro.Rot13
It's the same algorithm as 'crypt'.
decrypt(StringBuffer) - Static method in class patterntesting.sample.intro.Rot13
Decrypt.
definedEncoding(File, InputStream, OutputStream) - Static method in class patterntesting.sample.AntiPattern
This is an example how to define the encoding for different streams and string methods.s
DelegateTo - Annotation Type in patterntesting.runtime.annotation
If you use @RunWith(ProxyRunner.class) use must tell the ProxyRunner class which class it should use for delegation.
deleteAccount(Account) - Static method in class patterntesting.sample.jfs2010.BankRepository
Delete acount.
dependsOn(Class<?>) - Method in class patterntesting.runtime.junit.ClassTester
Checks if the stored class depends on another class.
dependsOn(String) - Method in class patterntesting.runtime.junit.ClassTester
Checks if the stored class depends on another class.
dependsOn(String, Class<?>) - Static method in class patterntesting.runtime.junit.ClassTester
Checks if the given class depends on another class.
deposit(String) - Method in class patterntesting.sample.jfs2010.Account
Deposit.
deposit(BigDecimal) - Method in class patterntesting.sample.jfs2010.Account
Pay in some money.
DeprecatedCodeException - Exception in patterntesting.check.runtime
The Class DeprecatedCodeException.
DeprecatedCodeException(JoinPoint) - Constructor for exception patterntesting.check.runtime.DeprecatedCodeException
Instantiates a new DeprectedCodeException.
DeprecatedCodeException(JoinPoint, String) - Constructor for exception patterntesting.check.runtime.DeprecatedCodeException
Instantiates a new DeprectedCodeException.
describe() - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Describes the kind of test e.g.
describeChild(FrameworkMethod) - Method in class patterntesting.runtime.junit.SmokeRunner
Create a Description of a single test named name in the class clazz.
Description - Annotation Type in patterntesting.runtime.jmx
With this annotation you can add a description to a MBean.
DescriptionUtils - Class in patterntesting.runtime.junit.internal
This class provides some utiltis for the Description class for older versions of JUnit 4.
deserialize(byte[]) - Static method in class patterntesting.runtime.util.Converter
Deserializes the given byte array and returns it as object.
deserialize(Serializable) - Static method in class patterntesting.runtime.junit.SerializableTester
Serialiazes and deserializes the given object.
destructiveWrapping() - Static method in class patterntesting.sample.AntiPattern
The thrown RuntimeException in this example destroys the stacktrace because the cause is not wrapped in the thrown exception.
DetailedAssertionError - Error in patterntesting.runtime.exception
This is a kind of better AssertionError which gives you some more details of the given cause.
DetailedAssertionError(Object, Throwable) - Constructor for error patterntesting.runtime.exception.DetailedAssertionError
Instantiates a new detailed assertion error.
DetailedInvalidClassException - Exception in patterntesting.runtime.exception
The problem with the InvalidClassException is that a constructor with a cause is missing.
DetailedInvalidClassException(String, Throwable) - Constructor for exception patterntesting.runtime.exception.DetailedInvalidClassException
Instantiates a new detailed invalid class exception.
DetailedSocketException - Exception in patterntesting.exception.net
The DetailedSocketException provides (in contradiction to SocketException) an constructor with a Throwable as argument.
DetailedSocketException(String, Throwable) - Constructor for exception patterntesting.exception.net.DetailedSocketException
Constructs a new SocketException with the specified detail message and the given cause.
DirNotFoundException - Exception in patterntesting.exception.io
Not every FileNotFoundException is a FileNotFoundException.
DirNotFoundException() - Constructor for exception patterntesting.exception.io.DirNotFoundException
The default constructor.
DirNotFoundException(String) - Constructor for exception patterntesting.exception.io.DirNotFoundException
Instantiates a new dir not found exception.
disable() - Method in class patterntesting.runtime.monitor.JamonMonitor
Disable.
DISABLE_THREADS - Static variable in class patterntesting.runtime.util.Environment
System property to disable multithreading.
DontLogMe - Annotation Type in patterntesting.runtime.annotation
E.g. the ProfileAspect together with the AbstractProfileAspect logs also the arguments for long running methods.
DontProfileMe - Annotation Type in patterntesting.runtime.annotation
You have marked a class with "@ProfileMe" but don't want to see all methods?
DontTraceMe - Annotation Type in patterntesting.runtime.annotation
If you have marked a class with @TraceMe and you want to exclude some methods or constructors you can mark it with this annotation.
DrawSequenceDiagram - Annotation Type in patterntesting.runtime.annotation
With this annotation you can control the generation of sequence diagrams.
DrawStatement - Class in patterntesting.runtime.log.internal
Internal class for caching the different draw statements.
DrawStatement(String, Object, String, JoinPoint.StaticPart) - Constructor for class patterntesting.runtime.log.internal.DrawStatement
Instantiates a new draw statement.
DrawStatement(String, String, Object, JoinPoint.StaticPart) - Constructor for class patterntesting.runtime.log.internal.DrawStatement
Instantiates a new draw statement.
DrawStatement(String, String, JoinPoint.StaticPart, Object[]) - Constructor for class patterntesting.runtime.log.internal.DrawStatement
Instantiates a new draw statement.
DrawStatement(DrawType, String, String) - Constructor for class patterntesting.runtime.log.internal.DrawStatement
Instantiates a new draw statement of type 'ACTOR' or 'OBJECT'.
DrawStatement(DrawType, String, JoinPoint.StaticPart) - Constructor for class patterntesting.runtime.log.internal.DrawStatement
Instantiates a new draw statement of type 'PLACE_HOLDER'.
DrawType - Enum in patterntesting.runtime.log.internal
The different types of drawings.
DRIVER_PROPERTY - Static variable in class patterntesting.exception.xml.SAXHelper
The Constant DRIVER_PROPERTY.
DRIVER_RESOURCE - Static variable in class patterntesting.exception.xml.SAXHelper
The Constant DRIVER_RESOURCE.
Duck - Class in patterntesting.sample.animal
The Class Duck.
Duck(String) - Constructor for class patterntesting.sample.animal.Duck
Instantiates a new duck.
Dummy - Class in patterntesting.patterntesting.check.runtime.junit4
This is onyl a dummy class for testing.
dumpStatistic() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Dump statistic to a file in the temporary directory.
dumpStatistic() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Dump statistic.
dumpStatistic(String) - Method in class patterntesting.runtime.monitor.ProfileStatistic
This operation dumps the statistic to the given file.
dumpStatistic(String) - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
This operation dumps the statistic to the given file.
dumpStatisticTo(File) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Dump statistic to the given file.

E

eatCache(int) - Method in class patterntesting.sample.MemoryEater
Uses the given percentage of the free memory for caching but nobody will use it (remember it is only a demo).
ECHO - Static variable in class patterntesting.runtime.util.StringConverter
This converter echoes only the input string.
enable() - Method in class patterntesting.runtime.monitor.JamonMonitor
Enable.
ENABLED - Static variable in class patterntesting.runtime.util.Assertions
The Constant enabled.
EnableStreamWarning - Annotation Type in patterntesting.annotation.check.ct
Use this annotation if you want to avoid the use of Stram classes like InputStream or OutputStream.
encode(File) - Static method in class patterntesting.tool.html.UmlautEncoder
Encode a file.
encode(File, File) - Static method in class patterntesting.tool.html.UmlautEncoder
Encode.
encode(String) - Static method in class patterntesting.tool.html.UmlautEncoder
Encode a String.
encrypt(byte[], String, String) - Static method in class patterntesting.sample.Enigma
Encrypt.
end(int, String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
End the log with the given message.
end(String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
End the log with the given message.
end(JoinPoint) - Static method in class patterntesting.runtime.log.Trace
Logs the trace with a start sign ("<").
end(JoinPoint, Object) - Static method in class patterntesting.runtime.log.Trace
Logs the trace with a start sign ("<").
end(JoinPoint, String) - Static method in class patterntesting.runtime.log.Trace
Logs the trace with a start sign ("<").
endsWith(File) - Method in class patterntesting.runtime.io.ExtendedFile
With this method you can ask if a file ends with the given extension.
endTimer() - Method in class patterntesting.runtime.junit.internal.ProfiledStatement
The timer should end after the last tearDown() method was called.
Enigma - Class in patterntesting.sample
The Enigma was a cipher machine of the Germans during World War II (see Enigma machine).
ensure(boolean) - Static method in class patterntesting.runtime.dbc.DbC
Use this method to describe the condition which must be true when the preconditions were true and your method is finished.
ensure(boolean, Object) - Static method in class patterntesting.runtime.dbc.DbC
Use this method to describe the condition which must be true when the preconditions were true and your method is finished.
Environment - Class in patterntesting.runtime.util
This class provides some utilities for the access to the environment (e.g.
Environment() - Constructor for class patterntesting.runtime.util.Environment
To be able to use different "environment" this class can now be sub-classed.
equals(Object) - Method in class patterntesting.runtime.io.ExtendedFile
Comparing two files is not so easy as it seems to be.
equals(Object) - Method in class patterntesting.runtime.io.FileInputStreamReader
Equals.
equals(Object) - Method in class patterntesting.runtime.log.internal.DrawStatement
Equals.
equals(Object) - Method in class patterntesting.runtime.log.ObjectPlayer
Equals.
equals(Object) - Method in class patterntesting.runtime.monitor.AbstractProfileMonitor
If we impmlement the Comparable.compareTo(Object) method we should also implement/overwrite the Object.equals(Object) method.
equals(Object) - Method in class patterntesting.runtime.monitor.JamonMonitor
Tests if given object is equal.
equals(Object) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Only two monitors of the same instance can be equals.
equals(Object) - Method in class patterntesting.runtime.util.ArchivEntry
If two entries with the same resource or class name have a different size or not the same byte code they are considered as not equal.
equals(Object) - Method in class patterntesting.sample.AntiPattern
There are several problems with this equals implementation here.
equals(Object) - Method in class patterntesting.sample.CrazyCookie
Equals.
equals(Object) - Method in class patterntesting.sample.dbc.CoffeeAccount
Equals.
equals(Object) - Method in class patterntesting.sample.Fraction
Because we have implemented (or want to implement) the compareTo(..) method we should overwrite the equals method.
equals(Object) - Method in class patterntesting.sample.intro.Rot13
Checks if two Rot13 objects has the same (crypted) content.
equals(Object) - Method in class patterntesting.sample.jfs2010.User
Equals.
equals(CrazyCookie) - Method in class patterntesting.sample.CrazyCookie
Equals.
equals(Rot13) - Method in class patterntesting.sample.intro.Rot13
Checks if two Rot13 objects has the same (crypted) content.
error(String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Error.
evaluate() - Method in class patterntesting.concurrent.junit.RecordedStatement
Plays the recorded action, throwing a Throwable if anything went wrong.
evaluate() - Method in class patterntesting.runtime.junit.internal.ProfiledStatement
Invokes the test method.
evaluateExecutionCondition(ExtensionContext) - Method in class patterntesting.runtime.junit.extension.IntegrationTestExtension
 
evaluateExecutionCondition(ExtensionContext) - Method in class patterntesting.runtime.junit.extension.SmokeTestExtension
 
ExceptionFactory - Class in patterntesting.exception
This class can create for testing purpose any desired checked exception.
ExceptionFactoryMBean - Interface in patterntesting.exception
The Interface ExceptionFactoryMBean.
ExceptionThrower - Class in patterntesting.runtime.util
Because we need the functionality of throwing any exception not only in PatternTesting Exception but also here this functionality was shifted to PatternTesting Runtime.
excluded() - Method in annotation type patterntesting.runtime.annotation.DrawSequenceDiagram
If you don't want the call to a class of the "com.pany" package you can add "com.pany.*" as pattern.
execute() - Method in class patterntesting.tool.aspectj.AjcXmlTask
Execute.
execute() - Method in class patterntesting.tool.maven.XAjcCompileMojo
Before we can call the execute method of the super class we must prepare some parameters.
execute(JoinPoint) - Method in class patterntesting.runtime.log.SequenceGrapher
Trys to log the call of the given excecution joinpoint.
exists(URI) - Static method in class patterntesting.runtime.junit.NetworkTester
Checks, if the given URI exists and is reachable.
exists(URL) - Static method in class patterntesting.runtime.junit.NetworkTester
Checks, if the given URL exists and is reachable.
ExtendedFile - Class in patterntesting.runtime.io
This is the extended version of the File class.
ExtendedFile(File) - Constructor for class patterntesting.runtime.io.ExtendedFile
Instantiates a new extended file.
ExtendedFile(File, File) - Constructor for class patterntesting.runtime.io.ExtendedFile
Instantiates a new extended file.
ExtendedFile(File, String) - Constructor for class patterntesting.runtime.io.ExtendedFile
Instantiates a new extended file.
ExtendedFile(String) - Constructor for class patterntesting.runtime.io.ExtendedFile
Instantiates a new extended file.
ExtendedFile(String, String) - Constructor for class patterntesting.runtime.io.ExtendedFile
Instantiates a new extended file.
ExtendedFile(URI) - Constructor for class patterntesting.runtime.io.ExtendedFile
Instantiates a new extended file.

F

failed() - Method in class patterntesting.concurrent.junit.RecordedStatement
This is the opposite of RecordedStatement.success().
failureRecorded() - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Looks if a failure event was recorded.
Failures - Error in patterntesting.runtime.junit
For the ObjectTester and other tester classes we need a chance to collect the thrown Assertions and throw it at the end of a combined or complex check.
Failures() - Constructor for error patterntesting.runtime.junit.Failures
 
faultyDefaultImplementation(Fraction) - Static method in class patterntesting.sample.AntiPattern
This is a generated method by Eclipse.
FileInputStreamReader - Class in patterntesting.runtime.io
The Class FileInputStreamReader.
FileInputStreamReader(File, Charset) - Constructor for class patterntesting.runtime.io.FileInputStreamReader
Instantiates a new file input stream reader.
FileTester - Class in patterntesting.runtime.junit
The Class FileTester.
find(Class<?>, Method) - Static method in class patterntesting.runtime.util.StackTraceScanner
Find the given method on the stack trace.
find(Class<?>, String) - Static method in class patterntesting.runtime.util.StackTraceScanner
Find the given method on the stack trace.
find(String, String) - Static method in class patterntesting.runtime.util.StackTraceScanner
Find the given method on the stack trace.
find(Signature) - Static method in class patterntesting.runtime.util.StackTraceScanner
Find the given signature on the stack trace.
findClass(String) - Method in class patterntesting.runtime.junit.internal.XrayClassLoader
Find class.
findConstructor(Class<?>) - Static method in class patterntesting.runtime.util.StackTraceScanner
Find the constructor of the given class on the stack trace.
fireTestAssumptionFailed(Failure) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Fire test assumption failed.
fireTestAssumptionFailed(RunNotifier, Description, Exception) - Static method in class patterntesting.runtime.junit.SmokeRunner
In JUnit 4.5 and newer we can use the fireTestAssumptionFailed(..) of the RunNotifier class.
fireTestFailure(Failure) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Fire test failure.
fireTestFinished(Description) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Fire test finished.
fireTestIgnored(Description) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Fire test ignored.
fireTestRunFinished(Result) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Fire test run finished.
fireTestRunStarted(Description) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Fire test run started.
fireTestStarted(Description) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Fire test started.
floatingPointCurrency() - Static method in class patterntesting.sample.AntiPattern
As result of the bill below we expect "0".
ForceThreadSafeCollection - Annotation Type in patterntesting.annotation.concurrent
With this annotation you can mark classes and methods which sould use thread-safe collection classes (i.e. sychnronized collections) only.
format(Enumeration<AjcFileResult>) - Method in class patterntesting.tool.aspectj.PlainFormatter
Format.
format(Enumeration<AjcFileResult>) - Method in interface patterntesting.tool.aspectj.ResultFormatter
Format.
format(Enumeration<AjcFileResult>) - Method in class patterntesting.tool.aspectj.XMLFormatter
Format.
format(Enumeration<AjcFileResult>, Enumeration<AjcFileResult>) - Method in class patterntesting.tool.aspectj.XMLFormatter
Format.
Fraction - Class in patterntesting.sample
This is a litte demo class to show how to use the @UnsupportedOperation annotation.
Fraction(int, int) - Constructor for class patterntesting.sample.Fraction
Instantiates a new fraction.

G

getAccount(int) - Static method in class patterntesting.sample.jfs2010.BankRepository
Gets the account.
getAccountsFor(User) - Static method in class patterntesting.sample.jfs2010.BankRepository
Gets the accounts for.
getActive() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the active.
getActive() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the active.
getActive() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the active.
getAjcOption(String) - Method in class patterntesting.tool.maven.XAjcCompileMojo
Looks in the ajcOptions for the given name.
getAjcOptions() - Method in class patterntesting.tool.maven.XAjcCompileMojo
Gets the ajc compiler options.
getAlarmTime() - Method in class patterntesting.sample.jmx.AlarmClock
Gets the alarm time.
getAlarmTime() - Method in interface patterntesting.sample.jmx.AlarmClockMBean
Gets the alarm time.
getArgAsShortString(Object) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the arg as short string.
getArgAsString(Object) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the arg as string.
getArgs() - Method in class patterntesting.runtime.log.internal.DrawStatement
Gets the args.
getArgsAsShortString(Object[]) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the args as short string.
getArgsAsString() - Method in class patterntesting.runtime.log.internal.DrawStatement
Gets the args as string.
getArgsAsString(Object[]) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the args as string.
getAsLongString(JoinPoint) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the as long string.
getAsObjectName(Class<?>) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets a class as ObjectName.
getAsObjectName(String) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets a class as ObjectName.
getAspectLibraries() - Method in class patterntesting.tool.maven.XAjcCompileMojo
Gets the aspect path.
getAsShortString(JoinPoint) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the as short string.
getAsSignature(Constructor<?>) - Static method in class patterntesting.runtime.util.SignatureHelper
Gets the as signature.
getAsSignature(Method) - Static method in class patterntesting.runtime.util.SignatureHelper
Gets the as signature.
getAsSignature(String) - Static method in class patterntesting.runtime.util.SignatureHelper
Gets the as signature.
getAsString(String, Signature) - Static method in class patterntesting.runtime.util.SignatureHelper
Gets the as string.
getAsString(JoinPoint) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the given joinpoint as string.
getAsString(Signature) - Static method in class patterntesting.runtime.util.SignatureHelper
The difference to Signature.toString() is that in case of a methode or constructor the return type is not part of result.
getAttribute(String, String) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets the attribute.
getAttribute(ObjectName, String) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets the attribute.
getAvg() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the average.
getAvg() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the avg.
getAvg() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the avg.
getAvgActive() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the active average.
getAvgActive() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the avg active.
getAvgActive() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the avg active.
getAvgGlobalActive() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the global active average.
getAvgPrimaryActive() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the primary active average.
getBalance() - Method in class patterntesting.sample.jfs2010.Account
Gets the balance.
getBaseDir(File) - Method in class patterntesting.runtime.io.ExtendedFile
Returns the base of the given file.
getBetterConnectException(ConnectException, String, int) - Static method in class patterntesting.exception.net.SocketExceptionHelper
If the given ConnectException has only the default message ("Connection refused") this message will be enrich the message by the given hostname and port number.
getBetterFileNotFoundException(FileNotFoundException, File) - Static method in class patterntesting.exception.io.IOExceptionHelper
If the cause of a FileNotFoundException is a missing directory you will get a DirNotFoundException as return value.
getBetterIOException(IOException, File) - Static method in class patterntesting.exception.io.IOExceptionHelper
In contrast to the original IOException the file name will be appear alway as absolute file name.
getBetterIOException(IOException, String) - Static method in class patterntesting.exception.io.IOExceptionHelper
Gets the better io exception.
getBetterNoRouteToHostException(NoRouteToHostException, String, int) - Static method in class patterntesting.exception.net.SocketExceptionHelper
If the given NoRouteToHostException has only the default message ("No route to host") this message will be enrich the message by the given hostname and port number.
getBetterNoRouteToHostException(NoRouteToHostException, URLConnection) - Static method in class patterntesting.exception.net.SocketExceptionHelper
If the given NoRouteToHostException has only the default message ("No route to host") this message will be replaced by a better one.
getBetterSocketException(SocketException, URLConnection) - Static method in class patterntesting.exception.net.SocketExceptionHelper
The given SocketException is checked if it contains the host in the error message.
getBetterSqlException(SQLException, String) - Static method in class patterntesting.exception.sql.SqlExceptionHelper
If the default SQLException does not contains the SQL command it will be appended to the original exception message.
getBuildTime() - Method in class patterntesting.runtime.jmx.Info
Gets the builds the time of PatternTesting.
getBuildTime() - Method in interface patterntesting.runtime.jmx.InfoMBean
Gets the builds the time of PatternTesting.
getBytes() - Method in class patterntesting.runtime.util.ArchivEntry
Gets the bytes.
getCallerClass() - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the caller class by examing the stacktrace.
getCallerClass() - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller class by examing the stacktrace.
getCallerClass(Class<?>...) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the caller class by examing the stacktrace.
getCallerClass(Pattern...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller class by examing the stacktrace.
getCallerClass(Pattern[], Class<?>...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller class by examing the stacktrace.
getCallerOf(Class<?>, Method) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given method.
getCallerOf(Class<?>, Method, Pattern...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given method.
getCallerOf(Class<?>, String) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given method.
getCallerOf(Class<?>, String, Pattern...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given method.
getCallerOf(String, String) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given method.
getCallerOf(String, String, Pattern...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given method.
getCallerOf(JoinPoint) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the caller of the given joinpoint.
getCallerOf(JoinPoint, Pattern...) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the caller of the given joinpoint.
getCallerOf(Signature) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given signature.
getCallerOf(Signature, Pattern...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of the given signature.
getCallerOfConstructor(Class<?>) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of a constructor.
getCallerOfConstructor(Class<?>, Pattern...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller of a constructor.
getCallerStackTrace() - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller stack trace of the method or constructor which calls it.
getCallerStackTrace(Pattern...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller stack trace of the method or constructor which calls it.
getCallerStackTrace(Pattern[], Class<?>...) - Static method in class patterntesting.runtime.util.StackTraceScanner
Gets the caller stack trace of the method or constructor which calls it.
getCause() - Method in error patterntesting.runtime.exception.DetailedAssertionError
Gets the cause.
getCause() - Method in exception patterntesting.runtime.exception.NotFoundException
Gets the stored cause.
getChildren() - Method in class patterntesting.runtime.junit.SmokeRunner
Returns the methods that run tests.
getClassAnnotation(JoinPoint, Class<? extends Annotation>) - Static method in class patterntesting.runtime.util.JoinPointHelper
Returns the annotation for the given JoinPoint.
getClassLoader() - Static method in class patterntesting.runtime.util.Environment
Gets the class loader.
getClassName() - Method in class patterntesting.runtime.junit.ClassTester
Gets the class name.
getClasspathFrom(ClassLoader) - Method in enum patterntesting.runtime.monitor.ClassloaderType
Gets the classpath from.
getCloneOf(Cloneable) - Static method in class patterntesting.runtime.junit.CloneableTester
Gets the clone of the given Cloneable object.
getComplianceLevel() - Method in class patterntesting.tool.maven.XAjcCompileMojo
Gets the complianceLevel.
getConstructor() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the constructor.
getCreated() - Method in class patterntesting.sample.CrazyCookie
Do you want to know when the cookie was created?.
getCupOfCoffee() - Method in class patterntesting.sample.dbc.CoffeeAccount
Gets a cup of coffee.
getCurrentClassloaderType() - Static method in enum patterntesting.runtime.monitor.ClassloaderType
Looks, what type of classloader the current thread is using.
getDate() - Static method in class patterntesting.sample.Crash
Gets the date.
getDeclaringType() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the declaring type.
getDeclaringType() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the declaring type.
getDeclaringTypeName() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the declaring type name.
getDeclaringTypeName() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the declaring type name.
getDelegateRunner() - Method in class patterntesting.runtime.junit.ProxyRunner
Gets the Runner defined by @DelegateTo.
getDependencies() - Method in class patterntesting.runtime.junit.ClassTester
Gets the dependencies of the class name.
getDependenciesOf(String) - Static method in class patterntesting.runtime.junit.ClassTester
Gets the dependencies of the given class name.
getDescription() - Method in class patterntesting.concurrent.junit.internal.BackgroundRunner
Gets the description.
getDescription() - Method in class patterntesting.runtime.junit.ProxyRunner
Gets the description.
getDescription(MBeanAttributeInfo) - Method in class patterntesting.runtime.jmx.AnnotatedStandardMBean
Gets the description.
getDescription(MBeanOperationInfo) - Method in class patterntesting.runtime.jmx.AnnotatedStandardMBean
Overrides the default description with the content of a @Description annotation.
getDirNotFoundException(IOException, File) - Static method in class patterntesting.exception.io.IOExceptionHelper
At the moment this is only a simple constructor call.
getElapsedTime() - Method in class patterntesting.runtime.log.LogWatch
Gets the elapsed time from the start call.
getEntry() - Method in class patterntesting.runtime.util.ArchivEntry
Gets the entry.
getErrorMessage() - Method in class patterntesting.tool.aspectj.AjcResult
Gets the error message.
getErrorResults() - Method in class patterntesting.tool.aspectj.AjcErrorHandler
Gets the error results.
getErrors() - Method in error patterntesting.runtime.junit.Failures
Gets the errors.
getErrors() - Method in class patterntesting.tool.aspectj.AjcFileResult
Gets the errors.
getErrors() - Method in class patterntesting.tool.aspectj.AjcXmlTask
Gets the errors.
getErrors() - Method in class patterntesting.tool.aspectj.Logger
Gets the errors.
getExceptionTypes() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the exception types.
getExceptionTypes() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the exception types.
getField(Class<?>, String) - Static method in class patterntesting.runtime.util.ReflectionHelper
Tries to get the wanted field.
getFieldValue(Object, String) - Static method in class patterntesting.runtime.util.ReflectionHelper
If it can it returns the value of the given field.
getFile() - Method in class patterntesting.sample.CrazyCookie
Gets the file.
getFileArchiv() - Method in class patterntesting.runtime.util.ArchivEntry
Gets the file archiv.
getFileName() - Method in class patterntesting.tool.aspectj.AjcFileResult
Gets the file name.
getFilter() - Method in class patterntesting.runtime.junit.SmokeRunner
The ParentRunner allows us no access to the filter.
getFilteredNumber() - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Gets the number of methods which was filtered out.
getFire() - Method in class patterntesting.exception.ExceptionFactory
Only exceptions of this returned type will be fired.
getFire() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Only exceptions of this returned type will be fired.
getFirstAccess() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the first access.
getFirstAccess() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the first access.
getFirstAccess() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the first access.
getFrameworkMethod(Class<?>, String) - Static method in class patterntesting.runtime.junit.internal.JUnitHelper
Returns the given name as FrameworkMethod.
getFreeMemory() - Static method in class patterntesting.runtime.monitor.MemoryGuard
Gets the free memory.
getFreeMemoryAsString() - Static method in class patterntesting.runtime.monitor.MemoryGuard
Gets the free memory as string.
getFreeMemoryInPercent() - Static method in class patterntesting.runtime.monitor.MemoryGuard
Gets the free memory in percent.
getFuture() - Method in class patterntesting.concurrent.junit.JUnitExecutor.Result
Get the (future) result.
getHits() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the hits.
getHits() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the hits.
getHits() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the hits.
getHolder() - Method in class patterntesting.sample.jfs2010.Account
Gets the holder.
getId() - Method in class patterntesting.sample.jfs2010.Account
Gets the number.
getId(Object) - Static method in class patterntesting.runtime.util.ReflectionHelper
Gets the id of the given object.
getIncompatibleResourcepathURIs() - Method in class patterntesting.runtime.monitor.ResourcepathMonitor
Deprecated.
Gets the classpath which contains incompatible resources.
getInetAddresses() - Static method in class patterntesting.runtime.net.Localhost
Returns all local IP addresses.
getInfos() - Method in class patterntesting.runtime.jmx.Info
Gets the properties, but sorted and as map.
getInstance() - Static method in class patterntesting.exception.ExceptionFactory
It is realized as singleton because of the MBean interface.
getInstance() - Static method in class patterntesting.runtime.io.AbstractSerializer
This static method returns an instance of the default serializer.
getInstance() - Static method in class patterntesting.runtime.monitor.ClasspathMonitor
Deprecated.
Yes, it is a Singleton because it offers only some services.
getInstance() - Static method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the single instance of ProfileStatistic.
getInstance() - Static method in class patterntesting.runtime.monitor.ResourcepathMonitor
Deprecated.
Yes, it is a Singleton because it offers only some services.
getInstance() - Static method in class patterntesting.sample.IdGenerator
Gets the single instance of IdGenerator.
getInstance() - Static method in class patterntesting.tool.aspectj.Logger
Gets the single instance of Logger.
getJavaVendor() - Method in class patterntesting.runtime.util.Environment
Gets the java vendor.
getJavaVendor() - Method in class patterntesting.runtime.util.TestEnvironment
Gets the java vendor.
getJavaVersion() - Method in class patterntesting.runtime.util.Environment
Gets the java version.
getJavaVersion() - Method in class patterntesting.runtime.util.TestEnvironment
Gets the java version.
getJdkHome() - Static method in class patterntesting.sample.Config
Gets the JDK home.
getJdkHomeDir() - Static method in class patterntesting.sample.Config
Gets the JDK home dir.
getJpInfo() - Method in class patterntesting.runtime.log.internal.DrawStatement
Gets the jp info.
getJUnit3TestMethods(Class<?>) - Static method in class patterntesting.runtime.junit.SmokeRunner
Here we look after public void methods with "test" as prefix and with no arguments.
getLabel() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the label.
getLabel() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the label.
getLabel() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the label.
getLastAccess() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the last access.
getLastAccess() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the last access.
getLastAccess() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the last access.
getLastProvoked() - Method in class patterntesting.exception.ExceptionFactory
Gets the last provoked exception.
getLastProvoked() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Gets the last provoked exception.
getLastTime() - Method in class patterntesting.runtime.monitor.AbstractProfileMonitor
Gets the last value as time string.
getLastTime() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the last value as time string.
getLastValue() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the last value.
getLastValue() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the last value.
getLastValue() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the last value.
getLevel() - Method in class patterntesting.runtime.log.LogRecorder
 
getLine() - Method in class patterntesting.tool.aspectj.AjcResult
Gets the line.
getLineNumber() - Method in class patterntesting.runtime.io.LineReader
Gets the line number.
getListenerType(String) - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the listener type.
getLoadedClasses() - Method in class patterntesting.runtime.junit.internal.XrayClassLoader
Gets the loaded classed of this classloader here.
getLocalMavenRepositoryDir() - Static method in class patterntesting.runtime.util.Environment
Normally you'll find the local Maven repository at ~/.m2/repository.
getLogStream() - Method in class patterntesting.runtime.log.AbstractLogger
Gets the log stream.
getManifest() - Method in class patterntesting.runtime.jmx.Info
Gets the manifest.
getManifestURI() - Method in class patterntesting.runtime.jmx.Info
Gets the manifest uri.
getManifestURI() - Method in interface patterntesting.runtime.jmx.InfoMBean
Gets the manifest URI.
getMax() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the max.
getMax() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the max.
getMax() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the max.
getMaxActive() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the max active.
getMaxActive() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the max active.
getMaxActive() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the max active.
getMaxAvg() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max avg.
getMaxAvg() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max avg.
getMaxAvgLabel() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max avg label.
getMaxAvgLabel() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max avg label.
getMaxAvgStatistic() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max avg statistic.
getMaxAvgStatistic() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max avg statistic.
getMaxHits() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max hits.
getMaxHits() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max hits.
getMaxHitsLabel() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max hits label.
getMaxHitsLabel() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max hits label.
getMaxHitsStatistic() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max hits statistic.
getMaxHitsStatistic() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max hits statistic.
getMaxMax() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max max.
getMaxMax() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max max.
getMaxMaxLabel() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max max label.
getMaxMaxLabel() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max max label.
getMaxMaxStatistic() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max max statistic.
getMaxMaxStatistic() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max max statistic.
getMaxNumberOfProvoked() - Method in class patterntesting.exception.ExceptionFactory
Gets the maximal number of provoked exceptions (default is Long.MAX_VALUE).
getMaxNumberOfProvoked() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Gets the max number of provoked exceptions.
getMaxNumMonitors() - Method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the max num monitors.
getMaxNumMonitors() - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Gets the max num monitors.
getMaxNumMonitors() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitorFactory
Gets the max num monitors.
getMaxNumMonitors(ProfileMonitor) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the max num monintors.
getMaxSize() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max size.
getMaxSize() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max size.
getMaxTotal() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max total.
getMaxTotal() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max total.
getMaxTotalLabel() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max total label.
getMaxTotalLabel() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max total label.
getMaxTotalStatistic() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the max total statistic.
getMaxTotalStatistic() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the max total statistic.
getMBeanName() - Method in interface patterntesting.runtime.jmx.MBeanRegistry
Returns the MBean name under which this class was registered.
getMBeanName() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the MBean name of the registered ProfileStatistic bean.
getMBeanName(Class<?>) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Converts the class name into a MBean name.
getMBeanName(Class<?>, int) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Converts the class name into a MBean name.
getMBeanName(Object) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets an MBean name for the given object.
getMBeanName(Object, int) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets an MBean name for the given object.
getMBeanName(String) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Because it is not so easy to construct a correct MBean name.
getMemoryAsString(long) - Static method in class patterntesting.runtime.util.Converter
Gets the memory as string.
getMemoryLogMessage() - Static method in class patterntesting.runtime.monitor.MemoryGuard
Gets the memory log message.
getMessage() - Method in error patterntesting.runtime.junit.Failures
Gets the message.
getMethod() - Method in class patterntesting.concurrent.junit.JUnitExecutor.Result
Get the called method.
getMethod() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the method.
getMethod(Class<?>, String, Class<?>...) - Static method in class patterntesting.runtime.util.ReflectionHelper
Gets the method.
getMethod(Class<?>, String, Object...) - Static method in class patterntesting.runtime.util.ReflectionHelper
Gets the method.
getMethodName() - Method in class patterntesting.runtime.junit.internal.ProfiledStatement
May be needed by some subclasses.
getMethodNameOf(Description) - Static method in class patterntesting.runtime.junit.internal.DescriptionUtils
Gets the method name the given description.
getMin() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the min.
getMin() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the min.
getMin() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the min.
getModificationDate() - Method in class patterntesting.runtime.io.Resource
Gets the modification date of the resource.
getModifiers() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the modifiers.
getModifiers() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the modifiers.
getMonitor(String) - Method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the monitor.
getMonitor(String) - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Gets the monitor.
getMonitor(String) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the monitor.
getMonitor(String) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitorFactory
Gets the monitor.
getMonitor(String, ProfileMonitor) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the monitor.
getMonitor(Signature) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
We use now the signature without the return value.
getMonitor(Signature, ProfileMonitor) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the monitor.
getMonitors() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the monitors.
getMonitors() - Method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the monitors.
getMonitors() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the monitors.
getMonitors() - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Gets the monitors (unsorted).
getMonitors() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the monitors (unsorted).
getMonitors() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the monitors.
getMonitors() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitorFactory
Gets the monitors.
getMonitors(String) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the monitors.
getMonitors(ProfileMonitor) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Gets the monitors.
getMonKey() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the mon key.
getName() - Method in class patterntesting.concurrent.junit.ParallelRunner
We will append the sign for parallel ("||") at the end of the description as indication that the tests will run in parallel.
getName() - Method in class patterntesting.concurrent.junit.ParallelSuite
We will append the sign for parallel ("||") at the end of the description as indication that the tests will run in parallel.
getName() - Static method in class patterntesting.runtime.util.Environment
The name of an environment is derived from the classloader.
getName() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the name.
getName() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the name.
getName() - Method in class patterntesting.sample.jfs2010.User
Gets the name.
getNextId() - Method in class patterntesting.sample.IdGenerator
The next id is the old one + 1.
getNumberOfMonitors() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the number of monitors.
getNumberOfProvoked() - Method in class patterntesting.exception.ExceptionFactory
Gets the number of provoked exceptions.
getNumberOfProvoked() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Gets the number of provoked exceptions.
getNumberOfRecords() - Method in class patterntesting.runtime.log.LogRecorder
Gets the number of records.
getObjectInstance(String) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets the object instance.
getObjectInstance(ObjectName) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Gets the object instance.
getObjectName() - Method in interface patterntesting.runtime.jmx.MBeanRegistry
Returns the MBean name under which this class was registered.
getOS() - Static method in class patterntesting.sample.Config
Gets the OS.
getOsArch() - Method in class patterntesting.runtime.util.Environment
Gets the os arch.
getOsArch() - Method in class patterntesting.runtime.util.TestEnvironment
Gets the os arch.
getOsName() - Method in class patterntesting.runtime.util.Environment
Gets the os name.
getOsName() - Method in class patterntesting.runtime.util.TestEnvironment
Gets the os name.
getOsVersion() - Method in class patterntesting.runtime.util.Environment
Gets the os version.
getOsVersion() - Method in class patterntesting.runtime.util.TestEnvironment
Gets the os version.
getParameterAnnotations(JoinPoint) - Static method in class patterntesting.runtime.util.JoinPointHelper
Gets the parameter annotations.
getParameterNames() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the parameter names.
getParameterNames() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the parameter names.
getParameterTypes() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
Gets the parameter types.
getParameterTypes() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the parameter types.
getParent(URI, Class<?>) - Static method in class patterntesting.runtime.util.ClasspathHelper
Gets the parent of the given class.
getParent(URI, String) - Static method in class patterntesting.runtime.util.ClasspathHelper
Don't use @ProfileMe here!
getParentExtendedFile() - Method in class patterntesting.runtime.io.ExtendedFile
Gets the parent as ExtendedFile.
getPhrase() - Method in class patterntesting.sample.PhraseGenerator
Gets the phrase.
getProfileMonitor(Class<?>, String) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Do you want to look for the monitor of a given method?
getProfileMonitor(String) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Do you want to look for the monitor of a given method?
getProfileMonitor(Signature) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Do you want to look for the monitor of a given method?
getProperties() - Method in class patterntesting.runtime.jmx.Info
Gets the properties.
getProperties() - Static method in class patterntesting.sample.Config
Gets the properties.
getProperty(String) - Static method in class patterntesting.sample.Config
This is an example for a method which may return null.
getPropertyStream() - Static method in class patterntesting.sample.Config
Gets the property stream.
getRange() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the range.
getReason() - Method in class patterntesting.runtime.junit.internal.TestOn
Gets the reason.
getRecord() - Method in class patterntesting.runtime.log.LogRecorder
Gets the record.
getReportResults() - Method in class patterntesting.tool.aspectj.Logger
Gets the report results.
getResource() - Static method in class patterntesting.sample.Config
Gets the resource.
getResponseCode() - Method in class patterntesting.sample.WebDog
Gets the response code.
getResult() - Method in class patterntesting.tool.aspectj.AjcXmlTask
This method can be called after AjcXmlTask.execute().
getResultFile() - Method in class patterntesting.tool.aspectj.Logger
Gets the result file.
getResults() - Method in class patterntesting.tool.aspectj.AjcErrorHandler
Gets the results.
getReturnType() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
Gets the return type.
getReturnValue(JoinPoint) - Method in class patterntesting.runtime.log.ObjectPlayer
Gets the return value for the given joinpoint.
getRootMonitor() - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Gets the root monitor.
getRootMonitor() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the root monitor.
getScope() - Method in class patterntesting.exception.ExceptionFactory
Returns the scope for which the exceptions will be thrown.
getScope() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Returns the scope for which the exceptions will be thrown.
getSender() - Method in class patterntesting.runtime.log.internal.DrawStatement
Gets the sender.
getSize() - Method in class patterntesting.runtime.util.ArchivEntry
Gets the size.
getSizeOf(Serializable) - Static method in class patterntesting.runtime.junit.SerializableTester
Gets the size of the given object - this is the number of bytes the given object needs for serialization.
getSizeOf(Class<Serializable>) - Static method in class patterntesting.runtime.junit.SerializableTester
Gets the size of of a newly created object of the given clazz.
getSortedMonitors() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the sorted monitors.
getSource() - Method in class patterntesting.tool.maven.XAjcCompileMojo
Gets the source level.
getStatements() - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Gets the statements.
getStatistics() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Gets the statistics.
getStatistics() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Gets the statistics.
getStdDev() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the std dev.
getTarget() - Method in class patterntesting.runtime.log.internal.DrawStatement
Gets the target.
getTarget() - Method in class patterntesting.tool.maven.XAjcCompileMojo
Gets the target level.
getTestClass() - Method in class patterntesting.concurrent.junit.JUnitExecutor
Gets the test class.
getTestClassOf(Description) - Static method in class patterntesting.runtime.junit.internal.DescriptionUtils
Here we extract the test class from the given descripiton.
getTestMethods() - Method in class patterntesting.runtime.junit.ProxyRunner
Gets the test methods.
getTestMethods() - Method in class patterntesting.runtime.junit.SmokeRunner
Gets the test methods.
getText() - Method in class patterntesting.runtime.log.LogRecorder
Gets the text.
getTime() - Method in class patterntesting.sample.jmx.AlarmClock
Gets the time.
getTime() - Method in interface patterntesting.sample.jmx.AlarmClockMBean
Gets the time.
getTimeAsString(double) - Static method in class patterntesting.runtime.log.LogWatch
Gets the time as string with the corresponding unit.
getTimeAsString(double) - Static method in class patterntesting.runtime.util.Converter
Gets the time as string with the corresponding unit.
getTimeAsString(double, Locale) - Static method in class patterntesting.runtime.log.LogWatch
Gets the time as string with the corresponding unit.
getTimeAsString(double, Locale) - Static method in class patterntesting.runtime.util.Converter
Gets the time as string with the corresponding unit.
getTimeAsString(long) - Static method in class patterntesting.runtime.log.LogWatch
Gets the time as string with the corresponding unit.
getTimeAsString(long) - Static method in class patterntesting.runtime.util.Converter
Gets the time as string with the corresponding unit.
getTimeAsString(long, Locale) - Static method in class patterntesting.runtime.log.LogWatch
Gets the time as string with the corresponding unit.
getTimeInMillis() - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Gets the time difference between first and last recorded event.
getTimeInMillis() - Method in class patterntesting.runtime.log.LogWatch
Gets the elapsed time from the start call in milli seconds.
getTimeInNanos() - Method in class patterntesting.runtime.log.LogWatch
Gets the elapsed time from the start call in nano seconds.
getTimerResolutionInMillis() - Static method in class patterntesting.runtime.util.ThreadUtil
Gets the timer resolution in millis.
getTimeToWaitInMillis() - Method in class patterntesting.sample.jmx.AlarmClock
Gets the time to wait in millis.
getTimeToWaitInMillis() - Method in interface patterntesting.sample.jmx.AlarmClockMBean
Gets the time to wait in millis.
getTmpdir(String) - Static method in class patterntesting.runtime.io.ExtendedFile
Gets the tmpdir.
getTotal() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the total.
getTotal() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the total.
getTotal() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the total.
getType() - Method in class patterntesting.runtime.log.internal.DrawStatement
Gets the type.
getUninitializedNonStaticFields(Object) - Static method in class patterntesting.runtime.util.ReflectionHelper
To get all uninitialized field you can call this method.
getUnits() - Method in class patterntesting.runtime.monitor.JamonMonitor
Gets the units.
getUnits() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Gets the units.
getUnits() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Gets the units.
getUserName() - Method in class patterntesting.runtime.util.Environment
Gets the user name.
getUserName() - Method in class patterntesting.runtime.util.TestEnvironment
Gets the user name.
getVersion() - Method in class patterntesting.runtime.jmx.Info
Gets the version.
getVersion() - Method in interface patterntesting.runtime.jmx.InfoMBean
Gets the version of PatternTesting.
getVersion() - Static method in class patterntesting.sample.Config
Gets the version.
getWarnings() - Method in class patterntesting.tool.aspectj.AjcFileResult
Gets the warnings.
getWriter() - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Gets the writer.
getXlint() - Method in class patterntesting.tool.maven.XAjcCompileMojo
Gets the value of the Xlint flag.
getZipEntry() - Method in class patterntesting.runtime.util.ArchivEntry
Gets the zip entry.
getZipFile() - Method in class patterntesting.runtime.util.ArchivEntry
Gets the zip file.
GuardedBy - Annotation Type in patterntesting.annotation.concurrent
With this annotation you can document the lock which guards the field or method.
GuardInitialization - Annotation Type in patterntesting.runtime.annotation
If your static initialization fails and you get a NoClassDefFoundError use ths anntoation.
guessEncoding(File) - Static method in class patterntesting.tool.html.UmlautEncoder
Guess the encoding of an HTHML file.

H

handleMessage(IMessage) - Method in class patterntesting.tool.aspectj.AjcErrorHandler
Handle message.
hasActor(String) - Method in class patterntesting.runtime.log.internal.DrawStatement
If the given name is part of any stored actor in this statement 'true' will be returned.
hasEntry() - Method in class patterntesting.runtime.util.ArchivEntry
Checks for entry.
hasEqualsDeclared(Class<?>) - Static method in class patterntesting.runtime.junit.ObjectTester
If you want to know if a class (or one of its super classes, except object) has overwritten the equals method you can use this method here.
hasErrors() - Method in error patterntesting.runtime.junit.Failures
Checks for errors.
hasField(Class<?>, String) - Static method in class patterntesting.runtime.util.ReflectionHelper
Returns true if the given class have a field with the given name.
hasField(Object, String) - Static method in class patterntesting.runtime.util.ReflectionHelper
Returns true if the given object have a field with the given name.
hasFiltered() - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Checks if there are some methods filtered out.
hashCode() - Method in class patterntesting.runtime.io.ExtendedFile
Hash code.
hashCode() - Method in class patterntesting.runtime.io.FileInputStreamReader
Hash code.
hashCode() - Method in class patterntesting.runtime.log.internal.DrawStatement
Hash code.
hashCode() - Method in class patterntesting.runtime.log.ObjectPlayer
Hash code.
hashCode() - Method in class patterntesting.runtime.monitor.AbstractProfileMonitor
Hash code.
hashCode() - Method in class patterntesting.runtime.monitor.JamonMonitor
Hash code.
hashCode() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Hash code.
hashCode() - Method in class patterntesting.runtime.util.ArchivEntry
Hash code.
hashCode() - Method in class patterntesting.sample.CrazyCookie
Hash code.
hashCode() - Method in class patterntesting.sample.dbc.CoffeeAccount
Hash code.
hashCode() - Method in class patterntesting.sample.Fraction
Because we overwrite the equals() method we have also to overwrite the hashCode() implementation.
hashCode() - Method in class patterntesting.sample.intro.Rot13
Hash code.
hashCode() - Method in class patterntesting.sample.jfs2010.User
Hash code.
hasId(Class<?>) - Static method in class patterntesting.runtime.util.ReflectionHelper
Checks if the given class has something which looks like an id attribute.
hasId(Object) - Static method in class patterntesting.runtime.util.ReflectionHelper
Checks if the given object has something which looks like an id.
hasListeners() - Method in class patterntesting.runtime.monitor.JamonMonitor
Checks for listeners.
hasMessage() - Method in class patterntesting.runtime.log.internal.DrawStatement
Checks for message.
hasMessageToLeft() - Method in class patterntesting.runtime.log.internal.DrawStatement
A message points to left, if the given senderName was created after the given targetName.
hasMessageToRight() - Method in class patterntesting.runtime.log.internal.DrawStatement
Checks for message to right.
hasReason() - Method in class patterntesting.runtime.junit.internal.TestOn
Checks for reason.
hasReturnType(Signature) - Static method in class patterntesting.runtime.util.SignatureHelper
Returns true if the given signature is a MethodSignature and the return value is not of type 'void'.
hasSameSignatureAs(JoinPoint.StaticPart) - Method in class patterntesting.runtime.log.internal.DrawStatement
Checks if the given parameter has the same origin and source location as the DrawStatement.
hasToStringDefaultImpl(Class<?>) - Static method in class patterntesting.runtime.junit.ObjectTester
Normally you should overwrite the toString() method for better logging and debugging.
hasToStringDefaultImpl(Object) - Static method in class patterntesting.runtime.junit.ObjectTester
Normally you should overwrite the toString() method for better logging and debugging.
hello() - Static method in class patterntesting.patterntesting.check.runtime.junit4.Dummy
This method should fail if it is not (directly or indirectly) called by a test method.
helloWorld() - Static method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
This method should fail if it is not (directly or indirectly) called by a test method.
hide() - Method in annotation type patterntesting.runtime.annotation.Broken
Normally a test would be listed as "ignore" if it is marked as broken.
hide() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
Normally a test would be listed as "ignore" if it is not run.
hide() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
Normally a test would be listed as "ignore" if it is skipped.
host() - Method in annotation type patterntesting.runtime.annotation.Broken
With this attribute you can express that the test is broken for the given host(s).
host() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
With this attribute you can express that the test should be run on the given host(s).
host() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
With this attribute you can express that the test should be skipped on the given host(s).

I

IdGenerator - Class in patterntesting.sample
The Class IdGenerator.
IdGenerator() - Constructor for class patterntesting.sample.IdGenerator
This is a very expensive constructor ;-) It should be called only once by getInstance().
IGNORE_WHITESPACES - Static variable in class patterntesting.runtime.util.StringConverter
Use this converter if you want to ignore white spaces.
IgnoreForSequenceDiagram - Annotation Type in patterntesting.runtime.annotation
With this annotation you can mark classes or methods which should not part of generated sequence diagram.
ImmutableTester - Class in patterntesting.runtime.junit
This is a utility class to test if a class is really (strict) Immuable.
ImmutableTester() - Constructor for class patterntesting.runtime.junit.ImmutableTester
 
included() - Method in annotation type patterntesting.runtime.annotation.DrawSequenceDiagram
By default all classes are included.
info(String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Info.
Info - Class in patterntesting.runtime.jmx
This Info bean is registered as MBean and provides some information about PatternTesting.
Info() - Constructor for class patterntesting.runtime.jmx.Info
Instantiates a new info.
Info(Class<?>) - Constructor for class patterntesting.runtime.jmx.Info
Instantiates a new builds the info.
InfoMBean - Interface in patterntesting.runtime.jmx
This is the interface for the info bean anf for the use of this bean as MBean.
init(Class<?>) - Method in class patterntesting.runtime.monitor.ProfileStatistic
For each constructor and for each method of the given class a ProfileMonitor is initialized.
INSTANCE - Static variable in class patterntesting.runtime.util.Environment
The only instance of this class.
INTEGRATION_TEST - Static variable in class patterntesting.runtime.util.Environment
System property to enable integration tests.
INTEGRATION_TEST_ENABLED - Static variable in class patterntesting.runtime.util.Environment
True if property for integration test is set.
IntegrationTest - Annotation Type in patterntesting.runtime.annotation
This annotation allows you to mark classes which are not really a unit test but a integration test.
IntegrationTestExtension - Class in patterntesting.runtime.junit.extension
Use this IntegrationTestExtension if you want to disable your integration tests for the normal test run.
IntegrationTestExtension() - Constructor for class patterntesting.runtime.junit.extension.IntegrationTestExtension
 
invariant() - Method in interface patterntesting.runtime.dbc.Contract
This method checks if the conditions of the invariants are still true.
invariant() - Method in class patterntesting.sample.dbc.CoffeeAccount
Invariant.
invokeAfters(Object, RecordedStatement) - Method in class patterntesting.concurrent.junit.ParallelRunner
Here we invoke all tearDown() methods.
invokeBefores(Object, RecordedStatement) - Method in class patterntesting.concurrent.junit.ParallelRunner
Here we invoke all setUp() methods.
invokeMethod(Object, String, Object...) - Static method in class patterntesting.runtime.util.ReflectionHelper
Invoke method.
IOExceptionHelper - Class in patterntesting.exception.io
The Class IOExceptionHelper.
IORuntimeException - Exception in patterntesting.runtime.io
If you want to throw an IOException as unchecked exception you can use this exception here.
IORuntimeException(String) - Constructor for exception patterntesting.runtime.io.IORuntimeException
Instantiates a new IO runtime exception.
IORuntimeException(String, Throwable) - Constructor for exception patterntesting.runtime.io.IORuntimeException
Instantiates a new IO runtime exception.
IORuntimeException(String, Throwable, boolean, boolean) - Constructor for exception patterntesting.runtime.io.IORuntimeException
Instantiates a new IO runtime exception.
IORuntimeException(Throwable) - Constructor for exception patterntesting.runtime.io.IORuntimeException
Instantiates a new IO runtime exception.
IOTester - Class in patterntesting.runtime.junit
With the IOTester you can assert if two files have equals content or if two directories have the same structure with equal files.
isActivated() - Method in class patterntesting.sample.jmx.AlarmClock
Checks if is activated.
isActive() - Method in class patterntesting.exception.ExceptionFactory
Checks if is active.
isActive() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Checks if is active.
isActivityTracking() - Method in class patterntesting.runtime.monitor.JamonMonitor
Checks if is activity tracking.
isAllowed(File, String...) - Static method in class patterntesting.sample.AntiPattern
This is the same example as AntiPattern.controlFlag(String, boolean), but now with a list of allowed suffixes.
isAssertsEnabled() - Method in class patterntesting.exception.ExceptionFactory
To see if the (Sun) Java-VM was called with the option "-ea" ("enable asserts") this getter shows it.
isAssertsEnabled() - Method in interface patterntesting.exception.ExceptionFactoryMBean
To see if the (Sun) Java-VM was called with the option "-ea" ("enable asserts") this getter shows it.
isBroken(String, Broken) - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Checks for a given method if the condition of the given Broken annotations is fulfilled.
isDebugEnabled() - Method in class patterntesting.runtime.log.PerfLogger
Checks if is debug enabled.
isEmpty() - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Checks if something was recorded.
isEnabled() - Method in class patterntesting.runtime.monitor.JamonMonitor
Checks if is enabled.
isEnabled(Level, Marker, CharSequence, Throwable) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, Object, Throwable) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object...) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object, Object, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object, Object, Object, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in class patterntesting.runtime.log.LogRecorder
 
isEnabled(Level, Marker, String, Throwable) - Method in class patterntesting.runtime.log.LogRecorder
This check returns true for all levels.
isEnabled(Level, Marker, Message, Throwable) - Method in class patterntesting.runtime.log.LogRecorder
 
isFile() - Method in class patterntesting.runtime.util.ArchivEntry
Checks if is file.
isFromCallJoinpoint() - Method in class patterntesting.runtime.log.internal.DrawStatement
Checks if the DrawStatement is generated from call joinpoint.
isFromExecutionJoinpoint() - Method in class patterntesting.runtime.log.internal.DrawStatement
Checks if the DrawStatement is generated from execution joinpoint.
isGoogleAppEngine() - Static method in class patterntesting.runtime.util.Environment
If we are in a Google App Engine (GAE) environment we will return true here.
isInnerClass(JoinPoint) - Static method in class patterntesting.runtime.util.JoinPointHelper
The Java compiler generates something like OuterClass$InnerClass as name for the inner class.
isInnerClass(Signature) - Static method in class patterntesting.runtime.util.JoinPointHelper
The Java compiler generates something like OuterClass$InnerClass as name for the inner class.
isJamonAvailable() - Static method in class patterntesting.runtime.util.Environment
It is only tested for Jamon 2.4 and 2.7 so we look for it
isNegative() - Method in class patterntesting.sample.Fraction
Checks if is negative.
isOnline(String) - Static method in class patterntesting.runtime.junit.NetworkTester
Checks if the given host is online.
isOnline(String, int) - Static method in class patterntesting.runtime.junit.NetworkTester
Checks if the given host is online.
isOnline(String, int, TimeUnit) - Static method in class patterntesting.runtime.junit.NetworkTester
Checks if the given host is online.
isPrimary() - Method in class patterntesting.runtime.monitor.JamonMonitor
Checks if is primary.
isPropertyEnabled(String) - Static method in class patterntesting.runtime.util.Environment
Returns true if the given property is set as System property and the value of it is not false.
isRegistered(Object) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Checks if is registered.
isRegistered(String) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Checks if is registered.
isRegistered(ObjectName) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Checks if is registered.
isRegisteredAsMBean() - Method in interface patterntesting.runtime.jmx.MBeanRegistry
Was the object registered as MBean?.
isRegisteredAsMBean() - Static method in class patterntesting.runtime.monitor.ClasspathMonitor
Deprecated.
If you want to ask JMX if bean is already registered you can ask the MBeanHelper (if you know the object name) or you can ask this method.
isRegisteredAsMBean() - Static method in class patterntesting.runtime.monitor.ResourcepathMonitor
Deprecated.
If you want to ask JMX if bean is already registered you can use this method.
isRunParallelEnabled() - Method in class patterntesting.concurrent.junit.JUnitExecutor
The default is "true".
isSorted(List<? extends Comparable<? super T>>) - Static method in class patterntesting.sample.dbc.Collections
Checks if is sorted.
isStatic(Field) - Static method in class patterntesting.runtime.util.ReflectionHelper
Checks if the given field is static.
isSupported(String) - Static method in enum patterntesting.runtime.monitor.ClassloaderType
Checks if the given classloader is known and therefore supported.
isTestCaseClass(TestClass) - Static method in class patterntesting.runtime.junit.internal.ProfiledStatement
Checks if is test case class.
isValid(Object, Validator) - Static method in class patterntesting.runtime.util.AssertArg
Checks if the argument is valid.
isValid(Validator) - Static method in class patterntesting.runtime.util.AssertArg
Checks if the argument is valid.
isValueGiven() - Method in class patterntesting.runtime.junit.internal.TestOn
Checks if is value given.
isWeb() - Method in enum patterntesting.runtime.monitor.ClassloaderType
Here you can ask if the classloader type is a web classloader or not.
isWeblogicServer() - Static method in class patterntesting.runtime.util.Environment
If we are inside a Weblogic Server (WLS) we will return true here.

J

JamonMonitor - Class in patterntesting.runtime.monitor
This is a thin wrapper for com.jamonapi.Monitor
JamonMonitor(Monitor) - Constructor for class patterntesting.runtime.monitor.JamonMonitor
Instantiates a new monitor.
JamonMonitorFactory - Class in patterntesting.runtime.monitor
This is a thin wrapper around com.jamonapi.MonitorFactory to keep the ProfileStatistic class clean from com.jamonapi dependencies.
JamonMonitorFactory(SimpleProfileMonitor) - Constructor for class patterntesting.runtime.monitor.JamonMonitorFactory
Instantiates a new jamon monitor factory.
javaVendor() - Method in annotation type patterntesting.runtime.annotation.Broken
The test is broken for a special vendor VM?
javaVendor() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
You want the test to be run on a special vendor VM?
javaVendor() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
You want the test to be skipped on a special vendor VM?
javaVersion() - Method in annotation type patterntesting.runtime.annotation.Broken
You want to mark the test as broken on a special version of the VM, e.g.
javaVersion() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
You want the test to be run on a special version of the VM, e.g. on version "1.6.0_17" because you know that on this version there is a bug that caused your test not to work?
javaVersion() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
You want the test to be skipped on a special version of the VM, e.g. on version "1.6.0_17" because you know that on this version there is a bug that caused your test not to work?
JDK - patterntesting.runtime.monitor.ClassloaderType
The default classloader of Open JDK (since Java 9).
JoinPointHelper - Class in patterntesting.runtime.util
The Class JoinPointHelper.
JUnit4Executor - Class in patterntesting.concurrent.junit
This class is responsible for starting a JUnit4 test method.
JUnit4Executor(Class<?>) - Constructor for class patterntesting.concurrent.junit.JUnit4Executor
Instantiates a new j unit4 executor.
JUnitExecutor - Class in patterntesting.concurrent.junit
This class is responsible for starting a JUnit test method.
JUnitExecutor(Class<?>) - Constructor for class patterntesting.concurrent.junit.JUnitExecutor
Instantiates a new j unit executor.
JUnitExecutor.Result - Class in patterntesting.concurrent.junit
The Class Result.
JUnitHelper - Class in patterntesting.runtime.junit.internal
This is a helper class which contains some static helper methods for JUnit.

L

LazyObjectRecorder - Class in patterntesting.runtime.log
In contradiction to ObjectRecorder this class only records joinpoints and return values if they are different from the last record.
LazyObjectRecorder() - Constructor for class patterntesting.runtime.log.LazyObjectRecorder
Instantiates a new lazy object recorder.
LazyObjectRecorder(File) - Constructor for class patterntesting.runtime.log.LazyObjectRecorder
Instantiates a new lazy object recorder.
LazyObjectRecorder(OutputStream) - Constructor for class patterntesting.runtime.log.LazyObjectRecorder
Instantiates a new lazy object recorder.
level() - Method in annotation type patterntesting.runtime.annotation.SmokeTest
You are free to define your only levels here.
LineReader - Class in patterntesting.runtime.io
If extends BufferedReader but provides you the line number in which the reader is reading.
LineReader(Reader) - Constructor for class patterntesting.runtime.io.LineReader
Instantiates a new line reader.
LineReader(Reader, int) - Constructor for class patterntesting.runtime.io.LineReader
Instantiates a new line reader.
load(File) - Method in class patterntesting.runtime.io.AbstractSerializer
Loads a single ojbect from the given file.
load(File) - Method in class patterntesting.runtime.log.ObjectPlayer
If you want to use an always recored object log you can load it with this method.
load(File) - Static method in class patterntesting.sample.CrazyCookie
Load.
load(InputStream) - Method in class patterntesting.runtime.io.AbstractSerializer
Loads a single ojbect from the given stream.
load(InputStream) - Method in class patterntesting.runtime.log.ObjectPlayer
If you want to use an always recorded object log you can load it with this method.
loadClass(String) - Method in class patterntesting.runtime.junit.internal.XrayClassLoader
Load class.
loadClass(String, boolean) - Method in class patterntesting.runtime.junit.internal.XrayClassLoader
Loads the class with the given binary name.
loadProperties(InputStream) - Static method in class patterntesting.runtime.util.Environment
Loads the properties from the given InputStream and provides them as system properties.
loadProperties(String) - Static method in class patterntesting.runtime.util.Environment
Loads the properties from the classpath and provides them as system properties.
Localhost - Class in patterntesting.runtime.net
This (static) class represents your local host.
log - Static variable in class patterntesting.sample.Crash
this initialization will crash.
log(int, String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Log.
log(JoinPoint, Object) - Method in class patterntesting.runtime.log.LazyObjectRecorder
Both things are logged with this method: the call of a method (joinPoint) and the return value of this method.
log(JoinPoint, Object) - Method in class patterntesting.runtime.log.ObjectRecorder
Both things are logged with this method: the call of a method (joinPoint) and the return value of this method.
LOG_LEVEL_DEBUG - Static variable in class patterntesting.runtime.log.SimpleLog
"Debug" level logging.
LOG_LEVEL_ERROR - Static variable in class patterntesting.runtime.log.SimpleLog
"Error" level logging.
LOG_LEVEL_FATAL - Static variable in class patterntesting.runtime.log.SimpleLog
"Fatal" level logging.
LOG_LEVEL_INFO - Static variable in class patterntesting.runtime.log.SimpleLog
"Info" level logging.
LOG_LEVEL_TRACE - Static variable in class patterntesting.runtime.log.SimpleLog
"Trace" level logging.
LOG_LEVEL_WARN - Static variable in class patterntesting.runtime.log.SimpleLog
"Warn" level logging.
logAndReturnNull(String) - Static method in class patterntesting.sample.AntiPattern
Instead of return 'null' as value it is better to throw an exception and let the caller decide what to do.
logAndThrow(String) - Static method in class patterntesting.sample.AntiPattern
This is one of the most annoying error-handling antipatterns.
logFreeMemory(long) - Static method in class patterntesting.runtime.monitor.MemoryGuard
Every x milliseconds the free memory is checked and printed into the log (according the log level).
Logger - Class in patterntesting.tool.aspectj
The Class Logger.
login(String, String) - Static method in class patterntesting.sample.jfs2010.LoginService
This is an example of a login method.
login1(String, String) - Static method in class patterntesting.sample.jfs2010.LoginService
This is an example of a (bad designed) login method.
LoginService - Class in patterntesting.sample.jfs2010
The Class LoginService.
logMemory() - Static method in class patterntesting.runtime.monitor.MemoryGuard
Log memory.
logMemory(Logger) - Static method in class patterntesting.runtime.monitor.MemoryGuard
Logs a message if free memory falls down below x% of maximal heap size where x is: x < 1%: logs a fatal message 1% <= x < 2%: logs an error 1% <= x < 10%: logs a warning 10% <= x < 20%: logs an info message 20% <= x < 50%: logs debug message x >= 50%: tracing
logMessage(String, Level, Marker, Message, Throwable) - Method in class patterntesting.runtime.log.LogRecorder
The message is logged and recorded here.
logMessage(Logger) - Method in class patterntesting.sample.WebDog
One of the requirement for our WebDog is to log the following messages (remember, it is only an example): responseCode=303 too much traffic to url responsCode=404 url has Alzheimer For testing and for the use of @PublicForTesting it is now public.
logPTViolation(SourceLocation, String) - Method in class patterntesting.tool.aspectj.Logger
Log pt violation.
LogRecorder - Class in patterntesting.runtime.log
The Class LogRecorder can only record log messages.
LogRecorder() - Constructor for class patterntesting.runtime.log.LogRecorder
 
LogRuntimeException - Annotation Type in patterntesting.runtime.annotation
You want to see a RuntimeException in the log if it happens?
logStatement(Statement) - Method in class patterntesting.concurrent.junit.ParallelRunner
We want to see to log the statement with our logger.
logStatement(Statement) - Method in class patterntesting.runtime.junit.SmokeRunner
We will give a subclass (like e.g.
logStatistic() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Log statistic.
logStatistic() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Log statistic.
LogThrowable - Annotation Type in patterntesting.runtime.annotation
You want to see an Exception or Error in the log if it happens?
LogWatch - Class in patterntesting.runtime.log
The Class LogWatch is a simple stop watch to be able to measure and log code segments which need a little bit longer.
LogWatch() - Constructor for class patterntesting.runtime.log.LogWatch
Instantiates a new log watch.
LOWER_CASE - Static variable in class patterntesting.runtime.util.StringConverter
Use this converter if you want to convert the string into lower case.

M

main(String[]) - Static method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
This method is not allowed to call Dummy.hello(), so this method should fail.
main(String[]) - Static method in class patterntesting.sample.AntiPattern
The main method.
main(String...) - Static method in class patterntesting.sample.Bomb
The main method.
main(String[]) - Static method in class patterntesting.sample.dbc.CoffeeAccount
The main method.
main(String[]) - Static method in class patterntesting.sample.jmx.AlarmClock
The main method.
main(String...) - Static method in class patterntesting.sample.MemoryEater
The main method.
main(String...) - Static method in class patterntesting.sample.WebDog
The main method.
main(String[]) - Static method in class patterntesting.sample.World
The main method must not be marked with @SuppressSystemOutWarning.
main(String[]) - Static method in class patterntesting.tool.html.UmlautEncoder
You can encode a single file (if the first argument is a file) or a whole directory tree (if the first argument is a directory).
MapTester - Class in patterntesting.runtime.junit
This class asserts (among other things) that two maps are equals.
mark(int) - Method in class patterntesting.runtime.io.FileInputStreamReader
Mark.
markSupported() - Method in class patterntesting.runtime.io.FileInputStreamReader
Mark supported.
matches() - Method in class patterntesting.runtime.junit.internal.TestOn
If one of the attributes matches true will returned.
matches(Class<?>) - Method in class patterntesting.runtime.util.regex.TypePattern
Matches.
matches(Object) - Method in class patterntesting.runtime.util.regex.TypePattern
Matches.
matches(String) - Static method in class patterntesting.runtime.net.Localhost
Here we try to get all network addresses to compare it against the given hosts.
matches(String) - Method in class patterntesting.runtime.util.regex.TypePattern
Matches.
matches(String[]) - Static method in class patterntesting.runtime.net.Localhost
Here we try to get all network addresses to compare it against the given hosts.
matchesOneOf(String[]) - Static method in class patterntesting.runtime.util.Environment
Looks if one of the given properties matches a system property.
MayBeNull - Annotation Type in patterntesting.annotation.check.runtime
If one of an argument of a method can be null you can use this annotation to mark it.
MayReturnNull - Annotation Type in patterntesting.annotation.check.runtime
Use this annotation to mark methods which can return null values.
MBeanHelper - Class in patterntesting.runtime.jmx
This class simplifies the use of JMX and MBeans a little bit.
MBeanRegistry - Interface in patterntesting.runtime.jmx
To avoid confusion with the existing MBeanRegistration interface from javax.management this interface is now called MBeanRegistry (although there are too many negative associations with the word "registry").
MemoryEater - Class in patterntesting.sample
This class eats memory, i.e. it uses more and more memory when it's started, It is an example for the use of the MemoryGuard class.
MemoryEater() - Constructor for class patterntesting.sample.MemoryEater
We want to log all 100 ms the free memory.
MemoryGuard - Class in patterntesting.runtime.monitor
The Class MemoryGuard.
message(Object, Object, JoinPoint.StaticPart, Object[]) - Method in class patterntesting.runtime.log.SequenceGrapher
Logs the call of a method to the generated sequence diagram.
message(Object, JoinPoint) - Method in class patterntesting.runtime.log.SequenceGrapher
Logs the call of a method to the generated sequence diagram.
message(JoinPoint) - Method in class patterntesting.runtime.log.SequenceGrapher
Logs the call of a method to the generated sequence diagram.
MESSAGE - patterntesting.runtime.log.internal.DrawType
The message.
methodBlock(FrameworkMethod) - Method in class patterntesting.concurrent.junit.ParallelRunner
We will return here the statement recorded earlier.
methodBlock(FrameworkMethod) - Method in class patterntesting.runtime.junit.SmokeRunner
Creates a RunStatement for the given test method.
MethodSignatureImpl - Class in patterntesting.runtime.util.reflect
There is a class org.aspectj.runtime.reflect.MethodSignatureImpl in aspectjrt.jar.
MethodSignatureImpl(Method) - Constructor for class patterntesting.runtime.util.reflect.MethodSignatureImpl
Instantiates a new method signature impl.
ModelInitializationError - Exception in patterntesting.runtime.junit.internal
This error introduced for the support of JUnit 4.7 because in this version the used constructor is missing.
ModelInitializationError(Throwable) - Constructor for exception patterntesting.runtime.junit.internal.ModelInitializationError
Instantiates a new model initialization error.

N

NestedZipFile - Class in patterntesting.runtime.util
This class provides more details about the underlying ZIP file as the original ZipFile class.
NestedZipFile(File) - Constructor for class patterntesting.runtime.util.NestedZipFile
Instantiates a new detailed zip file.
NestedZipFile(File, int) - Constructor for class patterntesting.runtime.util.NestedZipFile
Instantiates a new detailed zip file.
NestedZipFile(File, int, Charset) - Constructor for class patterntesting.runtime.util.NestedZipFile
Instantiates a new detailed zip file.
NestedZipFile(File, Charset) - Constructor for class patterntesting.runtime.util.NestedZipFile
Instantiates a new detailed zip file.
NestedZipFile(String) - Constructor for class patterntesting.runtime.util.NestedZipFile
Instantiates a new detailed zip file.
NestedZipFile(String, Charset) - Constructor for class patterntesting.runtime.util.NestedZipFile
Instantiates a new detailed zip file.
NET - patterntesting.runtime.monitor.ClassloaderType
The URLClassLoader where many appserver are based on.
NetworkTester - Class in patterntesting.runtime.junit
With the NetworkTester you can assert if a host is online or offline.
neverCalled() - Method in class patterntesting.sample.AntiPattern
This is an example of a method which is never called.
normalize() - Method in class patterntesting.runtime.io.ExtendedFile
Normalizes a file, analogous to FilenameUtils.normalize(String).
normalize(File) - Static method in class patterntesting.runtime.io.ExtendedFile
Normalizes a file, analogous to FilenameUtils.normalize(String).
NotFoundException - Exception in patterntesting.runtime.exception
If you did not find a result and want to avoid 'null" as return value you can throw this exception here.
NotFoundException(Object) - Constructor for exception patterntesting.runtime.exception.NotFoundException
Instantiates a new not found exception.
NotFoundException(String) - Constructor for exception patterntesting.runtime.exception.NotFoundException
Instantiates a new not found exception.
NotFoundException(String, Throwable) - Constructor for exception patterntesting.runtime.exception.NotFoundException
Instantiates a new not found exception.
NotFoundException(Throwable) - Constructor for exception patterntesting.runtime.exception.NotFoundException
Instantiates a new not found exception.
NotYetImplemented - Annotation Type in patterntesting.runtime.annotation
Eclipse and other tools will generate default implementation for you if you want to implement an interface.
NULL - Static variable in class patterntesting.runtime.log.internal.DrawStatement
The Constant NULL.
NULL_DATE - Static variable in class patterntesting.runtime.NullConstants
You need a null date and don't want to use null?
NULL_EXCEPTION - Static variable in class patterntesting.runtime.NullConstants
You need a null exception and don't want to use null?
NULL_FILE - Static variable in class patterntesting.runtime.NullConstants
You need a null file and don't want to use null?
NULL_OBJECT - Static variable in class patterntesting.runtime.NullConstants
If you have a method with a list of arguments where some arguments are optional you can provide the method with different signatures (good idea, but not always feasible) admit null arguments and handle it in the methode (not a good idea because it can happen accidentally) use this special NULL_OBJECT object to mark an argument as optional Unfortunately this works only for object as argument.
NULL_STRING - Static variable in class patterntesting.runtime.NullConstants
You need a null string and don't want to use null?
NULL_THROWABLE - Static variable in class patterntesting.runtime.NullConstants
You need a null throwable and don't want to use null?
NULL_URI - Static variable in class patterntesting.runtime.NullConstants
You need a null URI and don't want to use null?
NullArgsAllowed - Annotation Type in patterntesting.annotation.check.runtime
Use this annotation to mark methods which are allowed to have null values as argument.
NullConstants - Class in patterntesting.runtime
This class contains some constants (like a NULL_STRING) as constant.
nullFlag(Boolean) - Static method in class patterntesting.sample.AntiPattern
Null flags are variable where the value 'null' stands for an exceptional behaviour.

O

OBJECT - patterntesting.runtime.log.internal.DrawType
The object.
ObjectComparator - Class in patterntesting.runtime.util
Compares two objects using their string representation.
ObjectComparator() - Constructor for class patterntesting.runtime.util.ObjectComparator
 
ObjectPlayer - Class in patterntesting.runtime.log
This is the counterpart to ObjectRecorder class.
ObjectPlayer(File) - Constructor for class patterntesting.runtime.log.ObjectPlayer
Instantiates a new object player.
ObjectRecorder - Class in patterntesting.runtime.log
This class allows you to record objects.
ObjectRecorder() - Constructor for class patterntesting.runtime.log.ObjectRecorder
Instantiates a new object recorder.
ObjectRecorder(File) - Constructor for class patterntesting.runtime.log.ObjectRecorder
Instantiates a new object logger.
ObjectRecorder(OutputStream) - Constructor for class patterntesting.runtime.log.ObjectRecorder
Instantiates a new object logger to the given stream.
ObjectTester - Class in patterntesting.runtime.junit
This is a utility class to check some important methods of a class like the Object.equals(Object) or Object.hashCode() method.
of(SocketException, String, int) - Static method in exception patterntesting.exception.net.DetailedSocketException
The given SocketException is checked if it contains the host in the error message.
OnlyForTesting - Annotation Type in patterntesting.annotation.check.ct
With this annotation you can mark methods which should be only called for testing but *never* from any other methods.
osArch() - Method in annotation type patterntesting.runtime.annotation.Broken
The test is broken only for the Intel architecture?
osArch() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
You want the test only to be run on the Intel architecture?
osArch() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
You want the test only to be skipped for the Intel architecture?
osName() - Method in annotation type patterntesting.runtime.annotation.Broken
Should a test be skipped on a single platform e.g. for Linux?
osName() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
Should a test be run only on a single platform e.g. on Linux?
osName() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
Should a test be skipped on a single platform e.g. for Linux?
osVersion() - Method in annotation type patterntesting.runtime.annotation.Broken
The test breaks only on a special version of the operating system?
osVersion() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
You want the test only to be run on a special version of the operating system?
osVersion() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
You want the test only to be skipped for a special version of the operating system?

P

packageToResource(String) - Static method in class patterntesting.runtime.util.Converter
Converts a package name (e.g.
ParallelBuilder - Class in patterntesting.concurrent.junit.internal
This builder will return an Runner which start the JUnit test in background, records the result and presents it, when they are needed (http://hwellmann.blogspot.com/2009/12/running-parameterized-junit-tests-in.html would be another approach to do it).
ParallelBuilder(RunnerBuilder) - Constructor for class patterntesting.concurrent.junit.internal.ParallelBuilder
Instantiates a new parallel builder.
ParallelProxyRunner - Class in patterntesting.concurrent.junit
This is the parallel version of the ProxyRunner.
ParallelProxyRunner(Class<?>) - Constructor for class patterntesting.concurrent.junit.ParallelProxyRunner
Instantiates a new parallel proxy runner.
ParallelRunner - Class in patterntesting.concurrent.junit
Implements the JUnit 4 standard test case class model, as defined by the annotations in the org.junit package.
ParallelRunner(Class<?>) - Constructor for class patterntesting.concurrent.junit.ParallelRunner
Creates a ParallelRunner to run klass methods in parallel.
ParallelSuite - Class in patterntesting.concurrent.junit
The Class ParallelSuite can be used if you want to run the JUnit test classes in parallel.
ParallelSuite(Class<?>, Class<?>[]) - Constructor for class patterntesting.concurrent.junit.ParallelSuite
Instantiates a new parallel suite.
ParallelSuite(Class<?>, List<Runner>) - Constructor for class patterntesting.concurrent.junit.ParallelSuite
Instantiates a new parallel suite.
ParallelSuite(Class<?>, RunnerBuilder) - Constructor for class patterntesting.concurrent.junit.ParallelSuite
Instantiates a new parallel suite.
ParallelSuite(RunnerBuilder, Class<?>[]) - Constructor for class patterntesting.concurrent.junit.ParallelSuite
Instantiates a new parallel suite.
ParallelSuite(RunnerBuilder, Class<?>, Class<?>[]) - Constructor for class patterntesting.concurrent.junit.ParallelSuite
Instantiates a new parallel suite.
PATTERNTESTING - Static variable in class patterntesting.runtime.jmx.Info
Info about PatternTesting itself.
patterntesting.annotation.check.ct - package patterntesting.annotation.check.ct
This package contains the annotations for PatternTesting Check-CT.
patterntesting.annotation.check.runtime - package patterntesting.annotation.check.runtime
This package contains the annotations for PatternTesting Check-RT.
patterntesting.annotation.concurrent - package patterntesting.annotation.concurrent
This package contains the annotations for PatternTesting Concurrent.
patterntesting.annotation.exception - package patterntesting.annotation.exception
This package contains the annotations for PatternTesting Exception.
patterntesting.check.runtime - package patterntesting.check.runtime
 
patterntesting.concurrent - package patterntesting.concurrent
This is the top level package of PatternTesting Concurrent.
patterntesting.concurrent.junit - package patterntesting.concurrent.junit
Here you find the ParallelRunner for JUnit.
patterntesting.concurrent.junit.internal - package patterntesting.concurrent.junit.internal
 
patterntesting.exception - package patterntesting.exception
This is the top level package of PatternTesting Exception.
patterntesting.exception.io - package patterntesting.exception.io
Support for IO Exceptions.
patterntesting.exception.net - package patterntesting.exception.net
 
patterntesting.exception.sql - package patterntesting.exception.sql
 
patterntesting.exception.xml - package patterntesting.exception.xml
Some support for XML handling.
patterntesting.patterntesting.check.runtime.junit4 - package patterntesting.patterntesting.check.runtime.junit4
 
patterntesting.runtime - package patterntesting.runtime
This is the top level package of PatternTesting Runtime.
patterntesting.runtime.annotation - package patterntesting.runtime.annotation
This package contains the annotations for PatternTesting Runtime itself.
patterntesting.runtime.dbc - package patterntesting.runtime.dbc
This package is reserved for "Design By Contract" (DbC).
patterntesting.runtime.exception - package patterntesting.runtime.exception
This package contains some useful exceptions.
patterntesting.runtime.io - package patterntesting.runtime.io
This package contains some IO helpers and some "better" implementations.
patterntesting.runtime.jmx - package patterntesting.runtime.jmx
This is the package for JMX support.
patterntesting.runtime.junit - package patterntesting.runtime.junit
Here you find the some Tester which can be used for testing with JUnit.
patterntesting.runtime.junit.extension - package patterntesting.runtime.junit.extension
 
patterntesting.runtime.junit.internal - package patterntesting.runtime.junit.internal
These are classes for internal use.
patterntesting.runtime.log - package patterntesting.runtime.log
Here you find some support for logging.
patterntesting.runtime.log.internal - package patterntesting.runtime.log.internal
This package is only intended for internal use.
patterntesting.runtime.monitor - package patterntesting.runtime.monitor
This package provides some monitors like the ProfileMonitor.
patterntesting.runtime.net - package patterntesting.runtime.net
Contains some network support.
patterntesting.runtime.util - package patterntesting.runtime.util
This is the package for some utility classes.
patterntesting.runtime.util.reflect - package patterntesting.runtime.util.reflect
This is the package for some reflection utilities.
patterntesting.runtime.util.regex - package patterntesting.runtime.util.regex
 
patterntesting.sample - package patterntesting.sample
 
patterntesting.sample.animal - package patterntesting.sample.animal
 
patterntesting.sample.dbc - package patterntesting.sample.dbc
 
patterntesting.sample.intro - package patterntesting.sample.intro
The classes of this package gives you an introduction how PatternTesting can bet used to support testing.
patterntesting.sample.jfs2010 - package patterntesting.sample.jfs2010
This is a modified bank example which was originally presented on JFS 2010 (Java Forum Stuttgart).
patterntesting.sample.jmx - package patterntesting.sample.jmx
 
patterntesting.tool.aspectj - package patterntesting.tool.aspectj
This package contains some tools support for the AspectJ compiler and Ant.
patterntesting.tool.html - package patterntesting.tool.html
 
patterntesting.tool.maven - package patterntesting.tool.maven
 
payIn(int) - Method in class patterntesting.sample.dbc.CoffeeAccount
Pay in.
Penguin - Class in patterntesting.sample.animal
The Class Penguin.
Penguin(String) - Constructor for class patterntesting.sample.animal.Penguin
Instantiates a new penguin.
PerfLogger - Class in patterntesting.runtime.log
This class is a kind of performance logger to be able to log the execution times of methods or code segments which may need a little bit longer.
PerfLogger() - Constructor for class patterntesting.runtime.log.PerfLogger
Instantiates a new perf logger.
PerfLogger(Class<?>) - Constructor for class patterntesting.runtime.log.PerfLogger
Instantiates a new perf logger.
PerfLogger(Logger) - Constructor for class patterntesting.runtime.log.PerfLogger
Instantiates a new perf logger.
PhraseGenerator - Class in patterntesting.sample
This is a example class for the use the IO classes like Reader or Writer.
PhraseGenerator() - Constructor for class patterntesting.sample.PhraseGenerator
 
ping() - Method in class patterntesting.sample.WebDog
Ping.
PLACEHOLDER_OBJECT - patterntesting.runtime.log.internal.DrawType
The place holder.
PlainFormatter - Class in patterntesting.tool.aspectj
The Class PlainFormatter.
PlainFormatter() - Constructor for class patterntesting.tool.aspectj.PlainFormatter
 
playTest(String, Object) - Method in class patterntesting.concurrent.junit.JUnitExecutor
Replays the given test i.e. it looks for the test result and throws an exception if the found test has thrown one.
PLEASE_STOP - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Please stop.
pleaseStop() - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Please stop.
printBye() - Static method in class patterntesting.sample.World
This is an example of a methode which is never called.
printStackTrace() - Static method in class patterntesting.sample.AntiPattern
This is an example for an auto-generated try-catch block using e.printStackTrace() for logging.
ProfiledStatement - Class in patterntesting.runtime.junit.internal
The ProfiledStatement measures also the time the different setUp() and tearDown() methods need.
ProfiledStatement(TestClass, FrameworkMethod) - Constructor for class patterntesting.runtime.junit.internal.ProfiledStatement
The default constructor for this class if the call of the frameworkMethod is ok.
ProfileMe - Annotation Type in patterntesting.runtime.annotation
You want to measure a method or constructor?
ProfileMonitor - Interface in patterntesting.runtime.monitor
The Interface ProfileMonitor.
ProfileMonitorFactory - Class in patterntesting.runtime.monitor
This factory abstracts the differences between the monitor based on JAMon and the simple monitor provided by PatternTesting itself.
ProfileMonitorFactory(SimpleProfileMonitor) - Constructor for class patterntesting.runtime.monitor.ProfileMonitorFactory
Instantiates a new monitor factory.
ProfileStatistic - Class in patterntesting.runtime.monitor
This is constructed as a thin layer around com.jamonapi.MonitorFactory for the needs of patterntesting.
ProfileStatistic(String) - Constructor for class patterntesting.runtime.monitor.ProfileStatistic
Instantiates a new profile statistic.
ProfileStatisticMBean - Interface in patterntesting.runtime.monitor
The Interface ProfileStatisticMBean.
property() - Method in annotation type patterntesting.runtime.annotation.Broken
You have some tests that are broken if some proxy properties are set?
property() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
You have some tests that runs only if you are online?
property() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
You have some tests that does not run when you are offline?
provoke(Class<? extends Throwable>) - Method in class patterntesting.exception.ExceptionFactory
Be careful - you can provoke any Exception with the method without the need to declare it with a throws statement.
provoke(Class<? extends Throwable>) - Static method in class patterntesting.runtime.util.ExceptionThrower
Be careful - you can provoke any Exception with the method without the need to declare it with a throws statement.
provokeFor(JoinPoint) - Method in class patterntesting.exception.ExceptionFactory
This methods throws one of the exception which is possible for the given joinpoint.
provokeOneOf(Class<? extends Throwable>[]) - Method in class patterntesting.exception.ExceptionFactory
This method throws the first given Throwable type.
ProxyRunner - Class in patterntesting.runtime.junit
This is a JUnit runner which delegates the call to one (or perhaps several) other JUnit runners.
ProxyRunner(Class<?>) - Constructor for class patterntesting.runtime.junit.ProxyRunner
Instantiates a new proxy runner.
PublicForTesting - Annotation Type in patterntesting.annotation.check.runtime
With this annotation you can mark methods which are public for testing but which should *never* be called from outside, but only from test methods or from the class itself.
PublicForTesting4Test - Class in patterntesting.patterntesting.check.runtime.junit4
The Class PublicForTestingTest.
PublicForTesting4Test() - Constructor for class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
 

R

read() - Method in class patterntesting.runtime.io.FileInputStreamReader
Read.
read() - Method in class patterntesting.runtime.io.LineReader
Read.
read(char[]) - Method in class patterntesting.runtime.io.FileInputStreamReader
Read.
read(char[], int, int) - Method in class patterntesting.runtime.io.FileInputStreamReader
Read.
read(char[], int, int) - Method in class patterntesting.runtime.io.LineReader
Read.
read(CharBuffer) - Method in class patterntesting.runtime.io.FileInputStreamReader
Read.
readFrom(File) - Method in class patterntesting.sample.PhraseGenerator
Read from.
readFromRandomAccessFile(File) - Method in class patterntesting.sample.PhraseGenerator
Read from a RandomAccessFile.
readFromStream(File) - Method in class patterntesting.sample.PhraseGenerator
You should not use an InputStream to read a String from a file.
readLine() - Method in class patterntesting.runtime.io.LineReader
Read line.
ready() - Method in class patterntesting.runtime.io.FileInputStreamReader
Ready.
RecordedStatement - Class in patterntesting.concurrent.junit
This class is used by the ParallelRunner to run the statements in parallel and to record it for later evaluation.
RecordedStatement(TestClass, FrameworkMethod) - Constructor for class patterntesting.concurrent.junit.RecordedStatement
The default constructor for this class if the call of the frameworkMethod was ok.
RecordedStatement(TestClass, FrameworkMethod, Throwable) - Constructor for class patterntesting.concurrent.junit.RecordedStatement
The default constructor for this class if the call of the frameworkMethod failed with an exception.
RecordingRunNotifier - Class in patterntesting.concurrent.junit.internal
This is a RunNotifier which records the single fire events.
RecordingRunNotifier() - Constructor for class patterntesting.concurrent.junit.internal.RecordingRunNotifier
 
RecordingRunNotifier.FireEvent - Enum in patterntesting.concurrent.junit.internal
The Enum FireEvent.
RecordingRunNotifier.FireRecord - Class in patterntesting.concurrent.junit.internal
Class for the recorded events and arguments.
recordResults() - Method in class patterntesting.concurrent.junit.JUnit4Executor
Record results.
recordResults() - Method in class patterntesting.concurrent.junit.JUnitExecutor
Record results.
recordTestMethods() - Method in class patterntesting.concurrent.junit.JUnitExecutor
Record test methods.
ReflectionHelper - Class in patterntesting.runtime.util
This class is a helper class to access some fields via reflection.
registerAlarmClockManual() - Static method in class patterntesting.sample.jmx.AlarmClock
This is an example how to register an AlarmClock at the MBeanServer.
registerAlarmClockSimple() - Static method in class patterntesting.sample.jmx.AlarmClock
This is an example how to register an AlarmClock provided by the default imolmentation of the MBeanRegistry interface.
registerAsMBean() - Static method in class patterntesting.exception.ExceptionFactory
Normally the ExceptionFactory register itself at JMX.
registerAsMBean() - Method in interface patterntesting.runtime.jmx.MBeanRegistry
Registers the MBean as "a.b.c:type=Xxx" (where "a.b.c" is the package name and "Xxx" the classname).
registerAsMBean() - Static method in class patterntesting.runtime.monitor.ClasspathMonitor
Deprecated.
With this method you can register the ClasspathMonitor with the default name.
registerAsMBean() - Static method in class patterntesting.runtime.monitor.ResourcepathMonitor
Deprecated.
With this method you can register the ResourcepathMonitor with the default name.
registerAsMBean(String) - Method in interface patterntesting.runtime.jmx.MBeanRegistry
Register the MBean with the given name.
registerAsMBean(String) - Static method in class patterntesting.runtime.monitor.ClasspathMonitor
Deprecated.
With this method you can register the ClasspathMonitor with your own name.
registerAsMBean(String) - Static method in class patterntesting.runtime.monitor.ProfileStatistic
Normally the ProfileMonitor is already registered as MBean.
registerAsMBean(ObjectName) - Method in interface patterntesting.runtime.jmx.MBeanRegistry
Register the MBean with the given object name.
registerAsMBean(ObjectName) - Static method in class patterntesting.runtime.monitor.ClasspathMonitor
Deprecated.
With this method you can register the ClasspathMonitor with your own name.
registerMBean(Object) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Register the given object as MBean.
registerMBean(String, Object) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Register the given object as MBean.
registerMBean(ObjectName, Object) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Register m bean.
registerMeAsMBean(String) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Register me as MBean.
removeClasses(Collection<?>, List<?>) - Static method in class patterntesting.runtime.junit.AbstractTester
Removes "excluded" from the given classes.
removeClasses(Collection<Class<? extends T>>, Pattern...) - Static method in class patterntesting.runtime.junit.AbstractTester
Removes "excluded" from the given classes.
removeListener(DeadLockListener) - Method in class patterntesting.concurrent.ThreadDeadLockMonitor
Removes the listener.
removeMonitor(SimpleProfileMonitor) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Removes the given child monitor.
replace(String, char, String) - Static method in class patterntesting.tool.aspectj.XMLFormatter
Replaces a character in a string by a substring.
replay(RunNotifier) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Replays the recorded events for the given notifier.
replay(RunNotifier, Thread) - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
Replays the record events till the given thread has ended.
require(boolean) - Static method in class patterntesting.runtime.dbc.DbC
Use this method to describe the condition which must be true when your method is called.
require(boolean, Object) - Static method in class patterntesting.runtime.dbc.DbC
Use this method to describe the condition which must be true when your method is called.
reset() - Method in class patterntesting.concurrent.junit.JUnitExecutor
This method clears the recorded results.
reset() - Method in class patterntesting.exception.ExceptionFactory
Resets all preferences and deactivates ExceptionFactory.
reset() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Resets all preferences.
reset() - Method in class patterntesting.runtime.io.FileInputStreamReader
Reset.
reset() - Method in class patterntesting.runtime.io.LineReader
Reset.
reset() - Method in class patterntesting.runtime.log.LogWatch
Reset.
reset() - Method in class patterntesting.runtime.monitor.JamonMonitor
Reset.
reset() - Method in class patterntesting.runtime.monitor.JamonMonitorFactory
Reset.
reset() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Reset.
reset() - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Reset.
reset() - Method in class patterntesting.runtime.monitor.ProfileStatistic
We can't reset all ProfileMonitors - we must keep the empty monitors with 0 hits to see which methods or constructors are never called.
reset() - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Reset.
reset() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Reset.
reset() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitorFactory
Reset.
reset() - Method in class patterntesting.tool.aspectj.Logger
Reset error table.
reset(String) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Reset.
reset(ProfileMonitor) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Reset.
resetFire() - Method in class patterntesting.exception.ExceptionFactory
Allows again that all exceptions would be fired.
resetFire() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Allows again that all exceptions would be fired.
resetRootMonitor() - Method in class patterntesting.runtime.monitor.ProfileStatistic
Resets the root monitor.
resetScope() - Method in class patterntesting.exception.ExceptionFactory
To set the scope back to "all classes" use this method here.
resetScope() - Method in interface patterntesting.exception.ExceptionFactoryMBean
To set the scope back to "all classes" use this method here.
Resource - Class in patterntesting.runtime.io
A resource can be a file, an entry in a jar, tar or zip file or a resource in the classpath.
Resource(URI) - Constructor for class patterntesting.runtime.io.Resource
Instantiates a new resource.
ResourcepathMonitor - Class in patterntesting.runtime.monitor
Deprecated.
replaced by ResourcepathMonitor
resourceToClass(String) - Static method in class patterntesting.runtime.util.Converter
Converts a resource (e.g.
Result(Method) - Constructor for class patterntesting.concurrent.junit.JUnitExecutor.Result
Instantiates a new result.
ResultFormatter - Interface in patterntesting.tool.aspectj
The Interface ResultFormatter.
results - Variable in class patterntesting.concurrent.junit.JUnitExecutor
The results.
RETURN_MESSAGE - patterntesting.runtime.log.internal.DrawType
The return message.
returnFromExecute(JoinPoint) - Method in class patterntesting.runtime.log.SequenceGrapher
This is the closing method of SequenceGrapher.execute(JoinPoint).
returnFromExecute(JoinPoint, Object) - Method in class patterntesting.runtime.log.SequenceGrapher
This is the closing method of SequenceGrapher.execute(JoinPoint).
returnMessage(Object, Object, JoinPoint.StaticPart) - Method in class patterntesting.runtime.log.SequenceGrapher
Return message.
returnMessage(JoinPoint) - Method in class patterntesting.runtime.log.SequenceGrapher
Logs the return arrow from the last call to the generated sequence diagram.
returnMessage(JoinPoint, Object) - Method in class patterntesting.runtime.log.SequenceGrapher
Logs the return arrow from the last call to the generated sequence diagram.
ring() - Method in class patterntesting.sample.jmx.AlarmClock
Ring.
ring() - Method in interface patterntesting.sample.jmx.AlarmClockMBean
Ring.
rootMonitor - Variable in class patterntesting.runtime.monitor.ProfileMonitorFactory
The root monitor.
Rot13 - Class in patterntesting.sample.intro
The Rot13 algorithm is a very simple algorithm for crypting.
Rot13() - Constructor for class patterntesting.sample.intro.Rot13
Default constructor for a new Rot13 object.
Rot13(String) - Constructor for class patterntesting.sample.intro.Rot13
Instantiates a new Rot13 object.
run() - Method in class patterntesting.runtime.log.AbstractLogger
This method is called at shutdown to close the open stream.
run() - Method in class patterntesting.runtime.monitor.ProfileStatistic
This method is called when the PerformanceMonitor is registered as shutdown hook.
run() - Method in class patterntesting.sample.jmx.AlarmClock
Run.
run(RunNotifier) - Method in class patterntesting.concurrent.junit.internal.BackgroundRunner
Replays the recorded events.
run(RunNotifier) - Method in class patterntesting.runtime.junit.SmokeSuite
Run.
RUN_SMOKE_TESTS - Static variable in class patterntesting.runtime.util.Environment
System property for annotation SmokeTest.
RUN_TESTS_PARALLEL - Static variable in class patterntesting.runtime.util.Environment
System property for annotation RunTestsParallel.
RunBackground - Annotation Type in patterntesting.annotation.concurrent
With this annotation you can mark methods which should run in background (as separate thread).
runChild(FrameworkMethod, RunNotifier) - Method in class patterntesting.concurrent.junit.ParallelProxyRunner
Replays the recorded test notifications.
runChild(FrameworkMethod, RunNotifier) - Method in class patterntesting.runtime.junit.ProxyRunner
Run child.
runChild(FrameworkMethod, RunNotifier) - Method in class patterntesting.runtime.junit.SmokeRunner
Runs the test corresponding to child, which can be assumed to be an element of the list returned by ParentRunner.getChildren().
runnerForClass(Class<?>) - Method in class patterntesting.concurrent.junit.internal.ParallelBuilder
Runner for class.
runnerForClass(Class<?>) - Method in class patterntesting.runtime.junit.internal.SmokeBuilder
Returns a Runner for class.
RunParallel - Annotation Type in patterntesting.annotation.concurrent
Mark methods or constructors which should be run parallel in different threads with this annotation.
RunTestOn - Annotation Type in patterntesting.runtime.annotation
You have a test which should be run only on Linux or another operationg system?
RuntimeResultBean - Class in patterntesting.tool.aspectj
The Class RuntimeResultBean.
RuntimeResultBean() - Constructor for class patterntesting.tool.aspectj.RuntimeResultBean
 
RuntimeTester - Class in patterntesting.runtime.junit
This is a tester to do some runtime checking like memory checks and other stuff.

S

save(Object, File) - Method in class patterntesting.runtime.io.AbstractSerializer
Saves a single object to the given file.
save(Object, OutputStream) - Method in class patterntesting.runtime.io.AbstractSerializer
Saves a single object to the given stream.
save(String, Object) - Method in class patterntesting.runtime.log.ObjectRecorder
Saves the given joinPoint / returnValue pair to the log stream.
save(Account) - Static method in class patterntesting.sample.jfs2010.BankRepository
Save.
SAXHelper - Class in patterntesting.exception.xml
The class SAXHelper was introduced to be able to provide better SAXExceptions.
sayHello() - Method in class patterntesting.sample.animal.Bird
Say hello.
sayHello() - Method in class patterntesting.sample.animal.Duck
Say hello.
sayHello() - Method in class patterntesting.sample.animal.Penguin
Say hello.
SequenceDiagramWriter - Class in patterntesting.runtime.log.internal
The Class SequenceDiagramWriter uses the format of websequence diagram to generate the chart.
SequenceDiagramWriter(File) - Constructor for class patterntesting.runtime.log.internal.SequenceDiagramWriter
Instantiates a new sequence diagram writer.
SequenceDiagramWriter(OutputStream) - Constructor for class patterntesting.runtime.log.internal.SequenceDiagramWriter
Instantiates a new sequence diagram writer.
SequenceDiagramWriter(Writer) - Constructor for class patterntesting.runtime.log.internal.SequenceDiagramWriter
Instantiates a new sequence diagram writer.
SequenceDiagramWriter(Writer, List<DrawStatement>) - Constructor for class patterntesting.runtime.log.internal.SequenceDiagramWriter
Instantiates a new sequence diagram writer.
SequenceGrapher - Class in patterntesting.runtime.log
This class supports the creation of simple sequence diagrams as described in the user manual of UML Graph.
SequenceGrapher() - Constructor for class patterntesting.runtime.log.SequenceGrapher
Instantiates a new SequenceGrapher.
SequenceGrapher(File) - Constructor for class patterntesting.runtime.log.SequenceGrapher
Instantiates a new sequence grapher.
SerializableTester - Class in patterntesting.runtime.junit
This is a utility class to check the serializable nature of classes.
serialize(Serializable) - Static method in class patterntesting.runtime.util.Converter
Serializes the given object and returns it as byte array.
setAccessStats(long) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the access stats.
setActive(boolean) - Method in class patterntesting.exception.ExceptionFactory
You can only provoke Exceptions if the active flag is set.
setActive(boolean) - Method in interface patterntesting.exception.ExceptionFactoryMBean
You can only provoke Exceptions if the active flag is set.
setActive(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the active.
setActivityTracking(boolean) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the activity tracking.
setAlarmTime(Date) - Method in class patterntesting.sample.jmx.AlarmClock
Sets the alarm time.
setAlarmTime(Date) - Method in interface patterntesting.sample.jmx.AlarmClockMBean
Sets the alarm time.
setBalance(BigDecimal) - Method in class patterntesting.sample.jfs2010.Account
Sets the balance.
setComplianceLevel(String) - Method in class patterntesting.tool.maven.XAjcCompileMojo
Sets the compliance level.
setDays(int[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the days.
setDestdir(String) - Method in class patterntesting.tool.aspectj.AjcXml
The example on the patterntesting page uses
setEnvironment(Environment) - Method in class patterntesting.runtime.junit.internal.SmokeFilter
For testing you can set environment.
setExcludeFilter(String[]) - Method in class patterntesting.runtime.log.SequenceGrapher
Sets the exclude filter.
setExpected(Class<? extends Throwable>) - Method in class patterntesting.concurrent.junit.RecordedStatement
If the expected exception matches the recorded exception the test is marked as "ok" (i.e. the thrown exception is removed from the record).
setFieldValue(Object, String, String) - Static method in class patterntesting.runtime.util.ReflectionHelper
Sets the field value of the given target.
setFile(File) - Method in class patterntesting.tool.aspectj.RuntimeResultBean
Sets the file.
setFire(Class<? extends Throwable>) - Method in class patterntesting.exception.ExceptionFactory
You want to provoked an SocketException whenever it is possible?
setFire(String) - Method in class patterntesting.exception.ExceptionFactory
You want to provoked an SocketException whenever it is possible?
setFire(String) - Method in interface patterntesting.exception.ExceptionFactoryMBean
You want to provoked an SocketException whenever it is possible?
setFirstAccess(Date) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the first access.
setFormatter(String) - Method in class patterntesting.tool.aspectj.AjcXmlTask
Sets the formatter to "plain" or "xml".
setFuture(FutureTask<Throwable>) - Method in class patterntesting.concurrent.junit.JUnitExecutor.Result
 
setHits(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the hits.
setHosts(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the hosts.
setJavaVendor(String) - Method in class patterntesting.runtime.util.TestEnvironment
Sets the java vendor.
setJavaVendors(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the java vendors.
setJavaVersion(String) - Method in class patterntesting.runtime.util.TestEnvironment
Sets the java version.
setJavaVersions(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the java versions.
setLastAccess(Date) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the last access.
setLastValue(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the last value.
setMax(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the max.
setMaxActive(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the max active.
setMaxNumberOfProvoked(long) - Method in class patterntesting.exception.ExceptionFactory
Limit the number of provoked maximal total number of provoked exceptions to n (default is Long.MAX_VALUE).
setMaxNumberOfProvoked(long) - Method in interface patterntesting.exception.ExceptionFactoryMBean
Limit the number of provoked maximal total number of provoked exceptions to n.
setMaxNumMonitors(int) - Method in class patterntesting.runtime.monitor.JamonMonitorFactory
Sets the max num monitors.
setMaxNumMonitors(int) - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
Sets the max num monitors.
setMaxNumMonitors(int) - Method in class patterntesting.runtime.monitor.SimpleProfileMonitorFactory
Here you can set the maximal number of monitors.
setMaxNumMonitors(int, ProfileMonitor) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Sets the max num monitors.
setMaxSize(int) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Here you can set the maximal size of the statistic entries.
setMaxSize(int) - Method in interface patterntesting.runtime.monitor.ProfileStatisticMBean
Sets the maximal size of statistic entries.
setMessage(String) - Method in interface patterntesting.sample.intro.Cryptable
Sets the message which should be crypted.
setMessage(String) - Method in class patterntesting.sample.intro.Rot13
Sets the message.
setMin(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the min.
setName(String) - Method in class patterntesting.sample.jfs2010.User
Deprecated.
setOsArch(String) - Method in class patterntesting.runtime.util.TestEnvironment
Sets the os arch.
setOsArchs(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the os archs.
setOsName(String) - Method in class patterntesting.runtime.util.TestEnvironment
Sets the os name.
setOsNames(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the os names.
setOsNames(String[], String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the os names.
setOsVersion(String) - Method in class patterntesting.runtime.util.TestEnvironment
Sets the os version.
setOsVersions(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the os versions.
setOutputStream(OutputStream) - Method in class patterntesting.tool.aspectj.AjcXmlTask
Sets the output stream.
setPhrase(String) - Method in class patterntesting.sample.PhraseGenerator
Sets the phrase.
setPrimary(boolean) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the primary.
setProperty(String, String) - Static method in class patterntesting.sample.Config
This is a (bad) example how you can use @NullArgsAllowed and combine it with @NotNull.
setReason(String) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the reason.
setResource(String) - Static method in class patterntesting.sample.Config
Sets the resource.
setResponseCode(int) - Method in class patterntesting.sample.WebDog
This method should only be called for testing.
setResultFile(File) - Method in class patterntesting.tool.aspectj.AjcXmlTask
Sets the XML result file.
setResultFile(File) - Method in class patterntesting.tool.aspectj.Logger
Set result file.
setResultFile(String) - Method in class patterntesting.tool.aspectj.AjcXml
The example on the patterntesting page uses
setResultWriter(Writer) - Method in class patterntesting.tool.aspectj.AjcXmlTask
Sets the result writer.
setRuntime(Runtime) - Method in class patterntesting.sample.AntiPattern
Sets the runtime.
setScope(Class<?>) - Method in class patterntesting.exception.ExceptionFactory
To limit the exception to be thrown for a given class you can use this method here.
setScope(String) - Method in class patterntesting.exception.ExceptionFactory
To limit the exception to be thrown for a given class you can use this method here.
setScope(String) - Method in interface patterntesting.exception.ExceptionFactoryMBean
To limit the exception to be thrown for a given class you can use this method here.
setSource(String) - Method in class patterntesting.tool.maven.XAjcCompileMojo
Sets the source level.
setSystemProps(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the system props.
setTarget(String) - Method in class patterntesting.tool.maven.XAjcCompileMojo
Sets the target level.
setThrown(Throwable) - Method in class patterntesting.concurrent.junit.RecordedStatement
If the called test method throws an exception this exception can be set here.
setTimes(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the times.
setTimeToWaitInMillis(long) - Method in class patterntesting.sample.jmx.AlarmClock
Sets the time to wait in millis.
setTimeToWaitInMillis(long) - Method in interface patterntesting.sample.jmx.AlarmClockMBean
Sets the time to wait in millis.
setToday(Date) - Method in class patterntesting.runtime.junit.internal.SmokeFilter
For testing (e.g. to check the past) you can set the today's date.
setTotal(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the total.
setTotalActive(double) - Method in class patterntesting.runtime.monitor.JamonMonitor
Sets the total active.
setUp() - Method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
Tests if PublicForTesting methods can be called from setUp method.
setUpBeforeClass() - Static method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
Tests if PublicForTesting methods can be called from setUp method.
setupBeforeClassMethod - Variable in class patterntesting.concurrent.junit.JUnitExecutor
The setup before class method.
setupMethod - Variable in class patterntesting.concurrent.junit.JUnitExecutor
The setup method.
setUserName(String) - Method in class patterntesting.runtime.util.TestEnvironment
Sets the user name.
setUsers(String[]) - Method in class patterntesting.runtime.junit.internal.TestOn
Sets the users.
setVersion(Object, String, Object) - Static method in class patterntesting.sample.Config
This is an example how to use NULL_OBJECT as argument.
setXlint(String) - Method in class patterntesting.tool.maven.XAjcCompileMojo
Sets the value for the Xlint option.
shouldBeHidden(Description) - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Returns true if the given framework methods (encapsulated in the description) should be hidden if it is not executed.
shouldBeIgnored(Description) - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Should be ignored.
shouldBeIgnored(FrameworkMethod) - Method in class patterntesting.runtime.junit.SmokeRunner
Here we handle annotations like @Ignore where the execution of the test method should be ignored.
shouldBeRun(FrameworkMethod) - Method in class patterntesting.runtime.junit.SmokeRunner
Should be run.
shouldRun(Description) - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Handles the different annotations like Broken, RunTestOn, SkipTestOn, IntegrationTest or SmokeTest.
SignatureHelper - Class in patterntesting.runtime.util
The Class SignatureHelper.
simpleCrypt(byte[], String) - Static method in class patterntesting.sample.Enigma
This is a very simple example of a crypt routine.
SimpleLog - Class in patterntesting.runtime.log
Before the switch from commons-logging to SLF4J we used the constants from SimpleLog in some log annotations and log aspects.
SimpleProfileMonitor - Class in patterntesting.runtime.monitor
The Class SimpleProfileMonitor.
SimpleProfileMonitor() - Constructor for class patterntesting.runtime.monitor.SimpleProfileMonitor
Instantiates a new simple profile monitor.
SimpleProfileMonitor(String) - Constructor for class patterntesting.runtime.monitor.SimpleProfileMonitor
Instantiates a new simple profile monitor.
SimpleProfileMonitor(String, SimpleProfileMonitor) - Constructor for class patterntesting.runtime.monitor.SimpleProfileMonitor
Instantiates a new simple profile monitor.
SimpleProfileMonitor(Signature, SimpleProfileMonitor) - Constructor for class patterntesting.runtime.monitor.SimpleProfileMonitor
Instantiates a new simple profile monitor.
SimpleProfileMonitorFactory - Class in patterntesting.runtime.monitor
This is the counterpart to JamonMonitorFactory.
SimpleProfileMonitorFactory(SimpleProfileMonitor) - Constructor for class patterntesting.runtime.monitor.SimpleProfileMonitorFactory
Instantiates a new jamon monitor factory.
since() - Method in annotation type patterntesting.runtime.annotation.Broken
Use this attribute to mark the begin of the broken area, when it was detected that your JUnit test or method does not work as expected.
skip(long) - Method in class patterntesting.runtime.io.FileInputStreamReader
Skip.
skip(long) - Method in class patterntesting.runtime.io.LineReader
Skip.
skipLines(int) - Method in class patterntesting.runtime.io.LineReader
Skip lines.
SkipTestOn - Annotation Type in patterntesting.runtime.annotation
You have a test which should be skipped on Linux or another operationg system?
sleep() - Static method in class patterntesting.runtime.util.ThreadUtil
Sleep.
sleep(int, TimeUnit) - Static method in class patterntesting.runtime.util.ThreadUtil
Using now also the constants MINUTES, HOURS and DAYS which are new with Java 6.
sleep(long) - Static method in class patterntesting.runtime.util.ThreadUtil
Sleep.
sleep(long, int) - Static method in class patterntesting.runtime.util.ThreadUtil
Sleep.
SMOKE_TEST_ENABLED - Static variable in class patterntesting.runtime.util.Environment
True if SmokeTest property is set.
SmokeBuilder - Class in patterntesting.runtime.junit.internal
This builder returns a SmokeRunner for the test class.
SmokeBuilder(RunnerBuilder) - Constructor for class patterntesting.runtime.junit.internal.SmokeBuilder
Instantiates a new smoke builder.
SmokeFilter - Class in patterntesting.runtime.junit.internal
This filter handles the different annotations like Broken, RunTestOn, SkipTestOn, IntegrationTest or SmokeTest.
SmokeFilter() - Constructor for class patterntesting.runtime.junit.internal.SmokeFilter
 
SmokeRunner - Class in patterntesting.runtime.junit
This is the eXtended Runner for JUnit 4 which handles the SmokeTest and other annotations.
SmokeRunner(Class<?>) - Constructor for class patterntesting.runtime.junit.SmokeRunner
Creates a SmokeRunner to run klass methods.
SmokeSuite - Class in patterntesting.runtime.junit
Suite implementation which understand the same annotations like the SmokeRunner class.
SmokeSuite(Class<?>, Class<?>[]) - Constructor for class patterntesting.runtime.junit.SmokeSuite
Instantiates a new smoke suite.
SmokeSuite(Class<?>, List<Runner>) - Constructor for class patterntesting.runtime.junit.SmokeSuite
Instantiates a new smoke suite.
SmokeSuite(Class<?>, RunnerBuilder) - Constructor for class patterntesting.runtime.junit.SmokeSuite
Instantiates a new smoke suite.
SmokeSuite(RunnerBuilder, Class<?>[]) - Constructor for class patterntesting.runtime.junit.SmokeSuite
Instantiates a new smoke suite.
SmokeSuite(RunnerBuilder, Class<?>, Class<?>[]) - Constructor for class patterntesting.runtime.junit.SmokeSuite
Instantiates a new smoke suite.
SmokeTest - Class in patterntesting.runtime
This tests checks some preconditions for PatternTesting Runtime.
SmokeTest - Annotation Type in patterntesting.runtime.annotation
For fast CI build it is helpful to mark important JUnit tests and test method as SmokeTest.
SmokeTest() - Constructor for class patterntesting.runtime.SmokeTest
 
SmokeTestExtension - Class in patterntesting.runtime.junit.extension
This extension replaces the SmokeRunner class for JUnit 4.
SmokeTestExtension() - Constructor for class patterntesting.runtime.junit.extension.SmokeTestExtension
 
SocketExceptionHelper - Class in patterntesting.exception.net
The Class SocketExceptionHelper with some utility methods for better SocketExceptions or NoRouteToHostExceptions.
SqlExceptionHelper - Class in patterntesting.exception.sql
The class SqlExceptionHelper extends the SQL exception message with the error-causing SQL command.
StackTraceScanner - Class in patterntesting.runtime.util
This class allows you to scan the stacktrace for different stuff.
start() - Method in class patterntesting.runtime.log.LogWatch
Start.
start() - Method in class patterntesting.runtime.monitor.JamonMonitor
Start.
start() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Start.
start() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Start.
start() - Method in class patterntesting.sample.Bomb
Start the bomb and make "bumm" after an hour.
start(int, String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Start the log for the given message.
start(String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Start the log for the given message.
start(String, String) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Start.
start(String, ProfileMonitor) - Static method in class patterntesting.runtime.monitor.JamonMonitorFactory
Start.
start(JoinPoint) - Static method in class patterntesting.runtime.log.Trace
Logs the trace with a start sign (">").
start(Signature) - Static method in class patterntesting.runtime.monitor.ProfileStatistic
Start.
startAftersTimer() - Method in class patterntesting.runtime.junit.internal.ProfiledStatement
Here we start the timer when the first tearDown() method was called.
startInterruptable() - Method in class patterntesting.sample.Bomb
Start the bomb and make "bumm" after an hour or so.
startProfileMonitorFor(String) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Start profile monitor for the given signature.
startProfileMonitorFor(Signature) - Method in class patterntesting.runtime.monitor.ProfileStatistic
Start profile monitor for the given signature.
startRunner() - Method in class patterntesting.concurrent.junit.internal.BackgroundRunner
Starts the wrapped Runner in Background and records the events.
startTestTimer() - Method in class patterntesting.runtime.junit.internal.ProfiledStatement
Here we start the timer when the test method was called.
startTimer() - Method in class patterntesting.runtime.junit.internal.ProfiledStatement
Here we start the timer when the first setUp() method was called.
stop() - Method in class patterntesting.runtime.log.LogWatch
Stop.
stop() - Method in class patterntesting.runtime.monitor.JamonMonitor
Stop.
stop() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
Stop.
stop() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
Stop.
stop() - Method in class patterntesting.sample.WebDog
With this method you can stop the watch method.
store() - Method in class patterntesting.sample.CrazyCookie
Store the cookie to a tempory file.
StringConverter - Class in patterntesting.runtime.util
This is the base class for all converter classes which transform a string into another string.
StringConverter() - Constructor for class patterntesting.runtime.util.StringConverter
 
StringTester - Class in patterntesting.runtime.junit
This tester provides some special assert methods for strings to simplify JUnit testing.
success() - Method in class patterntesting.concurrent.junit.RecordedStatement
Returns true if no exception was thrown.
SUN - patterntesting.runtime.monitor.ClassloaderType
The default classloader of the Sun VM (till Java 8).
SuppressEncodingWarning - Annotation Type in patterntesting.annotation.check.ct
Use this annotation to suppress warnings about undefined encodings.
SuppressExceptionWarning - Annotation Type in patterntesting.annotation.check.ct
You can use this annotation to suppress warnings about declaring an unspecified Exception or Throwable for methods or constructors.
SuppressIllegalArgumentExceptionWarning - Annotation Type in patterntesting.annotation.check.ct
If you want to suppress the warning that an IllegalArgumentException is thrown you can use this annotation here.
SuppressJUnitWarning - Annotation Type in patterntesting.annotation.check.ct
If PatternTesting reports a warning about the improber use of JUnit you can suppress the warning with this annotation.
SuppressLoggerWarning - Annotation Type in patterntesting.annotation.check.runtime
Use this annotation to suppress the warnings of the LoggerAspect in "patterntesting.check.runtime".
SuppressStackTraceWarning - Annotation Type in patterntesting.annotation.check.ct
With this annotation you can suppress the warning that e.printStacktrace() is used.
SuppressSystemOutWarning - Annotation Type in patterntesting.annotation.check.ct
With this annotation you can suppress the warning that System.out or System.err is used.
SUREFIRE - patterntesting.runtime.monitor.ClassloaderType
Surefire provides an isolated classloader.
Synchronized - Annotation Type in patterntesting.annotation.concurrent
Instead of synchronized methods you can mark these methods as "@Synchronized".
systemOutLogging() - Static method in class patterntesting.sample.AntiPattern
Do not use System.out or System.err for logging.

T

tearDown() - Method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
Tests if PublicForTesting methods can be called from tearDown method.
tearDownAfterClass() - Static method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
Tests if PublicForTesting methods can be called from tearDown method.
teardownMethod - Variable in class patterntesting.concurrent.junit.JUnitExecutor
The teardown method.
TEST_ASSUMPTION_FAILED - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Test assumption failed.
TEST_FAILURE - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Test failure.
TEST_FINISHED - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Test finished.
TEST_IGNORED - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Test ignored.
TEST_RUN_FINISHED - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Testrun finished.
TEST_RUN_STARTED - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Testrun started.
TEST_STARTED - patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Test started.
testCallDirectViaReflection() - Method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
Test call direct via reflection.
testCallIndirectViaReflection() - Method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
Test call indirect via reflection.
testCallPublicForTestingMethod() - Method in class patterntesting.patterntesting.check.runtime.junit4.PublicForTesting4Test
Test method for a test call of a method marked as "PublicForTesting".
testCommonsIO() - Method in class patterntesting.runtime.SmokeTest
For the ClasspathMonitor and ClassWalker we need the commons-io lib.
TestEnvironment - Class in patterntesting.runtime.util
This class is intended for testing to be able to provide a different environment.
TestEnvironment() - Constructor for class patterntesting.runtime.util.TestEnvironment
 
TestException - Annotation Type in patterntesting.annotation.exception
With this annotation you can mark classes or methods which should be able to throw an exception on demand (for testing).
TestOn - Class in patterntesting.runtime.junit.internal
This is a local helper class for the RunTestOn and SkipTestOn annotation.
TestOn() - Constructor for class patterntesting.runtime.junit.internal.TestOn
Instantiates a new object with the default environment.
TestOn(Environment) - Constructor for class patterntesting.runtime.junit.internal.TestOn
Instantiates a new object.
TestThread - Annotation Type in patterntesting.annotation.concurrent
Mark methods for thread testing with this annotation.
ThreadDeadLockMonitor - Class in patterntesting.concurrent
You can use JMX and the 'jconsole' to find dead locks.
ThreadDeadLockMonitor() - Constructor for class patterntesting.concurrent.ThreadDeadLockMonitor
The default check interval will be 5 minutes, i.e. this class checks every 5 minutes if there is a dead lock.
ThreadDeadLockMonitor(long) - Constructor for class patterntesting.concurrent.ThreadDeadLockMonitor
Instantiates a new thread dead lock monitor.
ThreadDeadLockMonitor(long, TimeUnit) - Constructor for class patterntesting.concurrent.ThreadDeadLockMonitor
Every interval a check for dead locks will be started.
ThreadSafe - Annotation Type in patterntesting.annotation.concurrent
If a class is developped "tread-safe" you can use this annotation to document it.
ThreadUtil - Class in patterntesting.runtime.util
The Class ThreadUtil.
throwing(JoinPoint, Throwable) - Static method in class patterntesting.runtime.log.Trace
Logs the thrown exception.
throwingException() - Static method in class patterntesting.sample.AntiPattern
Do not throw a general excption.
till() - Method in annotation type patterntesting.runtime.annotation.Broken
Use this attribute till you want the broken JUnit test to be fixed.
time() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
With the time attribute you can limit the run of your tests on special hours.
time() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
With the time attribute you can limit the run of your tests on special hours.
TimeMachine - Annotation Type in patterntesting.runtime.annotation
For time specific tests you can use this annotation to set the todays date.
timeout() - Method in annotation type patterntesting.annotation.concurrent.Synchronized
The default timeout is 30 minutes (1800 seconds).
toAbsolutePath(URI) - Static method in class patterntesting.runtime.util.Converter
Converts an URI into a file and returns it as absolute pathname.
toArray(Object...) - Static method in class patterntesting.runtime.util.Converter
Converts variable number of arguments into an object array.
toBigDecimal() - Method in class patterntesting.sample.Fraction
This is a very simple implementation for toBigDecimal().
toClassloaderType(ClassLoader) - Static method in enum patterntesting.runtime.monitor.ClassloaderType
Converts the given classloader into the corresponding type.
toCsvHeadline() - Method in class patterntesting.runtime.monitor.JamonMonitor
To csv headline.
toCsvHeadline() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
To csv headline.
toCsvHeadline() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
To csv headline.
toCsvString() - Method in class patterntesting.runtime.monitor.JamonMonitor
To csv string.
toCsvString() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
To csv string.
toCsvString() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
To csv string.
toDate(String) - Static method in class patterntesting.runtime.util.Converter
Converts a string to a date by trying different date patterns.
toDate(String, String) - Static method in class patterntesting.runtime.util.Converter
Converts a string to a date with the help of the given pattern.
today() - Method in annotation type patterntesting.runtime.annotation.TimeMachine
You need a specific day for your unit test?
toDouble() - Method in class patterntesting.sample.Fraction
Because of rounding problems this method should be no longer used.
toFile(String) - Static method in class patterntesting.runtime.util.Converter
Converts an URI into a file.
toFile(URI) - Static method in class patterntesting.runtime.util.Converter
Converts an URI into a file.
toLongString() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
To long string.
toLongString() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
To long string.
toLongString(Object) - Static method in class patterntesting.runtime.util.Converter
Converts an object into a long representation as the normal toString method.
toLongString(Object[]) - Static method in class patterntesting.runtime.util.Converter
If you want to print each element of an array into a single line you can use this method here.
toLongString(StackTraceElement[]) - Static method in class patterntesting.runtime.util.Converter
This implementation prints the stacktrace in a similar way as the printStacktrace method of Throwable does it.
toLongString(Map<?, ?>) - Static method in class patterntesting.runtime.util.Converter
If you want to print the system properties as key-value pairs (e.g.
TOMCAT - patterntesting.runtime.monitor.ClassloaderType
Tomcat's classloader (till Tomcat 7).
TOMCAT8 - patterntesting.runtime.monitor.ClassloaderType
Tomcat-8's classloader.
toResource(Class<?>) - Static method in class patterntesting.runtime.util.Converter
To resource.
toResource(Package) - Static method in class patterntesting.runtime.util.Converter
To resource.
toShortString() - Method in class patterntesting.runtime.monitor.JamonMonitor
To short string.
toShortString() - Method in interface patterntesting.runtime.monitor.ProfileMonitor
To short string.
toShortString() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
To short string.
toShortString() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
To short string.
toShortString() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
To short string.
toShortString(Number) - Static method in class patterntesting.runtime.util.Converter
To short string.
toShortString(Object) - Static method in class patterntesting.runtime.util.Converter
Converts an object to its toString representation.
toShortString(Object[]) - Static method in class patterntesting.runtime.util.Converter
To short string.
toShortString(Field) - Static method in class patterntesting.runtime.util.ReflectionHelper
To short string.
toShortString(Time) - Static method in class patterntesting.runtime.util.Converter
If the given time string has 0 seconds it is returned as "hh:mm".
toShortString(Collection<Field>) - Static method in class patterntesting.runtime.util.ReflectionHelper
To short string.
toSortedSet(Enumeration<?>) - Static method in class patterntesting.runtime.util.Converter
Converts an Enumeration into a SortedSet.
toString() - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireRecord
To string.
toString() - Method in class patterntesting.concurrent.junit.internal.RecordingRunNotifier
A toString() implementation for better logging and easier debugging.
toString() - Method in class patterntesting.concurrent.junit.JUnitExecutor
To string.
toString() - Method in class patterntesting.runtime.io.BetterFileInputStream
This toString implementation reports the name of the input file which is much more helpful than the default implementation of Object.toString(), especially for logging and debugging.
toString() - Method in class patterntesting.runtime.io.BetterFileOutputStream
This toString implementation reports the name of the output file which is much more helpful than the default implementation of Object.toString(), especially for logging and debugging.
toString() - Method in class patterntesting.runtime.io.FileInputStreamReader
To string.
toString() - Method in class patterntesting.runtime.io.LineReader
To string.
toString() - Method in class patterntesting.runtime.io.Resource
To string.
toString() - Method in class patterntesting.runtime.junit.internal.ProfiledStatement
Returns the name of the method with the measured times.
toString() - Method in class patterntesting.runtime.junit.internal.SmokeFilter
Prints the description of this filter.
toString() - Method in class patterntesting.runtime.log.AbstractLogger
To string.
toString() - Method in class patterntesting.runtime.log.internal.DrawStatement
To string.
toString() - Method in class patterntesting.runtime.log.LogRecorder
To string.
toString() - Method in class patterntesting.runtime.log.LogWatch
To string.
toString() - Method in class patterntesting.runtime.log.ObjectPlayer
To string.
toString() - Method in class patterntesting.runtime.monitor.JamonMonitor
To string.
toString() - Method in class patterntesting.runtime.monitor.ProfileMonitorFactory
To string.
toString() - Method in class patterntesting.runtime.monitor.ProfileStatistic
To string.
toString() - Method in class patterntesting.runtime.monitor.SimpleProfileMonitor
To string.
toString() - Method in class patterntesting.runtime.util.ArchivEntry
To string.
toString() - Method in class patterntesting.runtime.util.NestedZipFile
In contrast to the super class this method provides the name of the ZIP file.
toString() - Method in class patterntesting.runtime.util.reflect.ConstructorSignatureImpl
To string.
toString() - Method in class patterntesting.runtime.util.reflect.MethodSignatureImpl
To string.
toString() - Method in class patterntesting.runtime.util.regex.TypePattern
To string.
toString() - Method in class patterntesting.sample.animal.Bird
To string.
toString() - Method in class patterntesting.sample.CrazyCookie
To string.
toString() - Method in class patterntesting.sample.dbc.CoffeeAccount
To string.
toString() - Method in class patterntesting.sample.Fraction
To string.
toString() - Method in class patterntesting.sample.intro.Rot13
For better debugging and logging the crypted string is returned here.
toString() - Method in class patterntesting.sample.jfs2010.Account
To string.
toString() - Method in class patterntesting.sample.jfs2010.User
To string.
toString() - Method in class patterntesting.tool.aspectj.AjcErrorHandler
To string.
toString() - Method in class patterntesting.tool.aspectj.AjcFileResult
To string.
toString() - Method in class patterntesting.tool.aspectj.AjcResult
To string.
toString(Object) - Static method in class patterntesting.runtime.util.Converter
Converts an object into its string representation.
toString(Object[]) - Static method in class patterntesting.runtime.util.Converter
An empty array or null is mapped to "[]" (empty array).
toString(String, String, Object[]) - Static method in class patterntesting.runtime.util.Converter
Maps an array to its string representation.
toString(Date, String) - Static method in class patterntesting.runtime.util.Converter
Converts a date to string using the default locale.
toString(Date, String, Locale) - Static method in class patterntesting.runtime.util.Converter
Converts a date to string using the default locale.
toString(Enumeration<?>) - Static method in class patterntesting.runtime.util.Converter
To string.
toStringArray(Object[]) - Static method in class patterntesting.runtime.util.Converter
Each object inside the array is converted into its toString() representation.
toStringArray(List<File>) - Static method in class patterntesting.runtime.io.ExtendedFile
Converts a list with files into a string array.
toStringArray(Set<? extends Object>) - Static method in class patterntesting.runtime.util.Converter
Each object inside the Set is converted into its toString() representation.
toTime(String) - Static method in class patterntesting.runtime.util.Converter
Converts a time string to a Time value.
toURI() - Method in class patterntesting.runtime.util.ArchivEntry
To uri.
toURI(String) - Static method in class patterntesting.runtime.util.Converter
If a URL contains illegal characters for an URI (like blanks) this should be automatically converted (e.g. to "%20").
toURI(URL) - Static method in class patterntesting.runtime.util.Converter
If a URL contains illegal characters for an URI (like blanks) this should be automatically converted (e.g. to "%20")
trace(String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Trace.
trace(JoinPoint) - Static method in class patterntesting.runtime.log.Trace
Logs the trace with a "|" sign.
Trace - Class in patterntesting.runtime.log
This class works together with the (Abstract)TraceAspect to provide some kind of tracing information.
TraceMe - Annotation Type in patterntesting.runtime.annotation
You want to trace a method or class because you don't want (or can't) call the debugger?
transfer(String, Account) - Method in class patterntesting.sample.jfs2010.Account
Transfer an amount from one accout to another account.
transfer(BigDecimal, Account) - Method in class patterntesting.sample.jfs2010.Account
Transfer an amount from one accout to another account.
transfer(Account, int, BigDecimal) - Static method in class patterntesting.sample.jfs2010.BankRepository
Transfer money from one account to another account.
transfer(Account, Account, BigDecimal) - Static method in class patterntesting.sample.jfs2010.BankRepository
Transfer money from one account to another account.
transientTrap() - Method in class patterntesting.sample.AntiPattern
If you look at log2 attribute at the beginning of this class you see that is transient and final.
tryStaticInitializer(String) - Static method in class patterntesting.runtime.junit.ClassTester
Every class has an static initializer which will be called after a class is loaded.
TypePattern - Class in patterntesting.runtime.util.regex
A type pattern which matches patterns like "java..*" (all tpyes of the JDK).
TypePattern(String) - Constructor for class patterntesting.runtime.util.regex.TypePattern
Instantiates a new type pattern.

U

UmlautEncoder - Class in patterntesting.tool.html
Although the encoding is correct defined in an HTML file it happens sometimes that Umlauts are not displayed correct.
umlauts() - Static method in class patterntesting.sample.AntiPattern
Umlauts can cause problems and normally they do.
UmlGraphWriter - Class in patterntesting.runtime.log.internal
This class is responsible for writing sequence diagrams in the UML Graph format.
UmlGraphWriter(File) - Constructor for class patterntesting.runtime.log.internal.UmlGraphWriter
Instantiates a new uml graph writer.
UmlGraphWriter(OutputStream) - Constructor for class patterntesting.runtime.log.internal.UmlGraphWriter
Instantiates a new uml graph writer.
UmlGraphWriter(Writer) - Constructor for class patterntesting.runtime.log.internal.UmlGraphWriter
Instantiates a new uml graph writer.
UmlGraphWriter(Writer, List<DrawStatement>) - Constructor for class patterntesting.runtime.log.internal.UmlGraphWriter
Instantiates a new uml graph writer.
undefinedEncoding(File, InputStream, OutputStream) - Static method in class patterntesting.sample.AntiPattern
The code below relies on the default encoding of the underlying platform.
unit() - Method in annotation type patterntesting.annotation.concurrent.Synchronized
The unit of time (with TimeUnit.SECONDS as default).
Unit - Annotation Type in patterntesting.runtime.jmx
This annotation can be used inside MBean interfaces to document the unit of an attribute.
UNKNOWN - patterntesting.runtime.log.internal.DrawType
The unknown.
UNKNOWN - patterntesting.runtime.monitor.ClassloaderType
Unknown classloader.
unregisterAsMBean() - Method in interface patterntesting.runtime.jmx.MBeanRegistry
Unregisters the MBean from the MBean server.
unregisterAsMBean() - Static method in class patterntesting.runtime.monitor.ClasspathMonitor
Deprecated.
Unregister ClasspathMonitor as MBean.
unregisterAsMBean() - Static method in class patterntesting.runtime.monitor.ResourcepathMonitor
Deprecated.
Unregister ResourcepathMonitor as MBean.
unregisterMBean(String) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Unregister an MBean.
unregisterMBean(ObjectName) - Static method in class patterntesting.runtime.jmx.MBeanHelper
Unregister an MBean.
UnsupportedOperation - Annotation Type in patterntesting.runtime.annotation
This is similar to the @NotYetImplemented annotation.
UPPER_CASE - Static variable in class patterntesting.runtime.util.StringConverter
Use this converter if you want to convert the string into upper case.
user() - Method in annotation type patterntesting.runtime.annotation.Broken
Does the test break only for user "Bob" and you can't fix it for him at the moment?
user() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
Does the test should be run only for user "Bob" because he is the only one who has access to a secret webservice?
user() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
Does the test should skipped only for user "Bob" because he is not allow to use the database?
User - Class in patterntesting.sample.jfs2010
A simple user class.
User(String) - Constructor for class patterntesting.sample.jfs2010.User
Instantiates a new user.

V

validate(File) - Static method in class patterntesting.runtime.io.ExtendedFile
Validates the given file and throws an FileNotFoundException if it is not a valid file.
value() - Method in annotation type patterntesting.annotation.check.runtime.Zombie
You can change the default string to give a reason why the class or method is marked as "Zombie".
value() - Method in annotation type patterntesting.annotation.concurrent.GuardedBy
use the object (e.g.
value() - Method in annotation type patterntesting.annotation.concurrent.RunParallel
Number of parallel runs.
value() - Method in annotation type patterntesting.runtime.annotation.Broken
You can change the default string to give a reason why the test is marked as "broken".
value() - Method in annotation type patterntesting.runtime.annotation.DelegateTo
Value.
value() - Method in annotation type patterntesting.runtime.annotation.DrawSequenceDiagram
If this value is given a new diagram with this filename will be generated.
value() - Method in annotation type patterntesting.runtime.annotation.IntegrationTest
You can give a reason why this test is an integration test or should be skipped, e.g.
value() - Method in annotation type patterntesting.runtime.annotation.LogRuntimeException
Normally a RuntimeException will be logged with "WARN" as log level.
value() - Method in annotation type patterntesting.runtime.annotation.LogThrowable
Normally a RuntimeException will be logged with "WARN" as log level.
value() - Method in annotation type patterntesting.runtime.annotation.NotYetImplemented
You can define the text here which is used for the thrown UnsupportedOperationException.
value() - Method in annotation type patterntesting.runtime.annotation.RunTestOn
Here you can define the name of the operating system or version of the JDK for which a test should be executed.
value() - Method in annotation type patterntesting.runtime.annotation.SkipTestOn
Here you can define the name of the operating system or version of the JDK for which a test should be skipped.
value() - Method in annotation type patterntesting.runtime.annotation.SmokeTest
You can change the default string to give a reason why the test will be executed in "SmokeTest mode".
value() - Method in annotation type patterntesting.runtime.annotation.UnsupportedOperation
You can define the text here which is used for the thrown UnsupportedOperationException.
value() - Method in annotation type patterntesting.runtime.jmx.Description
the descripiton of a MBean, attribute or operation.
value() - Method in annotation type patterntesting.runtime.jmx.Unit
Name of a unit (e.g.
valueOf(String) - Static method in enum patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum patterntesting.runtime.log.internal.DrawType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum patterntesting.runtime.monitor.ClassloaderType
Returns the enum constant of this type with the specified name.
values() - Static method in enum patterntesting.concurrent.junit.internal.RecordingRunNotifier.FireEvent
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum patterntesting.runtime.log.internal.DrawType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum patterntesting.runtime.monitor.ClassloaderType
Returns an array containing the constants of this enum type, in the order they are declared.

W

warn(String, Object...) - Method in class patterntesting.runtime.log.PerfLogger
Warn.
watch() - Method in class patterntesting.sample.WebDog
We are a very busy WebDog - we watch the given URL without any pause.
WebDog - Class in patterntesting.sample
The WebDog can watch a web server if he is working correct.
WebDog(URL) - Constructor for class patterntesting.sample.WebDog
Instantiates a new web dog.
WEBLOGIC - patterntesting.runtime.monitor.ClassloaderType
Weblogic's classloader.
WEBSPHERE - patterntesting.runtime.monitor.ClassloaderType
The Websphere classloader from IBM.
why() - Method in annotation type patterntesting.runtime.annotation.Broken
You can change the default string to give a reason why the test is marked as "broken".
withAfterClasses(Statement) - Method in class patterntesting.runtime.junit.SmokeRunner
Checks the annotation of the method marked as "@AfterClass" and add (or filters out) the afterClass method (needed to solve.
withBeforeClasses(Statement) - Method in class patterntesting.runtime.junit.SmokeRunner
Checks the annotation of the method marked as "@BeforeClass" and add (or filters out) the beforeClass method (needed to solve.
World - Class in patterntesting.sample
This is an example where it makes sense to use System.out or System.err.
write(OutputStream) - Method in class patterntesting.tool.aspectj.Logger
Write.
writeCreateMessage(DrawStatement) - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Write create message.
writeCreateMessage(DrawStatement) - Method in class patterntesting.runtime.log.internal.UmlGraphWriter
 
writeHeaderFor(File) - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
This method can be used to write the title of the diagram.
writeLine(String) - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Write line.
writeMessage(DrawStatement) - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Write message.
writeMessage(DrawStatement) - Method in class patterntesting.runtime.log.internal.UmlGraphWriter
 
writeReturnMessage(DrawStatement) - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Write return message.
writeReturnMessage(DrawStatement) - Method in class patterntesting.runtime.log.internal.UmlGraphWriter
 
writeSequenceDiagram() - Method in class patterntesting.runtime.log.internal.SequenceDiagramWriter
Write sequence diagram.
writeSequenceDiagram() - Method in class patterntesting.runtime.log.internal.UmlGraphWriter
Write sequence diagram.
writeTo(File) - Method in class patterntesting.sample.PhraseGenerator
This method has the same functionality als PhraseGenerator.writeToStream(File) except that it use the Writer class.
writeToRandomAccessFile(File) - Method in class patterntesting.sample.PhraseGenerator
The problem with the RandomAccessFile is the writeChars() method - it will write each charactor using two bytes.
writeToStream(File) - Method in class patterntesting.sample.PhraseGenerator
You should not use an OutputStream to write a String to a file.

X

XAjcCompileMojo - Class in patterntesting.tool.maven
Weaves all main classes and adds the PatternTesting aspect libraries.
XAjcCompileMojo() - Constructor for class patterntesting.tool.maven.XAjcCompileMojo
 
XAjcTestCompileMojo - Class in patterntesting.tool.maven
Weaves all test classes and adds the PatternTesting aspect libraries.
XAjcTestCompileMojo() - Constructor for class patterntesting.tool.maven.XAjcTestCompileMojo
 
XMLFormatter - Class in patterntesting.tool.aspectj
Formats a list of AjcFileResult objects into an XML string.
XMLFormatter() - Constructor for class patterntesting.tool.aspectj.XMLFormatter
 
XrayClassLoader - Class in patterntesting.runtime.junit.internal
If we want to load a class and see what happens if another class (needed by the original class) is missing we need a class loader where we can control the classpath and other things.
XrayClassLoader() - Constructor for class patterntesting.runtime.junit.internal.XrayClassLoader
 
XStreamSerializer - Class in patterntesting.runtime.io
This is a thin wrapper around the XStream class and xstream library.
XStreamSerializer() - Constructor for class patterntesting.runtime.io.XStreamSerializer
 

Z

Zombie - Annotation Type in patterntesting.annotation.check.runtime
With this annotation you can mark your class or method as "dead" if you want to remove it and you are not sure if they really is dead.
ZombieException - Exception in patterntesting.check.runtime
This exception may be thrown if you try to use a class or call a method marked as "@Zombie".
ZombieException(JoinPoint) - Constructor for exception patterntesting.check.runtime.ZombieException
Instantiates a new ZombieException.
A B C D E F G H I J L M N O P R S T U V W X Z 
All Classes All Packages