blob: 19419cb58cc5161af4e2f06d84982601ea29cdca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package junitparams;
import static org.assertj.core.api.Assertions.*;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assume.*;
import org.junit.*;
import org.junit.runner.*;
@RunWith(JUnitParamsRunner.class)
public class AssumptionsTest {
@Test
@Parameters({ "true", "false" })
public void assumeOnceWorksAndOnceIgnores(boolean value) {
assumeThat(value, is(true));
assertThat(value).isTrue();
}
}
|