mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Optimize ci
This commit is contained in:
parent
c1b5c0ab81
commit
99ffe18d2b
6 changed files with 153 additions and 57 deletions
|
|
@ -45,10 +45,12 @@ public class BaseResolverConfigurationTest {
|
|||
private class TestResolvingStrategy extends StrictRelativeResolvingStrategy {
|
||||
|
||||
void setInternalProperty(final SchemaFactory factory, final boolean lenient) {
|
||||
allowExternalSchema(factory, lenient, "quatsch");
|
||||
allowExternalSchema(factory, lenient, NOT_EXISTING_SCHEME);
|
||||
}
|
||||
}
|
||||
|
||||
public static final String NOT_EXISTING_SCHEME = "not-existing-scheme";
|
||||
|
||||
@Rule
|
||||
public ExpectedException expectedException = ExpectedException.none();
|
||||
|
||||
|
|
@ -75,7 +77,7 @@ public class BaseResolverConfigurationTest {
|
|||
final TestResolvingStrategy s = new TestResolvingStrategy();
|
||||
s.setInternalProperty(sf, true);
|
||||
s.setInternalProperty(sf, false);
|
||||
verify(sf, times(2)).setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "quatsch");
|
||||
verify(sf, times(2)).setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, BaseResolverConfigurationTest.NOT_EXISTING_SCHEME);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue