@@ -0,0 +1,2008 @@
+package azkaban.project.validator;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * Test%0A */%0Apublic class ValidationReportTest %7B%0A%0A  @Test%0A  public void testAddWarnLevelInfoMsg() %7B%0A    ValidationReport report = new ValidationReport();%0A    String msg = %22test warn level info message.%22;%0A    report.addWarnLevelInfoMsg(msg);%0A    for (String info : report.getInfoMsgs()) %7B%0A      assertEquals(%22Info message added through addWarnLevelInfoMsg should have level set to WARN%22,%0A          ValidationReport.getInfoMsgLevel(info), ValidationStatus.WARN);%0A      assertEquals(%22Retrieved info message does not match the original one.%22,%0A          ValidationReport.getInfoMsg(info), msg);%0A    %7D%0A  %7D%0A%0A  @Test%0A  public void testAddErrorLevelInfoMsg() %7B%0A    ValidationReport report = new ValidationReport();%0A    String msg = %22test error level error message.%22;%0A    report.addErrorLevelInfoMsg(msg);%0A    for (String info : report.getInfoMsgs()) %7B%0A      assertEquals(%22Info message added through addErrorLevelInfoMsg should have level set to ERROR%22,%0A          ValidationReport.getInfoMsgLevel(info), ValidationStatus.ERROR);%0A      assertEquals(%22Retrieved info message does not match the original one.%22,%0A          ValidationReport.getInfoMsg(info), msg);%0A    %7D%0A  %7D%0A%0A  @Test%0A  public void testAddMsgs() %7B%0A    ValidationReport report = new ValidationReport();%0A    Set%3CString%3E msgs = new HashSet%3CString%3E();%0A    msgs.add(%22test msg 1.%22);%0A    msgs.add(%22test msg 2.%22);%0A    report.addWarningMsgs(msgs);%0A    assertEquals(%22Level of severity is not warn.%22,%0A        report.getStatus(), ValidationStatus.WARN);%0A    report.addErrorMsgs(msgs);%0A    assertEquals(%22Number of error messages retrieved does not match.%22,%0A        report.getErrorMsgs().size(), 2);%0A    assertEquals(%22Number of warn messages retrieved does not match.%22,%0A        report.getWarningMsgs().size(), 2);%0A    assertEquals(%22Level of severity is not error.%22,%0A        report.getStatus(), ValidationStatus.ERROR);%0A  %7D%0A%0A%7D%0A

Add unit test to fix the behavior of ValidationReport.