All Classes
-
All Classes Interface Summary Class Summary Enum Summary Exception Summary Error Summary Annotation Types Summary Class Description AbstractLogger This is a common super class for all classes which do a kind of logging.AbstractProfileMonitor The Class AbstractProfileMonitor.AbstractSerializer This is the common superclass for all Serializer casses in PatternTesting.AbstractTester This is the common superclass for some tester classes defined in this package.AllowJDBC If you have damn JDBC calls in your class via DamnJDBC you can allow some methods these calls be declaring them with @AllowJDBC.AnnotatedStandardMBean The Class AnnotatedStandardMBean.ArchivEntry Unfortunately we can't extends URI because this is a final class.ArrayTester If you want to assert that the content of two arrays are equals use this tester here.AssertArg This utility class is intended to check arguments.Assertions If you want to know if assertions are enabled (java option "-ea"), you can use this helper class.BetterFileInputStream Whenever you need aFileInputStream
and want a better toString implementation you can use the class BetterFileInputStream.BetterFileOutputStream Whenever you need aFileOutputStream
and want a better toString implementation you can use the class BetterFileOutputStream.BinarySerializer This is the default serializer which uses the default mechanism proved by the JDK.Broken If you want to mark JUnit tests which does not work for the moment as "broken" you can use this annotation.ClassloaderException If you have some problems with theClassLoader
you can use this exception here for throwing.ClassloaderType This enum type can detect if a classloader is a Tomcat, WebLogic or Websphere classloader.ClasspathHelper This class contains some helper classes which are used inside ClasspathMonitor and ClasspathDigger.ClassTester This tester examines classes.CloneableTester This tester checks class which implements Clonable and has therefore the clone method implemented.CollectionTester If you want to assert that the content of two collections are equals use this tester here.ComparableTester This utility class checks classes which implements theComparable
interface.ConstructorSignatureImpl The Class ConstructorSignatureImpl.Contract With this Contract interface you can realize Design-by-Contract, also known as DbC.ContractViolation The Class ContractViolation.Converter The Class Converter to convert objects from one type to another type.DamnJDBC If you want to forbid JDBC calls use this annotation.DamnStaticVars The Interface DamnStaticVars.DbC The Class DbC.Description With this annotation you can add a description to a MBean.DetailedAssertionError This is a kind of betterAssertionError
which gives you some more details of the given cause.DetailedInvalidClassException The problem with theInvalidClassException
is that a constructor with a cause is missing.DontLogMe E.g. the ProfileAspect together with the AbstractProfileAspect logs also the arguments for long running methods.DontProfileMe You have marked a class with "@ProfileMe" but don't want to see all methods?DontTraceMe 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 With this annotation you can control the generation of sequence diagrams.DrawStatement Internal class for caching the different draw statements.DrawType The different types of drawings.EnableStreamWarning Use this annotation if you want to avoid the use of Stram classes like InputStream or OutputStream.Environment This class provides some utilities for the access to the environment (e.g.ExceptionThrower Because we need the functionality of throwing any exception not only in PatternTesting Exception but also here this functionality was shifted to PatternTesting Runtime.ExtendedFile This is the extended version of theFile
class.Failures 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.FileInputStreamReader The Class FileInputStreamReader.FileTester The Class FileTester.ForceThreadSafeCollection With this annotation you can mark classes and methods which sould use thread-safe collection classes (i.e. sychnronized collections) only.GuardedBy With this annotation you can document the lock which guards the field or method.GuardInitialization If your static initialization fails and you get a NoClassDefFoundError use ths anntoation.IgnoreForSequenceDiagram With this annotation you can mark classes or methods which should not part of generated sequence diagram.ImmutableTester This is a utility class to test if a class is really (strict) Immuable.Info This Info bean is registered as MBean and provides some information about PatternTesting.InfoMBean This is the interface for the info bean anf for the use of this bean as MBean.IntegrationTest This annotation allows you to mark classes which are not really a unit test but a integration test.IntegrationTestExtension Use this IntegrationTestExtension if you want to disable your integration tests for the normal test run.IORuntimeException If you want to throw an IOException as unchecked exception you can use this exception here.IOTester With the IOTester you can assert if two files have equals content or if two directories have the same structure with equal files.JamonMonitor This is a thin wrapper for com.jamonapi.MonitorJamonMonitorFactory This is a thin wrapper around com.jamonapi.MonitorFactory to keep the ProfileStatistic class clean from com.jamonapi dependencies.JoinPointHelper The Class JoinPointHelper.LazyObjectRecorder In contradiction toObjectRecorder
this class only records joinpoints and return values if they are different from the last record.LineReader If extendsBufferedReader
but provides you the line number in which the reader is reading.Localhost This (static) class represents your local host.LogRecorder The Class LogRecorder can only record log messages.LogRuntimeException You want to see a RuntimeException in the log if it happens?LogThrowable You want to see an Exception or Error in the log if it happens?LogWatch The Class LogWatch is a simple stop watch to be able to measure and log code segments which need a little bit longer.MapTester This class asserts (among other things) that two maps are equals.MayBeNull If one of an argument of a method can be null you can use this annotation to mark it.MayReturnNull Use this annotation to mark methods which can return null values.MBeanHelper This class simplifies the use of JMX and MBeans a little bit.MBeanRegistry 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").MemoryGuard The Class MemoryGuard.MethodSignatureImpl There is a class org.aspectj.runtime.reflect.MethodSignatureImpl in aspectjrt.jar.NestedZipFile This class provides more details about the underlying ZIP file as the originalZipFile
class.NetworkTester With the NetworkTester you can assert if a host is online or offline.NotFoundException If you did not find a result and want to avoid 'null" as return value you can throw this exception here.NotYetImplemented Eclipse and other tools will generate default implementation for you if you want to implement an interface.NullArgsAllowed Use this annotation to mark methods which are allowed to have null values as argument.NullConstants This class contains some constants (like a NULL_STRING) as constant.ObjectComparator Compares two objects using their string representation.ObjectPlayer This is the counterpart toObjectRecorder
class.ObjectRecorder This class allows you to record objects.ObjectTester This is a utility class to check some important methods of a class like theObject.equals(Object)
orObject.hashCode()
method.OnlyForTesting With this annotation you can mark methods which should be only called for testing but *never* from any other methods.PerfLogger 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.ProfileMe You want to measure a method or constructor?ProfileMonitor The Interface ProfileMonitor.ProfileMonitorFactory This factory abstracts the differences between the monitor based on JAMon and the simple monitor provided by PatternTesting itself.ProfileStatistic This is constructed as a thin layer around com.jamonapi.MonitorFactory for the needs of patterntesting.ProfileStatisticMBean The Interface ProfileStatisticMBean.PublicForTesting 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.ReflectionHelper This class is a helper class to access some fields via reflection.Resource A resource can be a file, an entry in a jar, tar or zip file or a resource in the classpath.RunBackground With this annotation you can mark methods which should run in background (as separate thread).RunParallel Mark methods or constructors which should be run parallel in different threads with this annotation.RunTestOn You have a test which should be run only on Linux or another operationg system?RuntimeTester This is a tester to do some runtime checking like memory checks and other stuff.SequenceDiagramWriter The Class SequenceDiagramWriter uses the format of websequence diagram to generate the chart.SequenceGrapher This class supports the creation of simple sequence diagrams as described in the user manual of UML Graph.SerializableTester This is a utility class to check the serializable nature of classes.SignatureHelper The Class SignatureHelper.SimpleLog Before the switch from commons-logging to SLF4J we used the constants from SimpleLog in some log annotations and log aspects.SimpleProfileMonitor The Class SimpleProfileMonitor.SimpleProfileMonitorFactory This is the counterpart to JamonMonitorFactory.SkipTestOn You have a test which should be skipped on Linux or another operationg system?SmokeTest For fast CI build it is helpful to mark important JUnit tests and test method as SmokeTest.SmokeTest This tests checks some preconditions for PatternTesting Runtime.SmokeTestExtension This extension replaces the SmokeRunner class for JUnit 4.StackTraceScanner This class allows you to scan the stacktrace for different stuff.StringConverter This is the base class for all converter classes which transform a string into another string.StringTester This tester provides some special assert methods for strings to simplify JUnit testing.SuppressEncodingWarning Use this annotation to suppress warnings about undefined encodings.SuppressExceptionWarning You can use this annotation to suppress warnings about declaring an unspecifiedException
orThrowable
for methods or constructors.SuppressIllegalArgumentExceptionWarning If you want to suppress the warning that an IllegalArgumentException is thrown you can use this annotation here.SuppressJUnitWarning If PatternTesting reports a warning about the improber use of JUnit you can suppress the warning with this annotation.SuppressLoggerWarning Use this annotation to suppress the warnings of the LoggerAspect in "patterntesting.check.runtime".SuppressStackTraceWarning With this annotation you can suppress the warning that e.printStacktrace() is used.SuppressSystemOutWarning With this annotation you can suppress the warning that System.out or System.err is used.Synchronized Instead of synchronized methods you can mark these methods as "@Synchronized".TestEnvironment This class is intended for testing to be able to provide a different environment.TestException With this annotation you can mark classes or methods which should be able to throw an exception on demand (for testing).TestOn This is a local helper class for the RunTestOn and SkipTestOn annotation.TestThread Mark methods for thread testing with this annotation.ThreadSafe If a class is developped "tread-safe" you can use this annotation to document it.ThreadUtil The Class ThreadUtil.TimeMachine For time specific tests you can use this annotation to set the todays date.Trace This class works together with the (Abstract)TraceAspect to provide some kind of tracing information.TraceMe You want to trace a method or class because you don't want (or can't) call the debugger?TypePattern A type pattern which matches patterns like "java..*" (all tpyes of the JDK).UmlGraphWriter This class is responsible for writing sequence diagrams in the UML Graph format.Unit This annotation can be used inside MBean interfaces to document the unit of an attribute.UnsupportedOperation This is similar to the @NotYetImplemented annotation.XrayClassLoader 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.XStreamSerializer This is a thin wrapper around theXStream
class and xstream library.Zombie 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.