From 250a2f6158e528d7a4666c76093fdf5972ed3cbf Mon Sep 17 00:00:00 2001 From: Larry Diamond <1066589+larrydiamond@users.noreply.github.com> Date: Sat, 12 Aug 2023 23:34:28 -0400 Subject: [PATCH] fixed parameter order in assertions --- .../com/ldiamond/sqgraph/DashboardOutputTests.java | 2 +- .../java/com/ldiamond/sqgraph/GraphOutputTests.java | 2 +- .../ldiamond/sqgraph/SqgraphApplicationTests.java | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/com/ldiamond/sqgraph/DashboardOutputTests.java b/src/test/java/com/ldiamond/sqgraph/DashboardOutputTests.java index 662bfaf..e9a0916 100644 --- a/src/test/java/com/ldiamond/sqgraph/DashboardOutputTests.java +++ b/src/test/java/com/ldiamond/sqgraph/DashboardOutputTests.java @@ -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]; diff --git a/src/test/java/com/ldiamond/sqgraph/GraphOutputTests.java b/src/test/java/com/ldiamond/sqgraph/GraphOutputTests.java index c8e1d86..30c3808 100644 --- a/src/test/java/com/ldiamond/sqgraph/GraphOutputTests.java +++ b/src/test/java/com/ldiamond/sqgraph/GraphOutputTests.java @@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test; -public class GraphOutputTests { +class GraphOutputTests { @Test void testAddSeriesForNativeMetric() { diff --git a/src/test/java/com/ldiamond/sqgraph/SqgraphApplicationTests.java b/src/test/java/com/ldiamond/sqgraph/SqgraphApplicationTests.java index 0e62b20..623cdd0 100644 --- a/src/test/java/com/ldiamond/sqgraph/SqgraphApplicationTests.java +++ b/src/test/java/com/ldiamond/sqgraph/SqgraphApplicationTests.java @@ -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); } @@ -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); } @@ -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); }