java - Coverage can't cover the public static void main method -


Using junit coverage, it can not cover the public static zero principal method. How can I cover it?

After making sure that it is testable, it is called as any other public static method :

  YourClass.main (new string [] {"parameter1", "parameter2"});  

And then emphasize the following situation.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -