Home | History | Annotate | Download | only in junitparams
      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")
     13 	public void testWork(int val) throws Exception {
     14 		assertThat(val).isGreaterThan(0);
     15 	}
     16 
     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 }