Skip to content

Commit

Permalink
#470 - Fixed LORM XSL.
Browse files Browse the repository at this point in the history
  • Loading branch information
vzurauskas committed May 1, 2020
1 parent 2b4d871 commit 9e8a724
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/org/jpeek/metrics/LORM.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ SOFTWARE.
<xsl:variable name="relations">
<xsl:for-each select="$methods">
<xsl:variable name="from" select="@name"/>
<xsl:for-each select="ops/op[@code='call'][starts-with(text(), $prefix)]">
<xsl:variable name="to" select="substring-after(text(), $prefix)"/>
<xsl:for-each select="ops/op[@code='call'][starts-with(name, $prefix)]">
<xsl:variable name="to" select="substring-after(name, $prefix)"/>
<link from="{$from}" to="{$to}"/>
</xsl:for-each>
</xsl:for-each>
Expand Down
9 changes: 3 additions & 6 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.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

/**
Expand All @@ -35,12 +34,10 @@
* @checkstyle JavadocMethodCheck (500 lines)
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
*/
public final class LormTest {
final class LormTest {

@Test
@Disabled
// @todo #437:30min This test was disabled after skeleton structure has changed as in #437.
// Fix LORM.xsl to make it comply with the new structure and then reenable this test again.
public void calculatesVariables() throws Exception {
void calculatesVariables() throws Exception {
final MetricBase.Report report = new MetricBase(
"org/jpeek/metrics/LORM.xsl"
).transform(
Expand Down

0 comments on commit 9e8a724

Please sign in to comment.