Skip to content

Commit

Permalink
fixed parameter order in assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
larrydiamond committed Aug 13, 2023
1 parent bec6cbe commit 250a2f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;

public class DashboardOutputTests {
class DashboardOutputTests {

int [] initalizeArray () {
int [] array = new int [5];
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/ldiamond/sqgraph/GraphOutputTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import org.junit.jupiter.api.Test;

public class GraphOutputTests {
class GraphOutputTests {

@Test
void testAddSeriesForNativeMetric() {
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/com/ldiamond/sqgraph/SqgraphApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ void populateMetricsHasSyntheticPer() {
assertNotNull(synths.get("ViolationsPerKLines"));
assertNotNull(synths.get("CognitiveComplexityPerKLines"));
assertNotNull(synths.get("something__PER__otherthing"));
assertEquals(synths.get("something__PER__otherthing").getRealMetrics().get(0), "something");
assertEquals(synths.get("something__PER__otherthing").getRealMetrics().get(1), "otherthing");
assertEquals("something", synths.get("something__PER__otherthing").getRealMetrics().get(0));
assertEquals("otherthing", synths.get("something__PER__otherthing").getRealMetrics().get(1));
assertEquals(2.0, synths.get("something__PER__otherthing").calculate(metrics), 0);
}

Expand All @@ -226,8 +226,8 @@ void populateMetricsHasSyntheticPerK() {
assertNotNull(synths.get("ViolationsPerKLines"));
assertNotNull(synths.get("CognitiveComplexityPerKLines"));
assertNotNull(synths.get("something__PER_K_otherthing"));
assertEquals(synths.get("something__PER_K_otherthing").getRealMetrics().get(0), "something");
assertEquals(synths.get("something__PER_K_otherthing").getRealMetrics().get(1), "otherthing");
assertEquals("something", synths.get("something__PER_K_otherthing").getRealMetrics().get(0));
assertEquals("otherthing", synths.get("something__PER_K_otherthing").getRealMetrics().get(1));
assertEquals(2000.0, synths.get("something__PER_K_otherthing").calculate(metrics), 0);
}

Expand All @@ -250,8 +250,8 @@ void populateMetricsHasSyntheticPerH() {
assertNotNull(synths.get("ViolationsPerKLines"));
assertNotNull(synths.get("CognitiveComplexityPerKLines"));
assertNotNull(synths.get("something__PER_H_otherthing"));
assertEquals(synths.get("something__PER_H_otherthing").getRealMetrics().get(0), "something");
assertEquals(synths.get("something__PER_H_otherthing").getRealMetrics().get(1), "otherthing");
assertEquals("something", synths.get("something__PER_H_otherthing").getRealMetrics().get(0));
assertEquals("otherthing", synths.get("something__PER_H_otherthing").getRealMetrics().get(1));
assertEquals(200.0, synths.get("something__PER_H_otherthing").calculate(metrics), 0);
}

Expand Down

0 comments on commit 250a2f6

Please sign in to comment.