Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 231 for AssertionError (0.07 sec)

  1. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
            throw new AssertionError("malformed class path entry: " + entry, e);
          }
        }
        return urls.build();
      }
    
      /**
       * These tests fail in JDK 9 and JDK 10 for an unknown reason. It might be the test; it might be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

          switch (state) {
            case RUNNABLE:
            case BLOCKED:
              Thread.yield();
              break;
            case WAITING:
              return;
            default:
              throw new AssertionError("unexpected state: " + state);
          }
        }
      }
    
      abstract static class OldAbstractFuture<V> implements ListenableFuture<V> {
    
        /** Synchronization control for AbstractFutures. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        for (ClassPath.ClassInfo classInfo : classes) {
          if (classInfo.getName().equals(cls.getName())) {
            return classInfo;
          }
        }
        throw new AssertionError("failed to find " + cls);
      }
    
      private static ResourceInfo resourceInfo(Class<?> cls) {
        String resource = cls.getName().replace('.', '/') + ".class";
        ClassLoader loader = cls.getClassLoader();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Range.java

        switch (boundType) {
          case OPEN:
            return lessThan(endpoint);
          case CLOSED:
            return atMost(endpoint);
        }
        throw new AssertionError();
      }
    
      /**
       * Returns a range that contains all values strictly greater than {@code endpoint}.
       *
       * @since 14.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/Closer.java

            }
          }
        }
    
        if (thrown == null && throwable != null) {
          throwIfInstanceOf(throwable, IOException.class);
          throwIfUnchecked(throwable);
          throw new AssertionError(throwable); // not possible
        }
      }
    
      /** Suppression strategy interface. */
      @VisibleForTesting
      interface Suppressor {
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

          case UNORDERED:
            orderedNodeConnections = null;
            break;
          case STABLE:
            orderedNodeConnections = new ArrayList<>();
            break;
          default:
            throw new AssertionError(incidentEdgeOrder.type());
        }
    
        return new DirectedGraphConnections<>(
            /* adjacentNodeValues = */ new HashMap<N, Object>(initialCapacity, INNER_LOAD_FACTOR),
            orderedNodeConnections,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 18K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSourceTest.java

        try {
          in.copyTo(out);
          fail();
        } catch (IOException expected) {
          return expected.getSuppressed().length;
        }
        throw new AssertionError(); // can't happen
      }
    
      private static ByteSource newNormalByteSource() {
        return ByteSource.wrap(new byte[10]);
      }
    
      private static ByteSink newNormalByteSink() {
        return new ByteSink() {
    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/src/com/google/common/collect/HashBiMap.java

            nextInBucketKToV[prevInBucket] = nextInBucketKToV[entry];
            nextInBucketKToV[entry] = ABSENT;
            return;
          }
          prevInBucket = entryInBucket;
        }
        throw new AssertionError("Expected to find entry with key " + keys[entry]);
      }
    
      /**
       * Updates the V-to-K hash table to remove the entry at the specified index, which is assumed to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

              e: IOException,
            ) {
              throw AssertionError()
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              try {
                responseRef.put(response)
              } catch (e: InterruptedException) {
                throw AssertionError()
              }
            }
          },
        )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Closer.java

            }
          }
        }
    
        if (thrown == null && throwable != null) {
          throwIfInstanceOf(throwable, IOException.class);
          throwIfUnchecked(throwable);
          throw new AssertionError(throwable); // not possible
        }
      }
    
      /** Suppression strategy interface. */
      @VisibleForTesting
      interface Suppressor {
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top