java - Generating Unit Tests Automatically -


I have a web tool, based on the arguments given in the URL, the return generated by the Java class being generated is.

We change the classes we receive from the webserver every day and we need to ensure that they can still process known inputs.

Note that these classes do not test the webserver, they run locally and convert XML to a custom format. I am not checking the webserver.

These sections should be kept in a specific package structure and should be run against known input data and compared with known output data.

To ensure that each generated category is correct, prefer to do this each night automatically.

What is the best way to get it?

What's the best way to do this:

  1. Get the code from a webserver and keep it in a file
  2. Collect the code and then Call it

I'm sure a mixture of Janet and Ant will be able to get it, but is there a standard solution / approach for this? First of all, to answer your question: No, I do not think that a < Em> standard approach it looks like a very unusual situation; -)

Looking at what I will do to call my JUnit tests to a class GeneratedCode and then, after downloading the code was generated Rename code, compile, and run your unit test.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -