@@ -46,20 +46,18 @@ public void initialize() {
4646 public void testGreenWhenInactive () {
4747 var expected = new HealthIndicatorResult (NAME , GREEN , INACTIVE_SYMPTOM , HealthIndicatorDetails .EMPTY , List .of (), List .of ());
4848 assertEquals (expected , healthIndicatorService .calculate (INDETERMINATE ));
49- assertEquals (expected , healthIndicatorService .calculate (new FileSettingsHealthInfo (
50- false , 0 , 0 , null
51- )));
52- assertEquals ( "Inactive should be GREEN regardless of other fields" , expected , healthIndicatorService . calculate ( new FileSettingsHealthInfo (
53- false , 123 , 123 , "test"
54- ))) ;
49+ assertEquals (expected , healthIndicatorService .calculate (new FileSettingsHealthInfo (false , 0 , 0 , null )));
50+ assertEquals (
51+ "Inactive should be GREEN regardless of other fields" ,
52+ expected ,
53+ healthIndicatorService . calculate ( new FileSettingsHealthInfo ( false , 123 , 123 , "test" ))
54+ );
5555 }
5656
5757 public void testNoChangesYet () {
5858 var expected = new HealthIndicatorResult (NAME , GREEN , NO_CHANGES_SYMPTOM , HealthIndicatorDetails .EMPTY , List .of (), List .of ());
5959 assertEquals (expected , healthIndicatorService .calculate (INITIAL_ACTIVE ));
60- assertEquals (expected , healthIndicatorService .calculate (new FileSettingsHealthInfo (
61- true , 0 , 0 , null
62- )));
60+ assertEquals (expected , healthIndicatorService .calculate (new FileSettingsHealthInfo (true , 0 , 0 , null )));
6361 }
6462
6563 public void testSuccess () {
@@ -79,9 +77,7 @@ public void testFailure() {
7977 }
8078
8179 private HealthIndicatorResult yellow (long failureStreak , String mostRecentFailure ) {
82- var details = new SimpleHealthIndicatorDetails (
83- Map .of ("failure_streak" , failureStreak , "most_recent_failure" , mostRecentFailure )
84- );
80+ var details = new SimpleHealthIndicatorDetails (Map .of ("failure_streak" , failureStreak , "most_recent_failure" , mostRecentFailure ));
8581 return new HealthIndicatorResult (NAME , YELLOW , FAILURE_SYMPTOM , details , STALE_SETTINGS_IMPACT , List .of ());
8682 }
8783}
0 commit comments