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