Search Options

Results per page
Sort
Preferred Languages
Advance

Results 751 - 760 of 1,443 for expected (0.15 sec)

  1. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

    import jcifs.CIFSException;
    import jcifs.Credentials;
    
    /**
     * Tests for SmbRenewableCredentials interface.
     *
     * Since this file is an interface with a single method, we provide small
     * helper implementations to exercise expected interaction patterns and edge cases.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbRenewableCredentialsTest {
    
        // Simple base class to satisfy the extended CredentialsInternal contract
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtStatusTest.java

            // Pending status is informational (not error)
            assertTrue((pendingStatus & (int) 0xC0000000L) != (int) 0xC0000000L);
        }
    
        @Test
        @DisplayName("Should define all expected constants")
        void testAllExpectedConstants() {
            // Verify important constants exist
            assertTrue(NtStatus.NT_STATUS_SUCCESS == 0x00000000);
            assertTrue(NtStatus.NT_STATUS_ACCESS_DENIED != 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/query/QueryFieldConfigTest.java

            try {
                queryFieldConfig.isApiResponseField("field1");
                fail("Should throw NullPointerException");
            } catch (NullPointerException e) {
                // Expected
            }
        }
    
        public void test_getResponseFields() {
            String[] fields = { "field1", "field2", "field3" };
            queryFieldConfig.setResponseFields(fields);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        File file = createTempFile();
        Files.write(bytes, file);
    
        // Test
        MappedByteBuffer actual = Files.map(file);
    
        // Verify
        ByteBuffer expected = ByteBuffer.wrap(bytes);
        assertTrue("ByteBuffers should be equal.", expected.equals(actual));
      }
    
      public void testMap_noSuchFile() throws IOException {
        // Setup
        File file = createTempFile();
        boolean deleted = file.delete();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        try {
          collection.retainAll(target.toRetain);
          String message = Platform.format("retainAll(%s) should throw", target);
          fail(message);
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      private void expectReturnsFalseOrThrows(Target target) {
        String message = Platform.format("retainAll(%s) should return false or throw", target);
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle null buffer")
            void testReadBytesWithNullBuffer() {
                // This is expected behavior for echo request - no reading needed
                assertDoesNotThrow(() -> {
                    int result = echoRequest.readBytesWireFormat(null, 0);
                    assertEquals(0, result);
                });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Supplier.java

     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
     * <p>To use an existing supplier instance (say, named {@code supplier}) in a context where the
     * <i>other type</i> of supplier is expected, use the method reference {@code supplier::get}. A
     * future version of {@code com.google.common.base.Supplier} will be made to <i>extend</i> {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jun 19 17:20:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

        sink.writeFrom(new ByteArrayInputStream(data));
    
        assertContainsExpectedBytes();
      }
    
      private void assertContainsExpectedBytes() throws IOException {
        assertArrayEquals(expected, factory.getSinkContents());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/ByteSinkTester.java

        sink.writeFrom(new ByteArrayInputStream(data));
    
        assertContainsExpectedBytes();
      }
    
      private void assertContainsExpectedBytes() throws IOException {
        assertArrayEquals(expected, factory.getSinkContents());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/query/WildcardQueryCommandTest.java

            try {
                queryCommand.execute(queryContext, termQuery, 1.0f);
                fail("Should throw InvalidQueryException");
            } catch (InvalidQueryException e) {
                // Expected exception
                assertTrue(e.getMessage().contains("Unknown q:"));
            }
        }
    
        public void test_toLowercaseWildcard_enabled() {
            queryCommand.setLowercaseWildcard(true);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top