如何在指定我的期望时进行 OR 运算?参数可以是 10 或 11。
public void testGetRandom() {
context.checking(new Expectations() {{
oneOf (myrandom).isSpecific(10) **OR** oneOf (myrandom).isSpecific(11);
}});
context.assertIsSatisfied();
}
最佳答案
关于java - 或期待中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14901443/