JsTester allows validation of javaScript code inside java.
It provides a group of assert methods like JUnit's Assert,
it also supports the validations described in
http://javascript.crockford.com/remedial.html,
and the ability to use your own validations (unary & binary predicates).
The project provides two ways of creating your tests: by inheritance (JsTestCase),
and by composition (JsTester). Use JsTestCase as you would normally use any
extension of TestCase. Use JsTester with TestNG or JUnit4 and annotations, or inside another
TestCase hierarchy.
There are three versions:
The project was born as a necessity to test JSON code generated by json-lib.