@@ -202,8 +202,8 @@ void populateMetricsHasSyntheticPer() {
202202 assertNotNull (synths .get ("ViolationsPerKLines" ));
203203 assertNotNull (synths .get ("CognitiveComplexityPerKLines" ));
204204 assertNotNull (synths .get ("something__PER__otherthing" ));
205- assertEquals (synths .get ("something__PER__otherthing" ).getRealMetrics ().get (0 ), "something" );
206- assertEquals (synths .get ("something__PER__otherthing" ).getRealMetrics ().get (1 ), "otherthing" );
205+ assertEquals ("something" , synths .get ("something__PER__otherthing" ).getRealMetrics ().get (0 ));
206+ assertEquals ("otherthing" , synths .get ("something__PER__otherthing" ).getRealMetrics ().get (1 ));
207207 assertEquals (2.0 , synths .get ("something__PER__otherthing" ).calculate (metrics ), 0 );
208208 }
209209
@@ -226,8 +226,8 @@ void populateMetricsHasSyntheticPerK() {
226226 assertNotNull (synths .get ("ViolationsPerKLines" ));
227227 assertNotNull (synths .get ("CognitiveComplexityPerKLines" ));
228228 assertNotNull (synths .get ("something__PER_K_otherthing" ));
229- assertEquals (synths .get ("something__PER_K_otherthing" ).getRealMetrics ().get (0 ), "something" );
230- assertEquals (synths .get ("something__PER_K_otherthing" ).getRealMetrics ().get (1 ), "otherthing" );
229+ assertEquals ("something" , synths .get ("something__PER_K_otherthing" ).getRealMetrics ().get (0 ));
230+ assertEquals ("otherthing" , synths .get ("something__PER_K_otherthing" ).getRealMetrics ().get (1 ));
231231 assertEquals (2000.0 , synths .get ("something__PER_K_otherthing" ).calculate (metrics ), 0 );
232232 }
233233
@@ -250,8 +250,8 @@ void populateMetricsHasSyntheticPerH() {
250250 assertNotNull (synths .get ("ViolationsPerKLines" ));
251251 assertNotNull (synths .get ("CognitiveComplexityPerKLines" ));
252252 assertNotNull (synths .get ("something__PER_H_otherthing" ));
253- assertEquals (synths .get ("something__PER_H_otherthing" ).getRealMetrics ().get (0 ), "something" );
254- assertEquals (synths .get ("something__PER_H_otherthing" ).getRealMetrics ().get (1 ), "otherthing" );
253+ assertEquals ("something" , synths .get ("something__PER_H_otherthing" ).getRealMetrics ().get (0 ));
254+ assertEquals ("otherthing" , synths .get ("something__PER_H_otherthing" ).getRealMetrics ().get (1 ));
255255 assertEquals (200.0 , synths .get ("something__PER_H_otherthing" ).calculate (metrics ), 0 );
256256 }
257257
0 commit comments