Skip to content

Commit

Permalink
(#215) LCOM4 static fields are now called by FQN (lorm formatting)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakharlamov committed Jan 24, 2019
1 parent fdbadf6 commit e36e454
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/test/java/org/jpeek/metrics/LormTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
package org.jpeek.metrics;

import org.cactoos.list.ListOf;
import org.junit.Before;
import org.junit.Test;

/**
Expand All @@ -38,22 +37,11 @@
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
*/
public final class LormTest {
/**
* Test helper.
* For easy variable and value assertion.
*/
private MetricBase base;

@Before
public void setUpMetric() throws Exception {
this.base = new MetricBase(
"org/jpeek/metrics/LORM.xsl"
);
}

@Test
public void calculatesVariables() throws Exception {
final MetricBase.Report report = this.base.transform(
final MetricBase.Report report = new MetricBase(
"org/jpeek/metrics/LORM.xsl"
).transform(
"TwoCommonMethods"
);
final int methods = 6;
Expand Down

0 comments on commit e36e454

Please sign in to comment.