• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package junitparams;
2 
3 import static org.assertj.core.api.Assertions.assertThat;
4 
5 import org.junit.Test;
6 import org.junit.runner.RunWith;
7 
8 @RunWith(JUnitParamsRunner.class)
9 public abstract class SuperclassTest {
10 
11 	@Test
12 	@Parameters(method = "paramsForSuperclassMethod")
testWork(int val)13 	public void testWork(int val) throws Exception {
14 		assertThat(val).isGreaterThan(0);
15 	}
16 
paramsForIsAdult()17     protected Object[] paramsForIsAdult() {
18         return new Object[]{new Object[]{11, false}, new Object[]{17, false}, new Object[]{18, true}, new Object[]{22, true}};
19     }
20 }