/** * Tests that the Tested value is a specific type. * * @param clazz type the the expected value should have (or super type). Lets say the super type is Car, and sub type is * Toyota, then this test will pass: * <pre> * a(new Toyota()).shouldBeA(Car.class). * </pre> * Think of this not in terms of direct typing but from a point of view of inheritance. * <p> * Synonym for {@link #shouldBeType(Class)}. */ public void shouldBeA(Class clazz) { shouldBeType(clazz); }
/** * Tests that the Tested value is a specific type. * * @param clazz type the the expected value should have (or super type). Lets say the super type is Car, and sub type is * Toyota, then this test will pass: * <pre> * a(new Toyota()).shouldBeA(Car.class). * </pre> * Think of this not in terms of direct typing but from a point of view of inheritance. * <p> * Synonym for {@link #shouldBeType(Class)}. */ public void shouldBeA(Class clazz) { shouldBeType(clazz); }
/** * Tests that the Tested value is a specific type. * * @param clazz type the the expected value should have (or super type). Lets say the super type is Car, and sub type is * Toyota, then this test will pass: * <pre> * a(new Toyota()).shouldBeA(Car.class). * </pre> * Think of this not in terms of direct typing but from a point of view of inheritance. * <p> * Synonym for {@link #shouldBeType(Class)}. */ public void shouldBeA(Class clazz) { shouldBeType(clazz); }