Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NewResponse (0.12 sec)

  1. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

    import jcifs.internal.util.SMBUtil;
    
    @ExtendWith(MockitoExtension.class)
    class Smb2LogoffResponseTest {
    
        // Helper to create an instance with a mocked Configuration
        private Smb2LogoffResponse newResponse() {
            Configuration cfg = Mockito.mock(Configuration.class);
            return new Smb2LogoffResponse(cfg);
        }
    
        @Test
        @DisplayName("Constructor accepts a Configuration and creates instance")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

    @ExtendWith(MockitoExtension.class)
    @DisplayName("Smb2SessionSetupResponse Tests")
    @MockitoSettings(strictness = Strictness.LENIENT)
    class Smb2SessionSetupResponseTest extends BaseTest {
    
        private Smb2SessionSetupResponse newResponse() {
            // Configuration is not used during decode when no signing digest is set
            Configuration cfg = mock(Configuration.class);
            return new Smb2SessionSetupResponse(cfg);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            // But creating a new instance should have the correct subcommand
            Trans2SetFileInformationResponse newResponse = new Trans2SetFileInformationResponse(config);
            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, newResponse.getSubCommand());
        }
    
        @Test
        @DisplayName("Test multiple sequential calls to read/write methods")
        void testMultipleSequentialCalls() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                // Given - create a mock configuration
                Configuration testConfig = mock(Configuration.class);
    
                // When
                Smb2FlushResponse newResponse = new Smb2FlushResponse(testConfig);
    
                // Then
                assertNotNull(newResponse);
                // Verify the response was created successfully with the configuration
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. cmd/server_test.go

    	decoder = xml.NewDecoder(response.Body)
    	newResponse = &InitiateMultipartUploadResponse{}
    
    	err = decoder.Decode(newResponse)
    	c.Assert(err, nil)
    	c.Assert(len(newResponse.UploadID) > 0, true)
    	// uploadID to be used for rest of the multipart operations on the object.
    	uploadID := newResponse.UploadID
    
    	// content for the part to be uploaded.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
  6. internal/grid/grid_test.go

    	}, func() *testResponse {
    		return &testResponse{}
    	})
    	// Handles incoming requests, returns a response
    	handler1 := func(req *testRequest) (resp *testResponse, err *RemoteErr) {
    		resp = h1.NewResponse()
    		*resp = testResponse{
    			OrgNum:    req.Num,
    			OrgString: req.String,
    			Embedded:  *req,
    		}
    		return resp, nil
    	}
    	// Return error
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 36.1K bytes
    - Viewed (0)
Back to top