Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HDouss committed Mar 11, 2020
1 parent 7a23392 commit b92dc86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/org/jpeek/calculus/java/Lcom4Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.jcabi.xml.XML;
import java.io.IOException;
import java.util.HashMap;
import org.cactoos.scalar.ItemAt;
import org.hamcrest.core.IsEqual;
import org.jpeek.FakeBase;
import org.jpeek.skeleton.Skeleton;
Expand Down Expand Up @@ -67,15 +68,15 @@ public void createsXmlCalculusWithXpaths() throws IOException {
@ParameterizedTest
@Disabled
@CsvFileSource(resources = "/org/jpeek/calculus/java/lcom4-params.csv")
public void methodMethodCalls(final String file, final String value) throws Exception {
public void calculatesValue(final String file, final String value) throws Exception {
final XML result = new Lcom4().node(
"", new HashMap<>(0), new Skeleton(
new FakeBase(file)
).xml()
);
new Assertion<>(
"Must create LCOM4 value",
result.xpath("/metric/app/package/class/@value").get(0),
new ItemAt<>(0, result.xpath("/metric/app/package/class/@value")).value(),
new IsEqual<>(value)
).affirm();
}
Expand Down

0 comments on commit b92dc86

Please sign in to comment.