public class LightAir extends org.junit.runners.BlockJUnit4ClassRunner implements Keywords
To enable Light air on a JUnit test, annotate it as follows:
@RunWith(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.
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
Modifier and Type | Method and Description |
---|---|
protected org.junit.runners.model.Statement |
methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
Overriding methodInvoker in order to place LightAir's test rules as the
leading ones.
|
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public LightAir(Class<?> clazz) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
methodInvoker
in class org.junit.runners.BlockJUnit4ClassRunner
Copyright © 2011–2020 Lastware, sro.. All rights reserved.