Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 814 for assertequal (0.08 sec)

  1. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertEquals(0, counter.getCount());
        assertEquals(0, counter.read());
        assertEquals(1, counter.getCount());
      }
    
      public void testReadArray() throws IOException {
        assertEquals(10, counter.read(new byte[10]));
        assertEquals(10, counter.getCount());
      }
    
      public void testReadArrayRange() throws IOException {
        assertEquals(3, counter.read(new byte[10], 1, 3));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/DfsTest.java

            assertNotNull(ref);
            assertEquals(getTestDfsTargetServer().toLowerCase(Locale.ROOT), ref.getServer().toLowerCase(Locale.ROOT));
            assertEquals(dfsTestSharePath.length() - 1, ref.getPathConsumed());
    
            DfsReferralData ref2 = doResolve(dfsTestSharePath, "", true, true);
    
            assertNotNull(ref2);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 13.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          cache.invalidate(key1);
          assertFalse(cache.asMap().containsKey(key1));
          assertTrue(cache.asMap().containsKey(key2));
          assertEquals(1, cache.size());
          assertEquals(ImmutableSet.of(key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).contains(value2);
          assertEquals(ImmutableSet.of(immutableEntry(key2, value2)), cache.asMap().entrySet());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        }
      }
    
      /** toString returns current value */
      public void testToString() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES);
        assertEquals(Arrays.toString(VALUES), aa.toString());
        assertEquals("[]", new AtomicDoubleArray(0).toString());
        assertEquals("[]", new AtomicDoubleArray(new double[0]).toString());
      }
    
      /** compareAndSet treats +0.0 and -0.0 as distinct values */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            assertEquals("d\r\ne=e", s320, "6");
            String s319 = props1.getProperty("f");
            assertEquals("fff", s319, "7");
            String s318 = props1.getProperty("g");
            assertEquals("g", s318, "8");
            String s317 = props1.getProperty("h h");
            assertEquals("", s317, "9");
            String s316 = props1.getProperty(" ");
            assertEquals("i=i", s316, "10");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

          assertEquals(0, startUpCalled);
          assertEquals(0, shutDownCalled);
          startUpCalled++;
          assertEquals(State.STARTING, state());
        }
    
        @Override
        protected void shutDown() throws Exception {
          assertEquals(1, startUpCalled);
          assertEquals(0, shutDownCalled);
          shutDownCalled++;
          assertEquals(State.STOPPING, state());
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/StopwatchTest.java

        ticker.advance(2);
        assertEquals(0, stopwatch.elapsed(NANOSECONDS));
        stopwatch.start();
        ticker.advance(3);
        assertEquals(3, stopwatch.elapsed(NANOSECONDS));
      }
    
      public void testReset_whileRunning() {
        ticker.advance(1);
        stopwatch.start();
        assertEquals(0, stopwatch.elapsed(NANOSECONDS));
        ticker.advance(2);
        assertEquals(2, stopwatch.elapsed(NANOSECONDS));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/DocListTest.java

            DocList docList = new DocList();
    
            assertEquals(0, docList.getContentSize());
            assertEquals(0, docList.getProcessingTime());
    
            docList.addContentSize(1000);
            docList.addProcessingTime(999);
            assertEquals(1000, docList.getContentSize());
            assertEquals(999, docList.getProcessingTime());
    
            docList.clear();
            assertEquals(0, docList.getContentSize());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/LongMathTest.java

          for (long b : POSITIVE_LONG_CANDIDATES) {
            assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(LongMath.gcd(a, b)));
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testGCDZero() {
        for (long a : POSITIVE_LONG_CANDIDATES) {
          assertEquals(a, LongMath.gcd(a, 0));
          assertEquals(a, LongMath.gcd(0, a));
        }
        assertEquals(0, LongMath.gcd(0, 0));
      }
    
      @GwtIncompatible // TODO
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        ImmutableList<String> list = multiset.asList();
        assertEquals(ImmutableList.of("a", "a", "b", "b", "b"), list);
        SerializableTester.reserializeAndAssert(list);
        assertEquals(2, list.indexOf("b"));
        assertEquals(4, list.lastIndexOf("b"));
      }
    
      public void testCopyOfDefensiveCopy() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top