Skip to content

Commit 364dec2

Browse files
committed
LargeXmir always
1 parent 5c091bd commit 364dec2

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,6 @@ SOFTWARE.
211211
<version>0.14.2</version>
212212
<scope>test</scope>
213213
</dependency>
214-
<dependency>
215-
<groupId>org.eolang</groupId>
216-
<artifactId>jeo-maven-plugin</artifactId>
217-
<version>0.7.2</version>
218-
<scope>test</scope>
219-
</dependency>
220214
<dependency>
221215
<groupId>org.languagetool</groupId>
222216
<artifactId>language-en</artifactId>

src/test/java/org/eolang/lints/LtByXslTest.java

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,16 @@
2424
package org.eolang.lints;
2525

2626
import com.jcabi.matchers.XhtmlMatchers;
27-
import com.jcabi.xml.XMLDocument;
27+
import fixtures.LargeXmir;
2828
import java.io.IOException;
2929
import java.nio.file.Files;
3030
import java.nio.file.Path;
3131
import java.nio.file.Paths;
3232
import java.util.Set;
3333
import java.util.stream.Collectors;
3434
import matchers.DefectsMatcher;
35-
import org.cactoos.bytes.BytesOf;
36-
import org.cactoos.bytes.UncheckedBytes;
37-
import org.cactoos.io.ResourceOf;
3835
import org.cactoos.text.TextOf;
3936
import org.cactoos.text.UncheckedText;
40-
import org.eolang.jeo.Disassembler;
4137
import org.eolang.jucs.ClasspathSource;
4238
import org.eolang.parser.EoSyntax;
4339
import org.eolang.xax.XtSticky;
@@ -51,7 +47,6 @@
5147
import org.junit.jupiter.api.Timeout;
5248
import org.junit.jupiter.api.condition.DisabledOnOs;
5349
import org.junit.jupiter.api.condition.OS;
54-
import org.junit.jupiter.api.io.TempDir;
5550
import org.junit.jupiter.params.ParameterizedTest;
5651

5752
/**
@@ -205,23 +200,10 @@ void checksIdsInXslStylesheets() throws IOException {
205200

206201
@Test
207202
@Timeout(30L)
208-
void checksEmptyObjectOnLargeXmirInReasonableTime(@TempDir final Path tmp) throws IOException {
209-
final Path path = Paths.get("com/sun/jna");
210-
final String clazz = "Pointer.class";
211-
Files.write(
212-
tmp.resolve(clazz),
213-
new UncheckedBytes(
214-
new BytesOf(
215-
new ResourceOf(
216-
"com/sun/jna/Pointer.class"
217-
)
218-
)
219-
).asBytes()
220-
);
221-
new Disassembler(tmp, tmp).disassemble();
203+
void checksEmptyObjectOnLargeXmirInReasonableTime() {
222204
Assertions.assertDoesNotThrow(
223205
() -> new LtByXsl("errors/empty-object").defects(
224-
new XMLDocument(tmp.resolve(path).resolve("Pointer.xmir"))
206+
new LargeXmir().value()
225207
),
226208
"Huge XMIR must pass in reasonable time. See the timeout value."
227209
);

0 commit comments

Comments
 (0)