mardi 26 avril 2016

Test if the returned string has java class

I have a method that generates java class and writes to a .java file. How can write a unit test on this method to make sure the format of the string this is writing to the file is in standard java class format.

Ex: I should check if it has a package declaration Should check if package is before class declaration open and close braces etc...

Aucun commentaire:

Enregistrer un commentaire