Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 706 for assertEquals (0.05 seconds)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

            assertEquals("bar", p.getProperty("foo"));
            assertNull(p.getProperty("foo-env"));
    
            p = new Properties();
            p.put("user.home", userDirectory.toString());
            p.put("env.envName", "ci");
            MavenPropertiesLoader.loadProperties(p, mavenUserProps, p::getProperty, false);
            assertEquals("bar-env", p.getProperty("foo"));
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Dec 01 19:41:22 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java

            Authentication authentication = repository.getAuthentication();
            assertNotNull(authentication);
            assertEquals("jason", authentication.getUsername());
            assertEquals("abc123", authentication.getPassword());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzerTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static java.util.Arrays.asList;
    import static java.util.Collections.singletonList;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    class DefaultBuildResumptionAnalyzerTest {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java

            List<String> elements = project.getCompileClasspathElements();
            assertEquals(2, elements.size());
    
            @SuppressWarnings("deprecation")
            List<Artifact> artifacts = project.getCompileArtifacts();
            assertEquals(1, artifacts.size());
            assertTrue(artifacts.get(0).getFile().getName().endsWith("tools.jar"));
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        protected @Nullable Object handleInvocation(
            Object p, Method calledMethod, @Nullable Object[] args) throws Throwable {
          assertEquals(method, calledMethod);
          assertEquals(method + " invoked more than once.", 0, called.get());
          for (int i = 0; i < passedArgs.length; i++) {
            assertEquals(
                "Parameter #" + i + " of " + method + " not forwarded", passedArgs[i], args[i]);
          }
          called.getAndIncrement();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt

        val pin =
          Pin(
            "**.example.co.uk",
            "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
          )
        assertEquals("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=".decodeBase64(), pin.hash)
        assertEquals("sha256", pin.hashAlgorithm)
        assertEquals("**.example.co.uk", pin.pattern)
        assertTrue(pin.matchesHostname("www.example.co.uk"))
        assertTrue(pin.matchesHostname("gopher.example.co.uk"))
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  7. impl/maven-core/src/test/java/org/apache/maven/project/PluginConnectionSimpleTest.java

            assertEquals("3.8.1", retrievedPlugin.getVersion(), "Initial version should match");
    
            // Modify the plugin version
            retrievedPlugin.setVersion("3.11.0");
    
            // Verify the change persists when getting the plugin again
            Plugin pluginAfterModification = project.getPlugin("org.apache.maven.plugins:maven-compiler-plugin");
            assertEquals(
                    "3.11.0",
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jul 04 12:50:13 GMT 2025
    - 5K bytes
    - Click Count (0)
  8. impl/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java

    import org.codehaus.plexus.util.xml.Xpp3Dom;
    import org.junit.jupiter.api.AfterEach;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    /**
     */
    class DefaultBeanConfiguratorTest {
    
        private BeanConfigurator configurator;
    
        @BeforeEach
        void setUp() throws Exception {
            configurator = new DefaultBeanConfigurator();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java

            scope.beforeMojoExecution(event);
            scope.afterMojoExecutionSuccess(event);
            scope.afterExecutionFailure(event);
    
            assertEquals(1, beforeExecution.get());
            assertEquals(1, afterExecutionSuccess.get());
            assertEquals(1, afterExecutionFailure.get());
    
            scope.exit();
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.6K bytes
    - Click Count (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/toolchain/RequirementMatcherFactoryTest.java

            assertTrue(matcher.matches("(1.4,1.5.2]"));
            assertTrue(matcher.matches("(1.5,)"));
            assertEquals("1.5.2", matcher.toString());
    
            // Ensure it is not printed as 1.5.0
            matcher = RequirementMatcherFactory.createVersionMatcher("1.5");
            assertEquals("1.5", matcher.toString());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 11 12:33:57 GMT 2025
    - 2.3K bytes
    - Click Count (0)
Back to Top