diff --git a/src/test/java/org/jpeek/metrics/CcmTest.java b/src/test/java/org/jpeek/metrics/CcmTest.java index d6a05eb2..2d68f9bb 100644 --- a/src/test/java/org/jpeek/metrics/CcmTest.java +++ b/src/test/java/org/jpeek/metrics/CcmTest.java @@ -52,20 +52,6 @@ void manyComponentInClassTest() throws Exception { report.assertValue(0.0f, 0.001f); } - @Test - void oneComponentInClassTest() throws Exception { - final MetricBase.Report report = new MetricBase( - "org/jpeek/metrics/CCM.xsl" - ).transform( - "CcmOneComp" - ); - report.assertVariable("methods", 5); - report.assertVariable("nc", 10); - report.assertVariable("nmp", 10); - report.assertVariable("ncc", 1); - report.assertValue(1.0f, 0.001f); - } - /** * Class with one method access one attribute and * Ctor with all attributes initialization have the same @@ -86,6 +72,20 @@ void manyComponentWithCtorInClassTest() throws Exception { report.assertValue(0.0f, 0.001f); } + @Test + void oneComponentInClassTest() throws Exception { + final MetricBase.Report report = new MetricBase( + "org/jpeek/metrics/CCM.xsl" + ).transform( + "CcmOneComp" + ); + report.assertVariable("methods", 5); + report.assertVariable("nc", 10); + report.assertVariable("nmp", 10); + report.assertVariable("ncc", 1); + report.assertValue(1.0f, 0.001f); + } + /** * Check ccm metric for mixed usage: attribute usage, methods calls. * @todo #522:30min there is a 4th step for incorrect calculation: nc