Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1681 - 1690 of 6,976 for class (0.04 sec)

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

        ImmutableDoubleArray iia = ImmutableDoubleArray.of(0, 1, 3);
        assertThrows(IndexOutOfBoundsException.class, () -> iia.get(-1));
        assertThrows(IndexOutOfBoundsException.class, () -> iia.get(3));
    
        ImmutableDoubleArray sub = iia.subArray(1, 2);
        assertThrows(IndexOutOfBoundsException.class, () -> sub.get(-1));
      }
    
      public void testIndexOf() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  2. docs/en/docs/reference/uploadfile.md

    # `UploadFile` class
    
    You can define *path operation function* parameters to be of the type `UploadFile` to receive files from the request.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import UploadFile
    ```
    
    ::: fastapi.UploadFile
        options:
            members:
                - file
                - filename
                - size
                - headers
                - content_type
                - read
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 472 bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

      private static boolean isLongTimeUnitBased(Method method) {
        Class<?>[] parameterTypes = method.getParameterTypes();
        return parameterTypes.length >= 2
            && parameterTypes[parameterTypes.length - 2] == long.class
            && parameterTypes[parameterTypes.length - 1] == TimeUnit.class;
      }
    
      /** Determines whether the given method takes a Duration as its last parameter. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

    /**
     * Test suite for {@link Trans2GetDfsReferral}.
     */
    @org.junit.jupiter.api.extension.ExtendWith(MockitoExtension.class)
    class Trans2GetDfsReferralTest {
    
        private static Object getPrivateField(Object target, String fieldName) throws Exception {
            Class<?> clazz = target.getClass();
            while (clazz != null) {
                try {
                    Field f = clazz.getDeclaredField(fieldName);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/ByteEncodableTest.java

    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    import org.junit.jupiter.api.Test;
    
    class ByteEncodableTest {
    
        @Test
        void testConstructorAndSize() {
            // Test with a basic byte array
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/HexdumpTest.java

            // When/Then
            assertThrows(IndexOutOfBoundsException.class, () -> {
                Hexdump.toHexString(data, -1, 16);
            });
    
            assertThrows(IndexOutOfBoundsException.class, () -> {
                Hexdump.toHexString(data, 0, data.length + 1);
            });
    
            assertThrows(IndexOutOfBoundsException.class, () -> {
                Hexdump.toHexString(data, 16, 32); // offset + length > data.length
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

            ConcurrentModificationException.class,
            () -> {
              Iterator<V> iterator = getMap().values().iterator();
              getMap().clear();
              iterator.next();
            });
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClear_unsupported() {
        assertThrows(UnsupportedOperationException.class, () -> getMap().clear());
        expectUnchanged();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/curl/CurlExceptionTest.java

    import static org.junit.Assert.assertSame;
    import static org.junit.Assert.assertTrue;
    
    import java.io.IOException;
    
    import org.junit.Test;
    
    /**
     * Test class for CurlException.
     * Tests exception creation, message handling, and cause propagation.
     */
    public class CurlExceptionTest {
    
        @Test
        public void testConstructorWithMessage() {
            String message = "Test error message";
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

    import com.google.common.annotations.VisibleForTesting;
    import java.util.Map;
    
    /**
     * An implementation-specific parameter class suitable for initializing {@link
     * ArrayBasedCharEscaper} or {@link ArrayBasedUnicodeEscaper} instances. This class should be used
     * when more than one escaper is created using the same character replacement mapping to allow the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/DfsResolverTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.smb.DfsImpl;
    import jcifs.smb.SmbTransportInternal;
    
    @ExtendWith(MockitoExtension.class)
    class DfsResolverTest {
    
        private DfsResolver dfsResolver;
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top