/** * Create an <code>IsA</code> validate that tests for instances of a given control class name. * * @param type Name of the control class. */ public IsA(final String type) { setType(type); }
public void isAString() { // --------------------------------------------------------- final IsA function = new IsA(String.class); // --------------------------------------------------------- runExample(function, null, 1, 2.5, "abc"); }
public void isANumber() { // --------------------------------------------------------- final IsA function = new IsA(Number.class); // --------------------------------------------------------- runExample(function, null, 1, 2.5, "abc"); } }