Program: 185225
Project: 185225
Buggy source:
@Test void testBothAlarms(){
  PlotView testPlot=new PlotView.Builder(PlotterPlot.class).nonTimeAxisMinSubsequentSetting(NonTimeAxisSubsequentBoundsSetting.FIXED).nonTimeAxisMaxSubsequentSetting(NonTimeAxisSubsequentBoundsSetting.FIXED).nonTimeVaribleAxisMaxValue(10).nonTimeVaribleAxisMinValue(0).build();
  testPlot.setManifestation(mockPlotViewManifestation);
  testPlot.setCompressionEnabled(false);
  Assert.assertFalse(testPlot.isCompresionEnabled());
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.NO_ALARM);
  testPlot.addDataSet("String_Node_Str");
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.NO_ALARM);
  testPlot.addData("String_Node_Str",System.currentTimeMillis(),1);
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.ALARM_RAISED);
  testPlot.addData("String_Node_Str",System.currentTimeMillis(),-1);
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.ALARM_RAISED);
  testPlot.addData("String_Node_Str",System.currentTimeMillis(),11);
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.ALARM_RAISED);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.ALARM_RAISED);
}

Fixed version (ground truth):
@Test void testBothAlarms(){
  PlotView testPlot=new PlotView.Builder(PlotterPlot.class).nonTimeAxisMinSubsequentSetting(NonTimeAxisSubsequentBoundsSetting.FIXED).nonTimeAxisMaxSubsequentSetting(NonTimeAxisSubsequentBoundsSetting.FIXED).nonTimeVaribleAxisMaxValue(10).nonTimeVaribleAxisMinValue(0).build();
  testPlot.setManifestation(mockPlotViewManifestation);
  testPlot.setCompressionEnabled(false);
  Assert.assertFalse(testPlot.isCompresionEnabled());
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.NO_ALARM);
  testPlot.addDataSet("String_Node_Str");
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.NO_ALARM);
  testPlot.addData("String_Node_Str",System.currentTimeMillis(),1);
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.NO_ALARM);
  testPlot.addData("String_Node_Str",System.currentTimeMillis(),-1);
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.NO_ALARM);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.ALARM_RAISED);
  testPlot.addData("String_Node_Str",System.currentTimeMillis(),11);
  Assert.assertEquals(testPlot.getNonTimeMaxAlarmState(0),LimitAlarmState.ALARM_RAISED);
  Assert.assertEquals(testPlot.getNonTimeMinAlarmState(0),LimitAlarmState.ALARM_RAISED);
}