1
2
3
4
5 package com.qulice.maven;
6
7 import com.qulice.spi.Environment;
8 import org.hamcrest.MatcherAssert;
9 import org.hamcrest.Matchers;
10 import org.junit.jupiter.api.Disabled;
11 import org.junit.jupiter.api.Test;
12
13
14
15
16
17 final class DefaultValidatorsProviderTest {
18
19 @Test
20 void producesCollectionOfValidators() throws Exception {
21 MatcherAssert.assertThat(
22 "internal validators should be returned",
23 new DefaultValidatorsProvider(new Environment.Mock())
24 .internal().size(),
25 Matchers.greaterThan(0)
26 );
27 }
28
29 @Test
30 @Disabled
31 void producesCollectionOfExtValidators() throws Exception {
32 MatcherAssert.assertThat(
33 "external validators should be returned",
34 new DefaultValidatorsProvider(new Environment.Mock())
35 .external().size(),
36 Matchers.greaterThan(0)
37 );
38 }
39
40 }