Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 275 for subclass (0.07 seconds)

  1. src/test/java/jcifs/spnego/SpnegoTokenTest.java

    import java.io.IOException;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for SpnegoToken.
     * Uses a minimal concrete subclass to exercise abstract methods.
     */
    class SpnegoTokenTest {
    
        /**
         * Minimal concrete implementation for testing.
         * - parse: sets mechanismToken, throws on null
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java

                // The actual logic is tested in AbstractUpgradeGoalTest
                // Here we just verify that Apply is properly configured as a subclass
                assertInstanceOf(AbstractUpgradeGoal.class, applyGoal, "Apply should extend AbstractUpgradeGoal");
                assertTrue(applyGoal.shouldSaveModifications(), "Apply should save modifications unlike Check goal");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 10:39:17 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  3. docs/en/docs/how-to/authentication-error-status-code.md

    But if for some reason your clients depend on the old behavior, you can revert to it by overriding the method `make_not_authenticated_error` in your security classes.
    
    For example, you can create a subclass of `HTTPBearer` that returns a `403 Forbidden` error instead of the default `401 Unauthorized` error:
    
    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *}
    
    /// tip
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                  public void remove() {
                    throw new IllegalStateException() {
                      /* subclass */
                    };
                  }
    
                  @Override
                  public Integer next() {
                    throw new NoSuchElementException() {
                      /* subclass */
                    };
                  }
    
                  @Override
                  public boolean hasNext() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     * thought of as overkill; however, it's difficult to determine which proper subset of this massive
     * set would be sufficient to expose any possible bug. Brute force is simpler.
     *
     * <p>To use this class the concrete subclass must implement the {@link
     * IteratorTester#newTargetIterator()} method. This is because it's impossible to test an Iterator
     * without changing its state, so the tester needs a steady supply of fresh Iterators.
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        }
    
        value = getWithoutCaching(key);
        if (value != null) {
          addToCache((K) key, value);
        }
        return value;
      }
    
      // Internal methods (package-visible, but treat as only subclass-visible)
    
      @Override
      @Nullable V getIfCached(@Nullable Object key) {
        V value = super.getIfCached(key);
        if (value != null) {
          return value;
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  7. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt

    import org.gradle.api.tasks.TaskAction
    import java.util.regex.Pattern
    import javax.inject.Inject
    
    /**
     * This task scans the main source set and findd samples in javadoc with `class='autoTested'`,
     * then generates a subclass of AbstractAutoTestedSamplesTest for each class including samples and adds them to the integTest.
     *
     * For example, we have two classes ABC.java and XYZ.groovy that include `class='autoTested'`,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Dec 19 06:44:41 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java

            assertEquals(cause, exception.getCause(), "Cause should match the provided throwable");
        }
    
        @Test
        void testIsInstanceOfTransportException() {
            // Verify that RequestTimeoutException is a subclass of TransportException
            RequestTimeoutException exception = new RequestTimeoutException();
            assertTrue(exception instanceof TransportException, "RequestTimeoutException should be an instance of TransportException");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  9. guava/src/com/google/common/graph/MapRetrievalCache.java

        }
    
        value = getWithoutCaching(key);
        if (value != null) {
          addToCache((K) key, value);
        }
        return value;
      }
    
      // Internal methods (package-visible, but treat as only subclass-visible)
    
      @Override
      @Nullable V getIfCached(@Nullable Object key) {
        V value = super.getIfCached(key);
        if (value != null) {
          return value;
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                  public void remove() {
                    throw new IllegalStateException() {
                      /* subclass */
                    };
                  }
    
                  @Override
                  public Integer next() {
                    throw new NoSuchElementException() {
                      /* subclass */
                    };
                  }
    
                  @Override
                  public boolean hasNext() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 10.3K bytes
    - Click Count (0)
Back to Top