On this page:
- About Continuum for Java (JUnit)
- Installation and configuration
- Testing with Continuum for Java (JUnit)
About Continuum for Java (JUnit)
Access Continuum for Java (JUnit) provides developers who are familiar with JUnit with an easy and painless way to embed automated accessibility testing for their applications written in Java.
Continuum for JUnit includes:
- Access Engine, which is Level Access' testing engine, specifically the automatic tests included with this accessibility testing engine
- A sample project that includes two tests using JUnit
Java 11* (https://java.com/en/download/)
Google Chrome (https://www.google.com/chrome/): Chrome is the preferred browser. You can make some minor modifications to the script if you would like to use other browsers
* Note: All versions of Java prior to 11 are end of life. So Java 11 is the minimum supported version for Access Continuum.
Installation and configuration
Download Continuum for JUnit from AMP Toolbox
Install and start testing with Continuum for Java(JUnit)
Unzip the downloaded package.
In the console, cd/ to the directory containing Continuum for Junit and enter 'mvn test' to start testing with Continuum for JUnit
Testing with Continuum for Java (JUnit)
To run tests, use 'mvn test.'
In order to help you better understand how Continuum for Java (JUnit) works, we include a sample project which tests www.levelaccess.com and not.webaccessibility.com using JUnit. With these two examples, you can see how the testing results are like both when the tested application is accessible and not accessible
To test your own application, find the file for the sample project, named "continuum-pro-java-junit/src/test/java/AccessibilityTests.java"
Simply replace "www.levelaccess.com" and "not.webaccessibility.com" in this file (continuum-pro-java-junit/src/test/java/AccessibilityTests.java) with the URL of your application. Then run the test using "mvn test" in your IDE.
Test results will display the list of accessibility errors, along with details to guide remediation efforts. See "Access Continuum Test Results" for more details.
Submit any questions using the support form, or get support from the community and the Level Access development team by posting questions on Stack Overflow with the following tags: #acccessibility, #webaccessibility and #wai-aria