|
24 | 24 | package org.eolang.lints; |
25 | 25 |
|
26 | 26 | import com.jcabi.matchers.XhtmlMatchers; |
27 | | -import com.jcabi.xml.XMLDocument; |
| 27 | +import fixtures.LargeXmir; |
28 | 28 | import java.io.IOException; |
29 | 29 | import java.nio.file.Files; |
30 | 30 | import java.nio.file.Path; |
31 | 31 | import java.nio.file.Paths; |
32 | 32 | import java.util.Set; |
33 | 33 | import java.util.stream.Collectors; |
34 | 34 | import matchers.DefectsMatcher; |
35 | | -import org.cactoos.bytes.BytesOf; |
36 | | -import org.cactoos.bytes.UncheckedBytes; |
37 | | -import org.cactoos.io.ResourceOf; |
38 | 35 | import org.cactoos.text.TextOf; |
39 | 36 | import org.cactoos.text.UncheckedText; |
40 | | -import org.eolang.jeo.Disassembler; |
41 | 37 | import org.eolang.jucs.ClasspathSource; |
42 | 38 | import org.eolang.parser.EoSyntax; |
43 | 39 | import org.eolang.xax.XtSticky; |
|
51 | 47 | import org.junit.jupiter.api.Timeout; |
52 | 48 | import org.junit.jupiter.api.condition.DisabledOnOs; |
53 | 49 | import org.junit.jupiter.api.condition.OS; |
54 | | -import org.junit.jupiter.api.io.TempDir; |
55 | 50 | import org.junit.jupiter.params.ParameterizedTest; |
56 | 51 |
|
57 | 52 | /** |
@@ -205,23 +200,10 @@ void checksIdsInXslStylesheets() throws IOException { |
205 | 200 |
|
206 | 201 | @Test |
207 | 202 | @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() { |
222 | 204 | Assertions.assertDoesNotThrow( |
223 | 205 | () -> new LtByXsl("errors/empty-object").defects( |
224 | | - new XMLDocument(tmp.resolve(path).resolve("Pointer.xmir")) |
| 206 | + new LargeXmir().value() |
225 | 207 | ), |
226 | 208 | "Huge XMIR must pass in reasonable time. See the timeout value." |
227 | 209 | ); |
|
0 commit comments