java - JUnit dynamic method dispatch? -


The problem I am facing here is to test the query parsing engine of a piece of software through negative testing Has been assigned. That is, I have to write a large number of questions which will fail, and check that they actually fail, along with the expected error message for the particular error in the query. These are defined in the XML file. I wrote a simple cover for parsing XML documents and strat-like classes for these documents.

Now, seeing that I am using JUNETET as a test framework, I am running on this issue - all of these externally defined tests have the same function of running Remains in the law. If any test fails, then no longer will run. Is there any way to dynamically transmit all the tests in any way, as I have encountered them? In this way, if any trial fails, we can still run the remaining people, while receiving the report what they did and did not fail.

The second option, of course, is to write all the JUnit tests. I would like to avoid it for a number of reasons, one of which is that the number of test runs is very large, and the case of a test is 99% boilerplate code.

Thank you.

You should look at the paragraph annotations of the juneet.

Comments