Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 261 - 270 of 1,620 for emptify (0.06 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt

        assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1)
        assertThat(statusLine.code).isEqualTo(code)
      }
    
      /**
       * This is not defined in the protocol but some servers won't add the leading empty space when the
       * message is empty. http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1
       */
      @Test
      fun emptyMessageAndNoLeadingSpace() {
        val version = 1
        val code = 503
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt

    import assertk.assertions.isNull
    import kotlin.test.Test
    import kotlin.test.assertFailsWith
    import okhttp3.ResponseBody.Companion.asResponseBody
    import okio.Buffer
    import okio.ByteString.Companion.EMPTY
    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    class ResponseCommonTest {
      @Test fun peekShorterThanResponse() {
        val response = newResponse(responseBody("abcdef"))
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  3. guava/src/com/google/common/graph/IncidentEdgeSet.java

       * incoming edges.
       */
      private Set<N> predecessorsOrEmpty(N node) {
        if (edgeType == EdgeType.INCOMING || edgeType == EdgeType.BOTH) {
          return graph.predecessors(node);
        } else {
          return ImmutableSet.of();
        }
      }
    
      /**
       * Returns the successors of the given node, or an empty set if this set does not represent
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 07 15:57:03 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java

        }
    
        /**
         * Test validateInputStream with edge case: empty stream.
         */
        public void test_validateInputStream_acceptsEmptyStream() {
            final InputStream emptyStream = new ByteArrayInputStream(new byte[0]);
    
            // Should not throw exception for empty but non-null stream
            extractor.testValidateInputStream(emptyStream);
        }
    
        /**
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

         * ability to throw the correct exception in the future.
         */
        assertThrows(NoSuchElementException.class, empty::peek);
        assertThrows(NoSuchElementException.class, empty::peek);
      }
    
      public void testSneakyThrow() throws Exception {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              boolean haveBeenCalled;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        }
    
        @Test
        @DisplayName("Test with empty strings")
        void testWithEmptyStrings() {
            SmbShareInfo info = new SmbShareInfo("", 0, "");
    
            assertEquals("", info.getName());
            assertEquals(SmbConstants.TYPE_SHARE, info.getType());
    
            // Test equals with empty string
            SmbShareInfo info2 = new SmbShareInfo("", 1, "Different");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java

             *
             * @return A processed string with terms and spaces, or an empty string if the reader is null or an IOException occurs.
             */
            public String execute() {
                if (reader == null) {
                    return StringUtil.EMPTY;
                }
                final StringBuilder buf = new StringBuilder(initialCapacity);
                boolean isSpace = false;
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Nov 22 13:28:22 GMT 2025
    - 12K bytes
    - Click Count (0)
  8. src/test/java/jcifs/util/ByteEncodableTest.java

        }
    
        @Test
        void testEncodeEmptySourceArray() {
            // Test with an empty source array
            byte[] data = {};
            ByteEncodable encodable = new ByteEncodable(data, 0, 0);
            byte[] dest = new byte[1];
    
            int encodedLen = encodable.encode(dest, 0);
    
            assertEquals(0, encodedLen, "Encoded length should be zero for empty source array");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/security/MessageDigestUtil.java

         *
         * @param algorithm
         *            The algorithm (refer to the Javadoc of {@link MessageDigest} for available algorithms).
         *            Must not be {@literal null} or an empty string.
         * @return {@link MessageDigest}
         * @throws RuntimeException
         *             If a {@link NoSuchAlgorithmException} occurs
         */
        public static MessageDigest getInstance(final String algorithm) {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

            return Arrays.stream(DosError.DOS_ERROR_CODES).filter(pair -> pair[0] == dosErrorCode).map(pair -> pair[1]).findFirst();
        }
    
        @Test
        @DisplayName("DOS_ERROR_CODES is non‑null and non‑empty")
        void testCodesArrayExistence() {
            assertNotNull(DosError.DOS_ERROR_CODES, "DOS_ERROR_CODES should be non‑null");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top