Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createExactMatcher (0.45 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/toolchain/RequirementMatcherFactoryTest.java

    /**
     *
     */
    class RequirementMatcherFactoryTest {
    
        /**
         * Test of createExactMatcher method, of class RequirementMatcherFactory.
         */
        @Test
        void testCreateExactMatcher() {
            RequirementMatcher matcher;
            matcher = RequirementMatcherFactory.createExactMatcher("foo");
            assertFalse(matcher.matches("bar"));
            assertFalse(matcher.matches("foobar"));
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

            ToolchainModel model = new ToolchainModel();
            model.setType("TYPE");
            DefaultToolchain toolchain = newDefaultToolchain(model);
            toolchain.addProvideToken("name", RequirementMatcherFactory.createExactMatcher("Jane Doe"));
    
            assertFalse(toolchain.matchesRequirements(Collections.singletonMap("name", "John Doe")));
            verify(logger).debug("Toolchain {} doesn't match required property: {}", toolchain, "name");
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/toolchain/RequirementMatcherFactory.java

    /**
     *
     */
    @Deprecated(since = "4.0.0")
    public final class RequirementMatcherFactory {
        private RequirementMatcherFactory() {}
    
        public static RequirementMatcher createExactMatcher(String provideValue) {
            return new ExactMatcher(provideValue);
        }
    
        public static RequirementMatcher createVersionMatcher(String provideValue) {
            return new VersionMatcher(provideValue);
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Feb 12 13:13:28 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

                if ("version".equals(key)) {
                    matcher = RequirementMatcherFactory.createVersionMatcher(value);
                } else {
                    matcher = RequirementMatcherFactory.createExactMatcher(value);
                }
    
                jtc.addProvideToken(key, matcher);
            }
    
            // populate the configuration section
            Xpp3Dom dom = (Xpp3Dom) model.getConfiguration();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top