1 package junitparams; 2 3 import org.junit.Test; 4 import org.junit.runner.RunWith; 5 6 @RunWith(JUnitParamsRunner.class) 7 public class WrongArgumentsNumberTest { 8 9 @Test(expected = IllegalArgumentException.class) 10 @Parameters({"one"}) throwsExceptionForWrongNumberOfParameters(String value, String notProvided)11 public void throwsExceptionForWrongNumberOfParameters(String value, String notProvided) { 12 } 13 14 } 15