Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for isSameInstanceAs (0.26 sec)

  1. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testEnsureCapacity() {
        assertThat(Doubles.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Doubles.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Doubles.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(
                Arrays.equals(
                    new double[] {(double) 1, (double) 0, (double) 0},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Longs.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Longs.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Longs.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Longs.ensureCapacity(ARRAY1, 2, 1))
            .isEqualTo(new long[] {(long) 1, (long) 0, (long) 0});
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

          getDone(future);
          fail();
        } catch (ExecutionException e) {
          assertThat(e.getCause()).isSameInstanceAs(expectedException);
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(expectedException);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/BytesTest.java

      }
    
      public void testEnsureCapacity() {
        assertThat(Bytes.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Bytes.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Bytes.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Bytes.ensureCapacity(ARRAY1, 2, 1))
            .isEqualTo(new byte[] {(byte) 1, (byte) 0, (byte) 0});
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/IntsTest.java

        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Ints.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Ints.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Ints.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Ints.ensureCapacity(ARRAY1, 2, 1)).isEqualTo(new int[] {(int) 1, (int) 0, (int) 0});
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

      public void testLexicographicalComparatorSerializable() {
        Comparator<byte[]> comparator = SignedBytes.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      public void testSortDescending() {
        testSortDescending(new byte[] {}, new byte[] {});
        testSortDescending(new byte[] {1}, new byte[] {1});
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/CharsTest.java

        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Chars.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Chars.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Chars.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Chars.ensureCapacity(ARRAY1, 2, 1))
            .isEqualTo(new char[] {(char) 1, (char) 0, (char) 0});
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // Ensure we get a unique execution exception on each get
        assertNotSame(ee1, ee2);
    
        assertThat(ee1).hasCauseThat().isSameInstanceAs(failure);
        assertThat(ee2).hasCauseThat().isSameInstanceAs(failure);
    
        checkStackTrace(ee1);
        checkStackTrace(ee2);
      }
    
      public void testCancel_notDoneNoInterrupt() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            spy(
                new AsyncFunction<Throwable, Integer>() {
                  @Override
                  public ListenableFuture<Integer> apply(Throwable t) throws Exception {
                    assertThat(t).isSameInstanceAs(raisedException);
                    return immediateFuture(20);
                  }
                });
        ListenableFuture<Integer> failingFuture = immediateFailedFuture(raisedException);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            spy(
                new AsyncFunction<Throwable, Integer>() {
                  @Override
                  public ListenableFuture<Integer> apply(Throwable t) throws Exception {
                    assertThat(t).isSameInstanceAs(raisedException);
                    return immediateFuture(20);
                  }
                });
        ListenableFuture<Integer> failingFuture = immediateFailedFuture(raisedException);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top