Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for testSize (0.08 sec)

  1. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

        assertNull(testTable.get('A', 1));
        assertNull(testTable.get('A', 2));
      }
    
      public void testIsEmpty() {
        assertFalse(testTable.isEmpty());
      }
    
      public void testSize() {
        assertEquals(1, testTable.size());
      }
    
      public void testValues() {
        assertThat(testTable.values()).contains("blah");
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

        for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) {
          assertThat(testInstance.values()).containsExactly("foo", "bar", "baz").inOrder();
        }
      }
    
      public void testSize() {
        for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) {
          assertEquals(3, testInstance.size());
        }
      }
    
      public void testContainsValue() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java

            FileSizeFormat format = new FileSizeFormat();
    
            long negativeSize = -100L;
            assertThrows(IllegalArgumentException.class, () -> format.format(negativeSize));
        }
    
        @Test
        void testSize() {
            FileSizeFormat format = new FileSizeFormat();
    
            long _0_bytes = 0L;
            assertEquals("0 B", format.format(_0_bytes));
    
            long _5_bytes = 5L;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      public void testIsEmpty() {
        assertTrue(table.isEmpty());
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertFalse(table.isEmpty());
      }
    
      public void testSize() {
        assertSize(0);
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertSize(3);
      }
    
      public void testEquals() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      public void testIsEmpty() {
        assertTrue(table.isEmpty());
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertFalse(table.isEmpty());
      }
    
      public void testSize() {
        assertSize(0);
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertSize(3);
      }
    
      public void testEquals() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertEquals(initialSize, map.size());
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.remove(keyToRemove));
        }
        assertInvariants(map);
      }
    
      public void testSize() {
        assertInvariants(makeEitherMap());
      }
    
      public void testKeySetRemove() {
        Map<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertEquals(initialSize, map.size());
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.remove(keyToRemove));
        }
        assertInvariants(map);
      }
    
      public void testSize() {
        assertInvariants(makeEitherMap());
      }
    
      public void testKeySetRemove() {
        Map<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/resources/org/apache/maven/artifact/resolver/ArtifactUpdatePolicyTest.xml

    specific language governing permissions and limitations
    under the License.
    -->
    
    <plexus>
      <components>
        <component>
          <role>org.apache.maven.wagon.Wagon</role>
          <role-hint>testfile</role-hint>
          <implementation>org.apache.maven.artifact.resolver.TestFileWagon</implementation>
          <instantiation-strategy>per-lookup</instantiation-strategy>
        </component>
      </components>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top