We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bacf23 commit e35443fCopy full SHA for e35443f
src/it/lints-it/src/test/java/org/eolang/lints/it/LintsItTest.java
@@ -6,7 +6,8 @@
6
7
import com.jcabi.xml.XMLDocument;
8
import java.io.IOException;
9
-import org.eolang.lints.Source;
+import java.util.Map;
10
+import org.eolang.lints.Program;
11
import org.hamcrest.MatcherAssert;
12
import org.hamcrest.Matchers;
13
import org.junit.jupiter.api.Test;
@@ -22,7 +23,12 @@ final class LintsItTest {
22
23
void lintsSource() throws IOException {
24
MatcherAssert.assertThat(
25
"passes with no exceptions",
- new Source(new XMLDocument("<object/>")).defects(),
26
+ new Program(
27
+ Map.of(
28
+ "main.eo",
29
+ new XMLDocument("<object/>")
30
+ )
31
+ ).defects(),
32
Matchers.notNullValue()
33
);
34
}
0 commit comments