View Javadoc
1   /*
2    * SPDX-FileCopyrightText: Copyright (c) 2011-2026 Yegor Bugayenko
3    * SPDX-License-Identifier: MIT
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   * Test case for {@link ValidatorsProvider} class.
15   *
16   * @since 0.3
17   */
18  final class DefaultValidatorsProviderTest {
19  
20      @Test
21      void producesCollectionOfValidators() throws Exception {
22          MatcherAssert.assertThat(
23              "internal validators should be returned",
24              new DefaultValidatorsProvider(new Environment.Mock())
25                  .internal().size(),
26              Matchers.greaterThan(0)
27          );
28      }
29  
30      @Test
31      @Disabled
32      void producesCollectionOfExtValidators() throws Exception {
33          MatcherAssert.assertThat(
34              "external validators should be returned",
35              new DefaultValidatorsProvider(new Environment.Mock())
36                  .external().size(),
37              Matchers.greaterThan(0)
38          );
39      }
40  }