Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 277 for IllegalStateException (0.14 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java

            @Override
            public ResponseData execute(final RequestData request) {
                final long now = SystemUtil.currentTimeMillis();
                if (now - previousTime < interval) {
                    throw new IllegalStateException();
                }
                previousTime = now;
    
                count++;
                if (count <= exceptionCount) {
                    throw new CrawlerSystemException("exception " + count);
                }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

      }
    
      public void testBase64CannotUpperCase() {
        assertThrows(IllegalStateException.class, () -> base64().upperCase());
      }
    
      public void testBase64CannotLowerCase() {
        assertThrows(IllegalStateException.class, () -> base64().lowerCase());
      }
    
      public void testBase64CannotIgnoreCase() {
        assertThrows(IllegalStateException.class, () -> base64().ignoreCase());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 16:27:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/HashCode.java

       * {@code int} value in little-endian order.
       *
       * @throws IllegalStateException if {@code bits() < 32}
       */
      public abstract int asInt();
    
      /**
       * Returns the first eight bytes of {@linkplain #asBytes() this hashcode's bytes}, converted to a
       * {@code long} value in little-endian order.
       *
       * @throws IllegalStateException if {@code bits() < 64}
       */
      public abstract long asLong();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        Lock lockA = factory.newReentrantLock(OtherOrder.FIRST);
        Lock lockB = factory.newReentrantReadWriteLock(OtherOrder.FIRST).readLock();
    
        lockA.lock();
        assertThrows(IllegalStateException.class, () -> lockB.lock());
    
        lockA.unlock();
        lockB.lock();
      }
    
      public void testReadLock_deadlock() {
        readLockA.lock(); // Establish an ordering from readLockA -> lockB.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        Lock lockA = factory.newReentrantLock(OtherOrder.FIRST);
        Lock lockB = factory.newReentrantReadWriteLock(OtherOrder.FIRST).readLock();
    
        lockA.lock();
        assertThrows(IllegalStateException.class, () -> lockB.lock());
    
        lockA.unlock();
        lockB.lock();
      }
    
      public void testReadLock_deadlock() {
        readLockA.lock(); // Establish an ordering from readLockA -> lockB.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/Type1Message.java

                pos += writeSecurityBufferContent(type1, pos, wsOffOff, workstation);
                return type1;
            }
            catch ( IOException ex ) {
                throw new IllegalStateException(ex.getMessage());
            }
        }
    
    
        @Override
        public String toString () {
            String suppliedDomainString = getSuppliedDomain();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Sep 02 12:55:08 UTC 2018
    - 7.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

        sizesToTest.retainAll(asList(CollectionSize.ZERO, CollectionSize.ONE, CollectionSize.SEVERAL));
    
        logger.fine("   Sizes: " + formatFeatureSet(sizesToTest));
    
        if (sizesToTest.isEmpty()) {
          throw new IllegalStateException(
              name
                  + ": no CollectionSizes specified (check the argument to "
                  + "FeatureSpecificTestSuiteBuilder.withFeatures().)");
        }
    
        TestSuite suite = new TestSuite(name);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/PeekingIterator.java

      /**
       * {@inheritDoc}
       *
       * <p>Implementations may or may not support removal when a call to {@link #peek()} has occurred
       * since the most recent call to {@link #next()}.
       *
       * @throws IllegalStateException if there has been a call to {@link #peek()} since the most recent
       *     call to {@link #next()} and this implementation does not support this sequence of calls
       *     (optional)
       */
      @Override
      void remove();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/ValueGraph.java

       *
       * <p>If {@code node} is removed from the graph after this method is called, the {@code Set}
       * {@code view} returned by this method will be invalidated, and will throw {@code
       * IllegalStateException} if it is accessed in any way, with the following exceptions:
       *
       * <ul>
       *   <li>{@code view.equals(view)} evaluates to {@code true} (but any other {@code equals()}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/ResponseCommonTest.kt

        assertThat(p1.string()).isEqualTo("abcd")
        assertThat(p2.string()).isEqualTo("ab")
      }
    
      @Test fun negativeStatusCodeThrowsIllegalStateException() {
        assertFailsWith<IllegalStateException> {
          newResponse(responseBody("set status code -1"), -1)
        }
      }
    
      @Test fun zeroStatusCodeIsValid() {
        val response = newResponse(responseBody("set status code 0"), 0)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top