This project consists of Java EE Extras Samples and unit tests. They are categorized in different directories, one for each technology.
The extras project focuses on the interaction of Java EE with external technologies as well as on alternatives for various testing frameworks.
Where the Java EE 7 and Java EE 8 samples projects are quite strict on limiting the amount of alternatives that are used for any test, this project has no such limitations. Tests can be written in any (JVM) language such as Groovy, Scala, JRuby, Kotlin, etc, using any (unit) test framework and helpers such as JUnit, TestNg, Arquillian, Cargo, Cactus, contain tests that exercise application server specific functionality, contain tests that exercise framework specific functionality such as the Jersey specific MVC, MyFaces specific features, and all combinations and permutations of the above.
Note: The project currently does not run out of the box. PRs are welcome to fix this.
There are 6 profiles to choose a browser to test on:
-
browser-firefoxTo run tests on Mozilla Firefox. If its binary is installed in the usual place, no additional information is required.
-
browser-chromeTo run tests on Google Chrome. Need to pass a
-Darq.extension.webdriver.chromeDriverBinaryproperty pointing to achromedriverbinary. -
browser-ieTo run tests on Internet Explorer. Need to pass a
-Darq.extension.webdriver.ieDriverBinaryproperty pointing to aIEDriverServer.exe. -
browser-safariTo run tests on Safari. If its binary is installed in the usual place, no additional information is required.
-
browser-operaTo run tests on Opera. Need to pass a
-Darq.extension.webdriver.opera.binaryproperty pointing to a Opera executable. -
browser-phantomjsTo run tests on headless browser PhantomJS. If you do not specify the path of phantomjs binary via
-Dphantomjs.binary.pathproperty, it will be downloaded automatically.