Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 825 for assertequal (0.17 sec)

  1. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

       *
       * @param escaper the non-null escaper to test
       */
      public static void assertBasic(Escaper escaper) throws IOException {
        // Escapers operate on characters: no characters, no escaping.
        Assert.assertEquals("", escaper.escape(""));
        // Assert that escapers throw null pointer exceptions.
        try {
          escaper.escape((String) null);
          Assert.fail("exception not thrown when escaping a null string");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java

            assertEquals(major, artifactVersion.getMajorVersion(), parsed + "check major version");
            assertEquals(minor, artifactVersion.getMinorVersion(), parsed + "check minor version");
            assertEquals(incremental, artifactVersion.getIncrementalVersion(), parsed + "check incremental version");
            assertEquals(buildnumber, artifactVersion.getBuildNumber(), parsed + "check build number");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SetOperationsTest.java

        Set<String> all = Sets.union(friends, enemies);
        assertEquals(5, all.size());
    
        ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy();
        HashSet<String> mut = Sets.union(friends, enemies).copyInto(new HashSet<String>());
    
        enemies.add("Buck");
        assertEquals(6, all.size());
        assertEquals(5, immut.size());
        assertEquals(5, mut.size());
      }
    
      public void testIntersection() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java

        assertUnicodeEscaping(e, "%F0%90%80%80", '\uD800', '\uDC00');
        assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF');
    
        assertEquals("", e.escape(""));
        assertEquals("safestring", e.escape("safestring"));
        assertEquals("embedded%00null", e.escape("embedded\0null"));
        assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar"));
      }
    
      // Helper to assert common expected behaviour of uri escapers.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 17:53:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

              @Override
              public void run() {
                assertEquals(
                    "tearDownTwo should have been run before tearDownOne", false, tearDownOne.ran);
              }
            };
    
        final SimpleTearDown tearDownTwo = new SimpleTearDown(callback);
        stack.addTearDown(tearDownTwo);
    
        assertEquals(false, tearDownOne.ran);
        assertEquals(false, tearDownTwo.ran);
    
        stack.runTearDown();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 10:19:29 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    class ToolchainsBuildingExceptionTest {
        private static final String LS = System.lineSeparator();
    
        @Test
        void testNoProblems() {
            ToolchainsBuildingException e = new ToolchainsBuildingException(Collections.<Problem>emptyList());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/BooleanConversionUtilTest.java

            assertEquals("1", Boolean.TRUE, BooleanConversionUtil.toBoolean(Integer.valueOf(1)));
            assertEquals("2", Boolean.FALSE, BooleanConversionUtil.toBoolean(Integer.valueOf(0)));
            assertEquals("3", Boolean.FALSE, BooleanConversionUtil.toBoolean("0"));
            assertEquals("4", Boolean.TRUE, BooleanConversionUtil.toBoolean("1"));
            assertEquals("5", Boolean.TRUE, BooleanConversionUtil.toBoolean("2"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

      }
    
      public void testBuildMutateBuild() {
        ThreadFactory factory1 = builder.setPriority(1).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
    
        ThreadFactory factory2 = builder.setPriority(2).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
        assertEquals(2, factory2.newThread(monitoredRunnable).getPriority());
      }
    
      public void testBuildTwice() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t01/ProjectInheritanceTest.java

            assertEquals("p0-org", p0.getOrganization().getName());
    
            // ----------------------------------------------------------------------
            // Check p1 value for org name
            // ----------------------------------------------------------------------
    
            MavenProject p1 = getProject(projectFile("maven.t01", "p1"));
    
            assertEquals("p1-org", p1.getOrganization().getName());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        assertExecutionException(future, ex);
        assertEquals(5, runnable.count);
        assertEquals(0, delegate.getQueue().size());
    
        runnable = new ThrowingRunnable(5, ex);
        future = service.scheduleWithFixedDelay(runnable, 1, 1, MILLISECONDS);
        assertExecutionException(future, ex);
        assertEquals(5, runnable.count);
        assertEquals(0, delegate.getQueue().size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top