Lines Matching refs:argName
34 * @param argName - the name of the parameter; used in the exception message
37 public static void isNull(Object arg, String argName) {
39 throw new AssertFailedException("The value for \"" + argName + "\" must be null");
46 * @param argName - the name of the parameter; used in the exception message
49 public static void notNull(Object arg, String argName) {
51 throw new AssertFailedException("The value of \"" + argName + "\" is null");
81 * @param argName - the name of the parameter; used in the exception message
84 public static void notNullOrEmpty(Collection collection, String argName) {
85 notNull(collection, argName);
87 throw new AssertFailedException("The \"" + argName + "\" Collection is empty");
95 * @param argName - the name of the parameter; used in the exception message
98 public static void notNullOrEmpty(Map map, String argName) {
99 notNull(map, argName);
101 throw new AssertFailedException("The \"" + argName + "\" Map is empty");
109 * @param argName - the name of the parameter; used in the exception message
112 public static void notNullOrEmpty(Object[] array, String argName) {
113 notNull(array, argName);
115 throw new AssertFailedException("The \"" + argName + "\" array is empty");
123 * @param argName - the name of the parameter; used in the exception message
126 public static void notNullOrEmpty(String string, String argName) {
127 notNull(string, argName);
129 throw new AssertFailedException("The \"" + argName + "\" String is empty");