Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 892 for New (0.13 sec)

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

        testRotate(new byte[] {1, 2}, -1, new byte[] {2, 1});
        testRotate(new byte[] {1, 2}, -2, new byte[] {1, 2});
        testRotate(new byte[] {1, 2}, 0, new byte[] {1, 2});
        testRotate(new byte[] {1, 2}, 1, new byte[] {2, 1});
        testRotate(new byte[] {1, 2}, 2, new byte[] {1, 2});
        testRotate(new byte[] {1, 2}, 3, new byte[] {2, 1});
    
        testRotate(new byte[] {1, 2, 3}, -5, new byte[] {3, 1, 2});
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

      }
    
      public void testFailStart() throws Exception {
        Service a = new NoOpService();
        Service b = new FailStartService();
        Service c = new NoOpService();
        Service d = new FailStartService();
        Service e = new NoOpService();
        ServiceManager manager = new ServiceManager(asList(a, b, c, d, e));
        RecordingListener listener = new RecordingListener();
        manager.addListener(listener, directExecutor());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        testSortDescending(new byte[] {}, 0, 0, new byte[] {});
        testSortDescending(new byte[] {1}, 0, 1, new byte[] {1});
        testSortDescending(new byte[] {1, 2}, 0, 2, new byte[] {2, 1});
        testSortDescending(new byte[] {1, 3, 1}, 0, 2, new byte[] {3, 1, 1});
        testSortDescending(new byte[] {1, 3, 1}, 0, 1, new byte[] {1, 3, 1});
        testSortDescending(
            new byte[] {GREATEST - 1, 1, GREATEST - 2, 2},
            1,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/EnumTest.java

                try ( SmbFile a = new SmbFile(f, "a.txt");
                      SmbFile b = new SmbFile(f, "b.txt");
                      SmbFile c = new SmbFile(f, "c.bar") ) {
    
                    a.createNewFile();
                    b.createNewFile();
                    c.createNewFile();
    
                    SmbFile[] files = f.listFiles(new DosFileFilter("*.txt", -1));
                    assertNotNull(files);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/BigDecimalMathTest.java

      public void testRoundToDouble_maxDouble() {
        BigDecimal maxDoubleAsBD = new BigDecimal(Double.MAX_VALUE);
        new RoundToDoubleTester(maxDoubleAsBD).setExpectation(Double.MAX_VALUE, values()).test();
      }
    
      public void testRoundToDouble_maxDoublePlusOne() {
        BigDecimal maxDoubleAsBD = new BigDecimal(Double.MAX_VALUE).add(BigDecimal.ONE);
        new RoundToDoubleTester(maxDoubleAsBD)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

          new TestByteSource(new byte[10], OPEN_THROWS);
      private static final ByteSource BROKEN_READ_SOURCE =
          new TestByteSource(new byte[10], READ_THROWS);
      private static final ByteSink BROKEN_CLOSE_SINK = new TestByteSink(CLOSE_THROWS);
      private static final ByteSink BROKEN_OPEN_SINK = new TestByteSink(OPEN_THROWS);
      private static final ByteSink BROKEN_WRITE_SINK = new TestByteSink(WRITE_THROWS);
    
    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)
  7. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        skipHelper(0, 0, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 1));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 0));
        skipHelper(100, -1, new ByteArrayInputStream(bytes));
        assertThrows(EOFException.class, () -> skipHelper(101, 0, new ByteArrayInputStream(bytes)));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

            .createTestSuite();
      }
    
      private static String[] dedupe(String[] elements) {
        Set<String> tmp = new LinkedHashSet<>();
        Collections.addAll(tmp, elements);
        return tmp.toArray(new String[0]);
      }
    
      static <T> Comparator<T> arbitraryNullFriendlyComparator() {
        return new NullFriendlyComparator<>();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        multimap.put(new LegacyComparable("foo"), new LegacyComparable("f"));
        multimap.put(new LegacyComparable("foo"), new LegacyComparable("o"));
        multimap.put(new LegacyComparable("foo"), new LegacyComparable("o"));
        multimap.put(new LegacyComparable("bar"), new LegacyComparable("b"));
        multimap.put(new LegacyComparable("bar"), new LegacyComparable("a"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CharSourceTest.java

      static final CharSource BROKEN_OPEN_SOURCE = new TestCharSource("ABC", OPEN_THROWS);
      static final CharSink BROKEN_WRITE_SINK = new TestCharSink(WRITE_THROWS);
      static final CharSink BROKEN_CLOSE_SINK = new TestCharSink(CLOSE_THROWS);
      static final CharSink BROKEN_OPEN_SINK = new TestCharSink(OPEN_THROWS);
    
      private static final ImmutableSet<CharSource> BROKEN_SOURCES =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
Back to top