Spring 重复JUnit测试并通过失败的断言

Spring 重复JUnit测试并通过失败的断言,spring,testing,junit,Spring,Testing,Junit,即使抛出AssertErrors,此测试也会通过: @RunWith(SpringJUnit4ClassRunner.class) public class MatrixTests { @Test @Repeat(10) public void testMulti() { // there are AssertErrors thrown here } } 如果其中一次迭代失败,如何使测试失败?什么类是@Rep

即使抛出AssertErrors,此测试也会通过:

@RunWith(SpringJUnit4ClassRunner.class)
public class MatrixTests 
{    
    @Test
    @Repeat(10)
    public void testMulti() 
    {
         // there are AssertErrors thrown here
    }        
}

如果其中一次迭代失败,如何使测试失败?

什么类是
@Repeat
?向我们展示断言。