Skip to content

Commit 250a2f6

Browse files
committed
fixed parameter order in assertions
1 parent bec6cbe commit 250a2f6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/test/java/com/ldiamond/sqgraph/DashboardOutputTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import static org.junit.jupiter.api.Assertions.assertEquals;
1414
import org.junit.jupiter.api.Test;
1515

16-
public class DashboardOutputTests {
16+
class DashboardOutputTests {
1717

1818
int [] initalizeArray () {
1919
int [] array = new int [5];

src/test/java/com/ldiamond/sqgraph/GraphOutputTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import org.junit.jupiter.api.Test;
2222

23-
public class GraphOutputTests {
23+
class GraphOutputTests {
2424

2525
@Test
2626
void testAddSeriesForNativeMetric() {

src/test/java/com/ldiamond/sqgraph/SqgraphApplicationTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)