Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 781 - 790 of 1,612 for EXPECTED (0.15 seconds)

  1. src/test/java/org/codelibs/fess/util/ResourceUtilTest.java

                fail("Should throw ResourceNotFoundRuntimeException for non-existent file");
            } catch (org.codelibs.core.exception.ResourceNotFoundRuntimeException e) {
                // Expected behavior - method throws exception for non-existent files
                assertTrue(e.getMessage().contains("nonexistent.conf"));
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            secureRandom.nextBytes(incorrectHash);
    
            try {
                preauthService.validatePreauthIntegrity(sessionId, incorrectHash);
                fail("Expected CIFSException");
            } catch (CIFSException e) {
                // Expected
            }
    
            assertFalse(context.isValid());
    
            // Further operations on invalid context should fail
            assertThrows(CIFSException.class, () -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

                    | NtlmFlags.NTLMSSP_NEGOTIATE_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_ALWAYS_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH;
            // Verify exactly the expected bits are set
            assertEquals(expectedFlags, context.ntlmsspFlags);
        }
    
        @Test
        void testConstructor_withoutSigning() {
            // Test constructor when signing is disabled
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/lock/Smb2LockResponse.java

            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 4) {
                throw new SMBProtocolDecodingException("Expected structureSize = 4");
            }
            return 4;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

        class GetterTests {
    
            @Test
            @DisplayName("Should return correct values from getters")
            void testGetters() throws CIFSException {
                // When/Then: All getters should return expected values
                assertEquals(mockBinding, handle.getBinding());
                assertTrue(handle.getMaxRecv() > 0);
                assertTrue(handle.getMaxXmit() > 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  6. 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"""))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  7. 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() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 9K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java

                        throw new XmlPullParserException(
                                "Expected root element 'extensions' but found '" + parser.getName() + "'", parser, null);
                    } else if (parsed) {
                        // fallback, already expected a XmlPullParserException due to invalid XML
                        throw new XmlPullParserException("Duplicated tag: 'extensions'", parser, null);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

            ArtifactResolutionResult res = collect(a);
    
            assertTrue(res.hasVersionRangeViolations(), "Expected " + res + ".hasVersionRangeViolations() to return true");
    
            /*
             * try { ArtifactResolutionResult res = collect( a ); fail( "Expected b not to resolve: " + res ); } catch (
             * OverConstrainedVersionException e ) { assertTrue( e.getMessage().indexOf( "[1.0-SNAPSHOT]" ) <
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 43K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/base/FunctionsTest.java

          // convoluted way to check that the same result happens from each
          Y expected = null;
          try {
            expected = f.apply(i);
          } catch (IllegalArgumentException e) {
            try {
              g.apply(i);
              fail();
            } catch (IllegalArgumentException ok) {
              continue;
            }
          }
          assertEquals(expected, g.apply(i));
        }
      }
    
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
Back to Top