Skip to content

Commit

Permalink
#135 one test for all
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 2, 2024
1 parent c7de8c8 commit 702088f
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/test/java/com/yegor256/xsline/StSchemaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;

/**
* Test case for {@link StSchema}.
Expand Down Expand Up @@ -63,31 +60,7 @@ void shouldThrow() {
}

@Test
@DisabledOnOs(OS.WINDOWS)
void validatesWithoutSchema() {
final Path xsd = Paths.get("src/test/resources/com/yegor256/xsline/simple.xsd");
Assumptions.assumeTrue(xsd.toFile().exists());
MatcherAssert.assertThat(
new Xsline(new StSchema()).pass(
new XMLDocument(
String.join(
"",
"<foo xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' ",
String.format(
"xsi:noNamespaceSchemaLocation='file://%s'>",
xsd.toFile().getAbsoluteFile()
),
"42</foo>"
)
)
),
XhtmlMatchers.hasXPaths("/foo")
);
}

@Test
@EnabledOnOs(OS.WINDOWS)
void validatesWithoutSchemaOnWindows() {
final Path xsd = Paths.get("src/test/resources/com/yegor256/xsline/simple.xsd");
Assumptions.assumeTrue(xsd.toFile().exists());
MatcherAssert.assertThat(
Expand Down

0 comments on commit 702088f

Please sign in to comment.