@Test public void testPerform() throws Exception { final HiveNotRollingWarning hiveWarningCheck = new HiveNotRollingWarning(); PrereqCheckRequest request = new PrereqCheckRequest(m_clusterName); PrerequisiteCheck check = new PrerequisiteCheck(null, null); hiveWarningCheck.perform(check, request); Assert.assertEquals(PrereqCheckStatus.WARNING, check.getStatus()); }
@Override public void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request) throws AmbariException { prerequisiteCheck.getFailedOn().add("HIVE"); prerequisiteCheck.setStatus(PrereqCheckStatus.WARNING); prerequisiteCheck.setFailReason(getFailReason(prerequisiteCheck, request)); }
HiveNotRollingWarning extends AbstractCheckDescriptor { @Override public void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request) throws AmbariException { prerequisiteCheck.getFailedOn().add("HIVE"); prerequisiteCheck.setStatus(PrereqCheckStatus.WARNING); prerequisiteCheck.setFailReason(getFailReason(prerequisiteCheck, request)); } }
HiveNotRollingWarning extends AbstractCheckDescriptor { @Override public void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request) throws AmbariException { prerequisiteCheck.getFailedOn().add("HIVE"); prerequisiteCheck.setStatus(PrereqCheckStatus.WARNING); prerequisiteCheck.setFailReason(getFailReason(prerequisiteCheck, request)); } HiveNotRollingWarning(); }
HiveNotRollingWarning extends AbstractCheckDescriptor { @Override public void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request) throws AmbariException { prerequisiteCheck.getFailedOn().add("HIVE"); prerequisiteCheck.setStatus(PrereqCheckStatus.WARNING); prerequisiteCheck.setFailReason(getFailReason(prerequisiteCheck, request)); } HiveNotRollingWarning(); @Override boolean isApplicable(PrereqCheckRequest request); @Override void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request); }
HiveNotRollingWarning extends AbstractCheckDescriptor { @Override public void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request) throws AmbariException { prerequisiteCheck.getFailedOn().add("HIVE"); prerequisiteCheck.setStatus(PrereqCheckStatus.WARNING); prerequisiteCheck.setFailReason(getFailReason(prerequisiteCheck, request)); } HiveNotRollingWarning(); @Override boolean isApplicable(PrereqCheckRequest request); @Override void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request);  }