@Test public void invalidSupportedClass() { expectedException.expect(ProcessingException.class); expectedException.expectMessage(" is not supported type."); Validator.checkNotSupportedOperation(null, TypeName.BOOLEAN); }
static void checkNotSupportedOperation(String operation, TypeName typeName) { if (operation == null || operation.length() == 0) { throw new ProcessingException(typeName + " is not supported type."); } }
Validator { static void checkNotSupportedOperation(String operation, TypeName typeName) { if (operation == null || operation.length() == 0) { throw new ProcessingException(typeName + " is not supported type."); } } }
Validator { static void checkNotSupportedOperation(String operation, TypeName typeName) { if (operation == null || operation.length() == 0) { throw new ProcessingException(typeName + " is not supported type."); } } Validator(); }
Validator { static void checkNotSupportedOperation(String operation, TypeName typeName) { if (operation == null || operation.length() == 0) { throw new ProcessingException(typeName + " is not supported type."); } } Validator();  }
Validator { static void checkNotSupportedOperation(String operation, TypeName typeName) { if (operation == null || operation.length() == 0) { throw new ProcessingException(typeName + " is not supported type."); } } Validator();   }