Use junit to test java code, you need to pay attention

1. The method annotated with @Test must have no return value, and the return value type is none: void

2. The method annotated with @Test must have no parameters.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325644594&siteId=291194637