Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2981 - 2990 of 3,176 for Then (0.11 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt

      fun hostContainsOnlyStrippedCharacters() {
        val url = "http://>/".toHttpUrl()
        assertThat(url.host).isEqualTo(">")
        assertThat(url.toUri().host).isNull()
      }
    
      /**
       * Strip unexpected characters when converting to URI (which is more strict).
       * https://github.com/square/okhttp/issues/5667
       */
      @Test
      fun hostToUriStripsCharacters() {
        val httpUrl = "http://example\".com/".toHttpUrl()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/TreeBasedTable.java

    import java.util.TreeMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@code Table} whose row keys and column keys are ordered by their natural
     * ordering or by supplied comparators. When constructing a {@code TreeBasedTable}, you may provide
     * comparators for the row keys and the column keys, or you may use natural ordering for both.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

            @Override
            public int compare(String o1, String o2) {
              return o1.length() - o2.length();
            }
          };
    
      /** Test a TreeMultiset with a comparator that can return 0 when comparing unequal values. */
      public void testDegenerateComparator() throws Exception {
        TreeMultiset<String> ms = TreeMultiset.create(DEGENERATE_COMPARATOR);
    
        ms.add("foo");
        ms.add("a");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/SecureKeyManagerTest.java

            // Verify main key is removed (archives stay)
            assertFalse(keyManager.hasSessionKey(sessionId), "Main key should be removed");
            // Note: Archives are not automatically removed when removing main key
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            }
    
            @ParameterizedTest
            @DisplayName("Should format different oplock levels correctly")
            @CsvSource({ "0, 0", "1, 1", "2, 2", "8, 8", "255, -1" // byte 255 is -1 when printed as signed
            })
            void testToStringWithDifferentOplockLevels(int inputValue, String expectedDisplay) throws Exception {
                byte oplockLevel = (byte) inputValue;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  6. cmd/sftp-server-driver.go

    	if err != nil {
    		return nil, err
    	}
    
    	_, err = obj.Stat()
    	if err != nil {
    		return nil, err
    	}
    
    	return obj, nil
    }
    
    // TransferError will catch network errors during transfer.
    // When TransferError() is called Close() will also
    // be called, so we do not need to Wait() here.
    func (w *writerAt) TransferError(err error) {
    	_ = w.w.CloseWithError(err)
    	_ = w.r.CloseWithError(err)
    	w.err = err
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 10 16:35:49 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

            assertTrue(mockFilterChain.wasDoFilterCalled()); // Chain should continue if no handler
            assertTrue(corsHandlerFactory.wasGetCalled());
            assertEquals(0, mockResponse.getStatus()); // Status not set when no handler
        }
    
        // Test with different origin formats
        @Test
        public void test_doFilter_differentOrigins() throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 22.6K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

          }
          assertFailsWith<IOException> {
            response.trailers()
          }
        }
      }
    
      private fun MockResponse.Builder.body(
        protocol: Protocol,
        body: String,
      ) = apply {
        when (protocol) {
          Protocol.HTTP_1_1 -> chunkedBody(body, 1024)
    
          // Force multiple chunks.
          else -> body(body)
        }
      }
    
      private fun enableProtocol(protocol: Protocol) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 18.8K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java

                } else {
                    forkedExecutions = calculateForkedGoal(mojoExecution, session, forkedProject, alreadyPlannedExecutions);
                }
    
                // This List can be empty when the executions are already present in the plan
                if (!forkedExecutions.isEmpty()) {
                    mojoExecution.setForkedExecutions(BuilderCommon.getKey(forkedProject), forkedExecutions);
                }
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            @Test
            @DisplayName("Should return null when hash algorithms is null")
            void testGetHashAlgosNull() {
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, null, new byte[] { 0x01 });
    
                assertNull(context.getHashAlgos());
            }
    
            @Test
            @DisplayName("Should return null when salt is null")
            void testGetSaltNull() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 34K bytes
    - Click Count (0)
Back to Top