Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 446 for amatch (0.14 sec)

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

      }
    
      public void testCreateWithInvalidSizes() {
        try {
          HashBasedTable.create(100, -5);
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HashBasedTable.create(-5, 20);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateCopy() {
        Table<String, Integer, Character> original =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        Builder<String, Integer> builder = new Builder<>();
        try {
          builder.put(Maps.immutableEntry("one", (Integer) null));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.put(Maps.immutableEntry((String) null, 1));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      private static class StringHolder {
        @Nullable String string;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

      }
    
      private static class NoOpThreadedService extends AbstractExecutionThreadService {
        final CountDownLatch latch = new CountDownLatch(1);
    
        @Override
        protected void run() throws Exception {
          latch.await();
        }
    
        @Override
        protected void triggerShutdown() {
          latch.countDown();
        }
      }
    
      private static class StartFailingService extends AbstractService {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                  (k, v) -> {
                    assertEquals(k0(), k);
                    assertEquals(v0(), v);
                    throw new ExpectedException();
                  });
          fail("Expected ExpectedException");
        } catch (ExpectedException expected) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentFunctionThrows() {
        try {
          getMap()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testIllegalCreate() {
        Collection<Color> empty = EnumSet.noneOf(Color.class);
        try {
          EnumMultiset.create(empty);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateEmptyWithClass() {
        Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
        ms.add(Color.RED);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

                  return task.toString();
                }
              };
          queue.add(submittedTask);
          workerRunningState = QUEUING;
        }
    
        try {
          executor.execute(worker);
        } catch (Throwable t) {
          // Any Exception is either a RuntimeException or sneaky checked exception.
          synchronized (queue) {
            boolean removed =
                (workerRunningState == IDLE || workerRunningState == QUEUING)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          if (cache.size() == 1) {
            break;
          }
          try {
            Thread.sleep(10);
          } catch (InterruptedException e) {
            /* ignore */
          }
          try {
            // Fill up heap so soft references get cleared.
            filler = new byte[Math.max(filler.length, filler.length * 2)];
          } catch (OutOfMemoryError e) {
          }
        }
    
        CacheTesting.processPendingNotifications(cache);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/BooleansTest.java

        try {
          Booleans.ensureCapacity(ARRAY_FALSE, -1, 1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          // notice that this should even fail when no growth was needed
          Booleans.ensureCapacity(ARRAY_FALSE, 1, -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testJoin() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          put(key, calculatedValue);
        } catch (RuntimeException e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
          throw new UncheckedExecutionException(e);
        } catch (Exception e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
          throw new ExecutionException(e);
        } catch (Error e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            multiExceptionListIterator.promoteToNext(targetReturnValueFromNext);
          }
    
          referenceReturnValue = method.execute(reference);
        } catch (PermittedMetaException e) {
          referenceException = e;
        } catch (UnknownElementException e) {
          Helpers.fail(e, e.getMessage());
        }
    
        if (referenceException == null) {
          if (targetException != null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top