@Test public void getHttpStatus_HttpStatusShouldBeAssignedToEachMessage() throws IllegalArgumentException, IllegalAccessException { Field[] fields = EnrichmentTagUploadResponseMessages.class.getDeclaredFields(); for (Field field : fields) { if (Modifier.isStatic(field.getModifiers()) && field.getType().isAssignableFrom(String.class)) { assertNotNull(enrichmentTagUploadMessageHttpStatusMapper.getHttpStatus((String)field.get(null))); } } }
public HttpStatus getHttpStatus(String message) { HttpStatus httpStatus = messageStatusMap.get(message); if (httpStatus == null) { throw new IllegalArgumentException("no http status for the message: " + message); } return httpStatus; }
EnrichmentTagUploadMessageHttpStatusMapper { public HttpStatus getHttpStatus(String message) { HttpStatus httpStatus = messageStatusMap.get(message); if (httpStatus == null) { throw new IllegalArgumentException("no http status for the message: " + message); } return httpStatus; } }
EnrichmentTagUploadMessageHttpStatusMapper { public HttpStatus getHttpStatus(String message) { HttpStatus httpStatus = messageStatusMap.get(message); if (httpStatus == null) { throw new IllegalArgumentException("no http status for the message: " + message); } return httpStatus; }  }
EnrichmentTagUploadMessageHttpStatusMapper { public HttpStatus getHttpStatus(String message) { HttpStatus httpStatus = messageStatusMap.get(message); if (httpStatus == null) { throw new IllegalArgumentException("no http status for the message: " + message); } return httpStatus; }  HttpStatus getHttpStatus(String message); }
EnrichmentTagUploadMessageHttpStatusMapper { public HttpStatus getHttpStatus(String message) { HttpStatus httpStatus = messageStatusMap.get(message); if (httpStatus == null) { throw new IllegalArgumentException("no http status for the message: " + message); } return httpStatus; }  HttpStatus getHttpStatus(String message);  }