Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 876 for certify (0.49 sec)

  1. src/test/java/jcifs/SmbTreeHandleTest.java

         * @throws CIFSException
         */
        @Test
        void testClose() throws CIFSException {
            smbTreeHandle.close();
            // Verify that close() was called on the mock
            verify(smbTreeHandle).close();
        }
    
        /**
         * Test for close() method throwing CIFSException.
         * Verifies that the method correctly throws a CIFSException when configured to do so.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbSessionTest.java

                assertDoesNotThrow(mockSession::close);
    
                verify(mockSession, times(1)).getConfig();
                verify(mockSession, times(1)).getContext();
                verify(mockSession, times(1)).unwrap(SmbSession.class);
                verify(mockSession, times(1)).close();
            }
    
            @Test
            @DisplayName("Should support partial mocking scenarios")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                verify(mockHandle, times(1)).close();
                verify(mockHandle, atLeastOnce()).acquire();
            }
    
            @Test
            @DisplayName("close() closes handle; does not close file when not unshared")
            void closeClosesHandle() throws Exception {
                SmbFileInputStream in = newStream();
                in.close();
                verify(mockHandle, times(1)).close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            int bytesWritten = request.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(4, bytesWritten);
    
            // Verify structure size (4) is written at offset
            assertEquals(4, SMBUtil.readInt2(buffer, offset));
    
            // Verify reserved field (0) is written at offset + 2
            assertEquals(0, SMBUtil.readInt2(buffer, offset + 2));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcConstantsTest.java

        class ConstantsValidationTests {
    
            @Test
            @DisplayName("All fragment flags should have unique values")
            void testFragmentFlagsUniqueness() {
                // Verify that fragment flags are unique and follow bit pattern
                assertEquals(1, Integer.bitCount(DcerpcConstants.DCERPC_FIRST_FRAG), "DCERPC_FIRST_FRAG should be a single bit");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            // Verify lease state
            assertEquals(leaseState, SMBUtil.readInt4(buffer, 40));
    
            // Verify directory-specific data
            assertEquals(DirectoryCacheScope.RECURSIVE_TREE.ordinal(), SMBUtil.readInt4(buffer, 56)); // CacheScope
            assertEquals(45000L, SMBUtil.readInt8(buffer, 60)); // MaxCacheAge
    
            // Verify flags (RECURSIVE_TREE + NOTIFICATIONS)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

                assertEquals("fuzzy", fuzzyQueryBuilder.value());
                assertEquals(1.8f, fuzzyQueryBuilder.boost());
            } else {
                // For DefaultQueryBuilder or DisMaxQueryBuilder, we just verify it was created
                assertTrue(result instanceof DefaultQueryBuilder || result instanceof DisMaxQueryBuilder);
            }
        }
    
        public void test_execute_withNestedBoostQuery() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    
    import java.lang.reflect.Method;
    import java.util.stream.Stream;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NbtAddressTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    
    import com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter;
    import com.google.common.util.concurrent.UncaughtExceptionHandlers.RuntimeWrapper;
    import junit.framework.TestCase;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 10 21:03:40 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top