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   * @since 0.3
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  }