Generate unit test class

Updated at 1726887605000
ezyplatform-devtools has UnitTestClassGenerator supports generate unit test content of a class, you can use it like this:
public class UnitTestGenerator {

    public static void main(String[] args) {
        new UnitTestClassGenerator(
            AdminProductCurrencyService.class
        ).printContent();
    }
}

In this case we are generating unit test content of class AdminProductCurrencyService. Then you can create class AdminProductCurrencyServiceTest and copy the content from console and paste to the AdminProductCurrencyServiceTest class.

Table Of Contents