@Ignore does not take effect after JUnit upgrade to 5

After Junit was upgraded to 5 today, it was found that the @Ignore annotation did not take effect on the test class.

Then after searching on the Internet, I found that JUnit5 has no @Ignore annotation

Changed to @Disabled

	@Test
	@Disabled 
	public void contextLoads() {
		ValueOperations<String, String> stringStringValueOperations = auctionRedisTemplate.opsForValue();
		System.out.println("----------------------------------------");
		System.out.println("111111111111111111");
		System.out.println(stringStringValueOperations.get("token"));
	}

There is no difference between @Disabled and @Ignore source code, I don’t know why they changed

Guess you like

Origin blog.csdn.net/qq_39164154/article/details/122113711