Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 134 for teststring (0.08 sec)

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

        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[bar, foo x 2]", multiset.toString());
      }
    
      public void testToString() {
        Multiset<String> ms = TreeMultiset.create();
        ms.add("a", 3);
        ms.add("c", 1);
        ms.add("b", 2);
    
        assertEquals("[a x 3, b x 2, c]", ms.toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        // The radix is used as an array index, so try a negative value.
        assertThrows(NumberFormatException.class, () -> UnsignedBytes.parseUnsignedByte("0", -1));
      }
    
      public void testToString() {
        // We can easily afford to test this exhaustively.
        for (int i = 0; i <= 0xff; i++) {
          assertThat(UnsignedBytes.toString((byte) i)).isEqualTo(Integer.toString(i));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> Types.newParameterizedType(Map.class, String.class, Integer.class, Long.class));
      }
    
      public void testToString() {
        assertEquals(int[].class.getName(), Types.toString(int[].class));
        assertEquals(int[][].class.getName(), Types.toString(int[][].class));
        assertEquals(String[].class.getName(), Types.toString(String[].class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypesTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> Types.newParameterizedType(Map.class, String.class, Integer.class, Long.class));
      }
    
      public void testToString() {
        assertEquals(int[].class.getName(), Types.toString(int[].class));
        assertEquals(int[][].class.getName(), Types.toString(int[][].class));
        assertEquals(String[].class.getName(), Types.toString(String[].class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/PairedStatsTest.java

            .testEquals();
      }
    
      public void testSerializable() {
        SerializableTester.reserializeAndAssert(MANY_VALUES_PAIRED_STATS);
      }
    
      public void testToString() {
        assertThat(EMPTY_PAIRED_STATS.toString())
            .isEqualTo("PairedStats{xStats=Stats{count=0}, yStats=Stats{count=0}}");
        assertThat(MANY_VALUES_PAIRED_STATS.toString())
            .isEqualTo(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> first.get(10, SECONDS));
        assertThat(expected).hasCauseThat().isInstanceOf(RejectedExecutionException.class);
      }
    
      public void testToString() {
        final Runnable[] currentTask = new Runnable[1];
        final Executor delegate =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                currentTask[0] = task;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            map.put("3", "test3");
            assertThat(map.equals(copy), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToString() throws Exception {
            assertThat(map.toString(), is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testClear() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertEquals(STRING.length(), source.copyTo(sink));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

          assertThat(length - baseStackDepth).isLessThan(DIRECT_EXECUTIONS_PER_THREAD / 2);
        }
      }
    
      @SuppressWarnings("ObjectToString") // Intended behavior
      public void testToString() {
        Future<?> unused = serializer.submitAsync(firstCallable, directExecutor());
        TestCallable secondCallable = new TestCallable(SettableFuture.<Void>create());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      private static byte[] byteArrayWith9s(int size) {
        byte[] bytez = new byte[size];
        Arrays.fill(bytez, (byte) 0x99);
        return bytez;
      }
    
      public void testToString() {
        byte[] data = new byte[] {127, -128, 5, -1, 14};
        assertEquals("7f8005ff0e", HashCode.fromBytes(data).toString());
        assertEquals("7f8005ff0e", base16().lowerCase().encode(data));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top