Class LightAir
java.lang.Object
net.sf.lightair.LightAir
- All Implemented Interfaces:
Keywords, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.InvocationInterceptor, org.junit.jupiter.api.extension.TestInstantiationAwareExtension
public class LightAir
extends Object
implements org.junit.jupiter.api.extension.InvocationInterceptor, Keywords
Light Air JUnit Jupiter Extension.
To enable Light Air on a JUnit test, annotate it as follows:
@ExtendWith(LightAir.class)
public class MyTest {
}
Then use annotations @Setup, @Verify to define actions Light
air should take on the test.
See http://lightair.sourceforge.net/write-test.html for more info.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope -
Field Summary
Fields inherited from interface Keywords
ACTUAL, ANY_TOKEN, ARRAY_ELEMENT_SEPARATOR, ARRAY_INTEGER, ARRAY_LONG, ARRAY_STRING, AUTO_INDEX_DIRECTORY, AUTO_TOKEN, BIGDECIMAL, BLOB, BOOLEAN, BYTE, BYTES, CLOB, COLUMN, COLUMNS, DATA_TYPE, DATABASE_CONNECTION_URL, DATABASE_DRIVER_CLASS_NAME, DATABASE_PASSWORD, DATABASE_SCHEMA, DATABASE_USER_NAME, DATE, DATE_TOKEN, DECIMAL_DIGITS, DEFAULT_AUTO_INDEX_DIRECTORY, DEFAULT_PROFILE, DEFAULT_PROPERTIES_FILE_NAME, DEFAULT_XSD_DIRECTORY, DIFFERENCES, DIFFERENT, DOUBLE, ENV_DATABASE_CONNECTION_URL, ENV_DATABASE_DRIVER_CLASS_NAME, ENV_DATABASE_PASSWORD, ENV_DATABASE_SCHEMA, ENV_DATABASE_USER_NAME, ENV_TIME_DIFFERENCE_LIMIT_MILLIS, EXPECTED, FIXED_NSTRING, FIXED_STRING, FLOAT, INTEGER, JDBC_DATA_TYPE, JSON, JSONB, LONG, MISSING, NCLOB, NOT_NULL, NSTRING, NULL_TOKEN, PARAMETERS, SHORT, SIZE, SQL, STRING, TABLE, TIME, TIME_DIFFERENCE_LIMIT_MILLIS, TIME_TOKEN, TIMESTAMP, TIMESTAMP_TOKEN, UNEXPECTED, UUID, VALUE, VARIABLE_PREFIX, XSD_DIRECTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinterceptTestMethod(@NonNull org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, @NonNull org.junit.jupiter.api.extension.ExtensionContext extensionContext) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor
interceptAfterAllMethod, interceptAfterEachMethod, interceptBeforeAllMethod, interceptBeforeEachMethod, interceptDynamicTest, interceptTestClassConstructor, interceptTestFactoryMethod, interceptTestTemplateMethodMethods inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
getTestInstantiationExtensionContextScope
-
Constructor Details
-
LightAir
public LightAir()
-
-
Method Details
-
interceptTestMethod
public void interceptTestMethod(@NonNull org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, @NonNull org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable - Specified by:
interceptTestMethodin interfaceorg.junit.jupiter.api.extension.InvocationInterceptor- Throws:
Throwable
-