Skip to content

Commit e35443f

Browse files
committed
feat(#123): fix it subproject
1 parent 3bacf23 commit e35443f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/it/lints-it/src/test/java/org/eolang/lints/it/LintsItTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
import com.jcabi.xml.XMLDocument;
88
import java.io.IOException;
9-
import org.eolang.lints.Source;
9+
import java.util.Map;
10+
import org.eolang.lints.Program;
1011
import org.hamcrest.MatcherAssert;
1112
import org.hamcrest.Matchers;
1213
import org.junit.jupiter.api.Test;
@@ -22,7 +23,12 @@ final class LintsItTest {
2223
void lintsSource() throws IOException {
2324
MatcherAssert.assertThat(
2425
"passes with no exceptions",
25-
new Source(new XMLDocument("<object/>")).defects(),
26+
new Program(
27+
Map.of(
28+
"main.eo",
29+
new XMLDocument("<object/>")
30+
)
31+
).defects(),
2632
Matchers.notNullValue()
2733
);
2834
}

0 commit comments

Comments
 (0)