Search Options

Results per page
Sort
Preferred Languages
Advance

Results 851 - 860 of 1,611 for expects (0.17 sec)

  1. utils/utils_unix_test.go

    		{
    			file: "/go/work/proj/my.gorm.io/gorm@v1.2.3/utils/utils.go",
    			want: "/go/work/proj/my.gorm.io/gorm@v1.2.3/",
    		},
    	}
    	for _, c := range cases {
    		s := sourceDir(c.file)
    		if s != c.want {
    			t.Fatalf("%s: expected %s, got %s", c.file, c.want, s)
    		}
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Nov 21 02:48:13 UTC 2022
    - 731 bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

            .eventListenerFactory(loggingEventListenerFactory)
            .build()
        try {
          client.newCall(request().build()).execute()
          fail<Any>()
        } catch (expected: UnknownHostException) {
        }
        logRecorder
          .assertLogMatch(Regex("""callStart: Request\{method=GET, url=$url\}"""))
          .assertLogMatch(Regex("""proxySelectStart: $url"""))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

            Request
              .Builder()
              .url(server!!.url("/"))
              .build(),
          )
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isIn("timeout", "Read timed out")
        }
        assertThat(listener.recordedEventTypes()).containsExactly(
          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/StringUtilTest.java

        @DisplayName("Should handle various delimiter types")
        @MethodSource("provideDelimiters")
        void testJoinWithVariousDelimiters(String delimiter, String expected) {
            String result = StringUtil.join(delimiter, "A", "B", "C");
            assertEquals(expected, result);
        }
    
        private static Stream<Arguments> provideDelimiters() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                keyCopy = Arrays.copyOf(key, key.length);
    
                // Validate key length matches expected cipher requirements
                if (keyCopy.length != keyLength) {
                    throw new IllegalArgumentException("Key length mismatch: expected " + keyLength + ", got " + keyCopy.length);
                }
    
                // Create cipher with the copy - algorithm is just "AES" for SecretKeySpec
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java

            assertNotNull(queryParseException);
            assertNull(queryParseException.getCause());
            // getMessage() may return null when constructed with null
            // This is expected behavior for exceptions with null cause
        }
    
        public void test_nestedCause() {
            // Test with nested exceptions
            RuntimeException rootCause = new RuntimeException("Root cause");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java

            } catch (final NoSuchMethodException e) {
                fail("processWebInfLib method should exist");
            }
        }
    
        public void test_packageStructure() {
            // Verify the class is in the expected package structure
            final Package pkg = FessWebResourceRoot.class.getPackage();
            assertNotNull("Package should not be null", pkg);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

            if (structureSize == 9) {
                return this.readErrorResponse(buffer, bufferIndex);
            }
            if (structureSize != 17) {
                throw new SMBProtocolDecodingException("Expected structureSize = 17");
            }
    
            final short dataOffset = buffer[bufferIndex + 2];
            bufferIndex += 4;
            this.dataLength = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/spnego/SpnegoTokenTest.java

        @DisplayName("toByteArray returns empty when no mechanismToken")
        void toByteArrayWhenNull() {
            TestSpnegoToken t = new TestSpnegoToken();
            assertArrayEquals(new byte[0], t.toByteArray(), "empty array expected when mechanismToken is null");
        }
    
        @Test
        @DisplayName("toByteArray returns mechanismToken reference when present")
        void toByteArrayReturnsToken() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. cmd/auth-handler_test.go

    			authT: authTypePostPolicy,
    		},
    	}
    
    	// .. Tests all request auth type.
    	for i, testc := range testCases {
    		authT := getRequestAuthType(testc.req)
    		if authT != testc.authT {
    			t.Errorf("Test %d: Expected %d, got %d", i+1, testc.authT, authT)
    		}
    	}
    }
    
    // Test all s3 supported auth types.
    func TestS3SupportedAuthType(t *testing.T) {
    	type testCase struct {
    		authT authType
    		pass  bool
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top