To disable a test in junit5, using @Disabled annotation in the class or method definition. For example,
@Disabled class SortTest { @Test void sortAscTest() { xxxx } }
or
class SortTest { @Disabled @Test void sortAscTest() { xxxx } }
if @Disabled is used in the class leve, all the test cases in the test class will be ignored. However, if @Disabled is used in method level, only the test case marked with the annotation will be disabled.