Skip to content

Commit

Permalink
objectionary#3728 remove test because it was replaced by test pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Suban05 committed Feb 18, 2025
1 parent e6d3989 commit 045768c
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions eo-maven-plugin/src/test/java/org/eolang/maven/ShakeMojoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
package org.eolang.maven;

import com.github.lombrozo.xnav.Xnav;
import com.jcabi.matchers.XhtmlMatchers;
import com.jcabi.xml.XMLDocument;
import com.yegor256.Mktmp;
Expand Down Expand Up @@ -310,35 +309,4 @@ void choosesTransformerFactoryInConcurrentEnvironment() {
);
}
}

@Test
void addesOriginalNamesToObjects(@Mktmp final Path temp) throws Exception {
final FakeMaven maven = new FakeMaven(temp);
final Path target = maven
.withHelloWorld()
.execute(new FakeMaven.Shake())
.result()
.get(
String.format("target/%s/foo/x/main.%s", ShakeMojo.DIR, AssembleMojo.XMIR)
);
maven.execute(ShakeMojo.class);
final Xnav xnav = new Xnav(target).element("program").element("objects");
MatcherAssert.assertThat(
"The object should have an `original-name` equal to `main`",
xnav.element("o")
.attribute("original-name")
.text()
.get(),
Matchers.equalTo("main")
);
MatcherAssert.assertThat(
"The object should have an `original-name` equal to `main.x`",
xnav.element("o")
.element("o")
.attribute("original-name")
.text()
.get(),
Matchers.equalTo("main.x")
);
}
}

0 comments on commit 045768c

Please sign in to comment.