assertModifier

public static void assertModifier(int expected, int actual, String name)(source)

Tests whether the modifiers are correct.

Parameters

expected

the expected modifier count

actual

the actual modifier count

name

the name of the field to be checked


public static void assertModifier(int expected, Class<? extends Object> clazz)(source)

Tests whether the modifiers of a class are correct.

Parameters

expected

the expected modifier count

clazz

the class to be checked


public static void assertModifier(int expected, Method method)(source)

Tests whether the modifiers of a method are correct.

Parameters

expected

the expected modifier count

method

the method to be checked


public static void assertModifier(int expected, Constructor<? extends Object> constructor)(source)

Tests whether the modifiers of a constructor are correct.

Parameters

expected

the expected modifier count

constructor

the constructor to be checked


public static void assertModifier(int expected, Field attribut)(source)

Tests whether the modifiers of a field are correct.

Parameters

expected

the expected modifier count

attribut

the field to be checked