Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for testSize (0.26 sec)

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

        ByteStreams.copy(in, out);
        in.close();
        out.close();
    
        assertTrue(source.wasStreamClosed());
        assertArrayEquals(bytes, out.toByteArray());
      }
    
      public void testSize() throws IOException {
        assertEquals(bytes.length, source.size());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        // test that we can get the size even if skip() isn't supported
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

        /**
         * @throws Exception
         */
        @After
        public void tearDown() throws Exception {
            map = null;
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSize() throws Exception {
            assertThat(map.size(), equalTo(3));
            map.put("3", "test3");
            assertThat(map.size(), equalTo(4));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

      static final int WARMUP_MIN = 120;
      static final int WARMUP_MAX = 135;
      static final int WARMUP_SIZE = WARMUP_MAX - WARMUP_MIN;
    
      public void testSize_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          // don't let the entries get GCed
          List<Entry<Object, Object>> warmed = warmUp(cache);
          assertEquals(WARMUP_SIZE, cache.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

      static final int WARMUP_MIN = 120;
      static final int WARMUP_MAX = 135;
      static final int WARMUP_SIZE = WARMUP_MAX - WARMUP_MIN;
    
      public void testSize_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          // don't let the entries get GCed
          List<Entry<Object, Object>> warmed = warmUp(cache);
          assertEquals(WARMUP_SIZE, cache.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteStreams.copy(in, out);
        in.close();
        out.close();
    
        assertTrue(source.wasStreamClosed());
        assertArrayEquals(bytes, out.toByteArray());
      }
    
      public void testSize() throws IOException {
        assertEquals(bytes.length, source.size());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        // test that we can get the size even if skip() isn't supported
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/FluentIterableTest.java

              public Iterator<Integer> iterator() {
                return asList(0, 1).iterator();
              }
            };
        assertEquals(2, FluentIterable.from(iterable).size());
      }
    
      public void testSize_collectionDoesntIterate() {
        List<Integer> nums = asList(1, 2, 3, 4, 5);
        List<Integer> collection =
            new ArrayList<Integer>(nums) {
              @Override
              public Iterator<Integer> iterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

              public Iterator<Integer> iterator() {
                return asList(0, 1).iterator();
              }
            };
        assertEquals(2, FluentIterable.from(iterable).size());
      }
    
      public void testSize_collectionDoesntIterate() {
        List<Integer> nums = asList(1, 2, 3, 4, 5);
        List<Integer> collection =
            new ArrayList<Integer>(nums) {
              @Override
              public Iterator<Integer> iterator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

            fail("Expected UnsupportedOperationException.");
          } catch (UnsupportedOperationException expected) {
          }
        }
        assertInvariants(map);
      }
    
      public void testSize() {
        assertInvariants(makeEitherMap());
      }
    
      public void testKeySetRemove() {
        Map<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IterablesTest.java

              public Iterator<Integer> iterator() {
                return asList(0, 1).iterator();
              }
            };
        assertEquals(2, Iterables.size(iterable));
      }
    
      @SuppressWarnings("serial")
      public void testSize_collection_doesntIterate() {
        List<Integer> nums = asList(1, 2, 3, 4, 5);
        List<Integer> collection =
            new ArrayList<Integer>(nums) {
              @Override
              public Iterator<Integer> iterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

            fail("Expected UnsupportedOperationException.");
          } catch (UnsupportedOperationException expected) {
          }
        }
        assertInvariants(map);
      }
    
      public void testSize() {
        assertInvariants(makeEitherMap());
      }
    
      public void testKeySetRemove() {
        Map<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
Back to top