Using Junit coverage, it cannot span the public static void method. How can I cover it?
After verifying that this can be verified, simply name it like any other public static method:
YourClass.main(new String[] {"parameter 1", "parameter 2"});
And then confirm the following status.
Since it does not return anything, you cannot check the output. But what is he doing? If it calls another method, write a test for this method. If he does not call other methods, write a test for this.
Source: https://habr.com/ru/post/1749891/More articles:configure uipopovercontroller in ipad - ipadConvert char array to int C ++ array - c ++How to use the data of one table in the "where" section of another table? - phpcos the result is incorrect - cGoogle Chrome does something wrong again - javascriptIs Graphics.DrawImage asynchronous? - c #about jar file in java - javaCan't apply a color theme to a single frame in Emacs? - emacsIPhone crawler doesn’t comply with - iphoneкакова цель числовых/логических/строковых объектов в отличие от примитивных значений? - javascriptAll Articles