//SUCCESS, FAILURE, ABORTED, UNSTABLE, other
//not overridden, overridden
//SUCCESS Not overridden
GerritTrigger trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildSuccessfulCodeReviewValue()).thenReturn(null);
when(trigger.getGerritBuildSuccessfulVerifiedValue()).thenReturn(null);
list.add(new TestParameters[]{new TestParameters(config, Result.SUCCESS, trigger, 4, 3)});
//SUCCESS overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildSuccessfulCodeReviewValue()).thenReturn(21);
when(trigger.getGerritBuildSuccessfulVerifiedValue()).thenReturn(22);
list.add(new TestParameters[]{new TestParameters(config, Result.SUCCESS, trigger, 21, 22)});
//FAILURE Not overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildFailedCodeReviewValue()).thenReturn(null);
when(trigger.getGerritBuildFailedVerifiedValue()).thenReturn(null);
list.add(new TestParameters[]{new TestParameters(config, Result.FAILURE, trigger, -2, -1)});
//FAILURE overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildFailedCodeReviewValue()).thenReturn(31);
when(trigger.getGerritBuildFailedVerifiedValue()).thenReturn(32);
list.add(new TestParameters[]{new TestParameters(config, Result.FAILURE, trigger, 31, 32)});
//ABORTED Not overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildFailedCodeReviewValue()).thenReturn(null);
when(trigger.getGerritBuildFailedVerifiedValue()).thenReturn(null);
list.add(new TestParameters[]{new TestParameters(config, Result.ABORTED, trigger, -2, -1)});
//ABORTED overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildFailedCodeReviewValue()).thenReturn(41);
when(trigger.getGerritBuildFailedVerifiedValue()).thenReturn(42);
list.add(new TestParameters[]{new TestParameters(config, Result.ABORTED, trigger, 41, 42)});
//UNSTABLE Not overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildUnstableCodeReviewValue()).thenReturn(null);
when(trigger.getGerritBuildUnstableVerifiedValue()).thenReturn(null);
list.add(new TestParameters[]{new TestParameters(config, Result.UNSTABLE, trigger, -4, -3)});
//UNSTABLE overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildUnstableCodeReviewValue()).thenReturn(-21);
when(trigger.getGerritBuildUnstableVerifiedValue()).thenReturn(-22);
list.add(new TestParameters[]{new TestParameters(config, Result.UNSTABLE, trigger, -21, -22)});
//OTHER Not overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildNotBuiltCodeReviewValue()).thenReturn(null);
when(trigger.getGerritBuildNotBuiltVerifiedValue()).thenReturn(null);
list.add(new TestParameters[]{new TestParameters(config, Result.NOT_BUILT, trigger, -6, -5)});
//OTHER overridden
trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildNotBuiltCodeReviewValue()).thenReturn(-51);
when(trigger.getGerritBuildNotBuiltVerifiedValue()).thenReturn(-52);
list.add(new TestParameters[]{new TestParameters(config, Result.NOT_BUILT, trigger, -51, -52)});
return list;
}