JUnit @ Before Failure

Shiro's in the process of learning need to use JUnit @ Before annotation with the test, but in any case, @ Before the following methods do not perform as expected, plagued by a long time, then finally found the root of all kinds of Baidu, now share in the gentlemen, hope You can solve the urgent gentlemen:

JUnit's official website, the official website found in this passage:

Turned out to be @Before and @After @BeforeEach and @AfterEach to be replaced. There are other comments are also replaced.

Guess you like

Origin www.cnblogs.com/luzhanshi/p/10965592.html