Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,323 for test5 (0.21 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                assertEquals("Test IO Exception", thrown.getMessage());
            }
        }
    
        @Nested
        @DisplayName("Send/Receive Tests")
        class SendReceiveTests {
    
            @Test
            @DisplayName("Should handle basic send/receive fragment methods")
            void testSendReceiveFragmentMethods() throws IOException {
                // Given: Test handle with configured return values
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/testing-dependencies.md

    You probably want to test the external provider once, but not necessarily call it for every test that runs.
    
    In this case, you can override the dependency that calls that provider, and use a custom dependency that returns a mock user, only for your tests.
    
    ### Use the `app.dependency_overrides` attribute { #use-the-app-dependency-overrides-attribute }
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/TransportTest.java

        }
    
        @Nested
        @DisplayName("Static utility method tests")
        class StaticMethodTests {
    
            @Test
            @DisplayName("readn should read specified number of bytes")
            void shouldReadSpecifiedBytes() throws IOException {
                byte[] data = "Hello World Test".getBytes();
                InputStream is = new ByteArrayInputStream(data);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for WitnessNotification class.
     */
    public class WitnessNotificationTest {
    
        private WitnessNotification notification;
    
        @BeforeEach
        void setUp() {
            notification = new WitnessNotification(WitnessEventType.CLIENT_MOVE, "TestResource");
        }
    
        @Test
        void testNotificationCreation() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/TreeConnectResponseTest.java

        }
    
        /**
         * Tests for the TreeConnectResponse interface using a mock implementation
         */
        @Nested
        @DisplayName("Interface Contract Tests")
        class InterfaceTests {
    
            private TreeConnectResponse mockResponse;
    
            @BeforeEach
            void setUp() {
                mockResponse = mock(TreeConnectResponse.class);
            }
    
            @Test
            @DisplayName("Should return tree ID")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Unit tests for {@link NdrHyper}.
     * <p>
     * The class only contains an encode/decode pair that delegates to
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

        }
    
        @Nested
        @DisplayName("Flag Management Tests")
        class FlagManagementTests {
    
            @Test
            @DisplayName("isFlagSet should correctly identify set flags")
            void testIsFlagSet() {
                // Test when flag is not set
                message.flags = 0;
                assertFalse(message.isFlagSet(DcerpcConstants.RPC_C_PF_BROADCAST));
    
                // Test when flag is set
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

     * - rdma.test.enabled=true (to enable RDMA integration tests)
     * - rdma.test.server=hostname/IP (target server for testing)
     * - rdma.test.port=445 (target port, defaults to 445)
     */
    public class RdmaIntegrationTest {
    
        private String testServer;
        private int testPort;
        private CIFSContext testContext;
    
        @BeforeEach
        public void setUp() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. cmd/bucket-handlers_test.go

    	credentials auth.Credentials, t *testing.T,
    ) {
    	// test cases with sample input and expected output.
    	testCases := []struct {
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// expected Response.
    		expectedRespStatus int
    		locationResponse   []byte
    		errorResponse      APIErrorResponse
    		shouldPass         bool
    	}{
    		// Test case - 1.
    		// Tests for authenticated request and proper response.
    		{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            }
    
            @Override
            public SmbPipeResource getPipe(String name, int flags) {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public SmbResource get(String key) {
                return null; // Not relevant for AbstractCIFSContext tests
            }
        }
    
        @Test
        void testWithCredentials() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top