Ok, this one works well:
function Case() {
};
Case.prototype = TestCase.prototype;
function MathTest(name) {
TestCase.call(this, name);
}
MathTest.prototype = new Case();
MathTest.prototype.testAddition = function() {
this.assertEquals(1 + 1, 2);
}
Notice: If the test fails, maven print Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
,
but the Build state ends by BUILD FAILURE
.