- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for test_get_response (0.76 sec)
-
tests/test_response_code_no_body.py
) async def a(): pass @app.get("/b", responses={204: {"description": "No Content"}}) async def b(): pass # pragma: no cover client = TestClient(app) def test_get_response(): response = client.get("/a") assert response.status_code == 204, response.text assert "content-length" not in response.headers assert response.content == b"" def test_openapi_schema():Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/RequestTest.java
assertNull(mockRequest.getNext(), "Next request should be null when mocked to do so."); verify(mockRequest, times(1)).getNext(); } @Test void testGetResponse() { // Test case for getResponse method Response mockResponse = mock(Response.class); // Mock a response object when(mockRequest.getResponse()).thenReturn(mockResponse);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
assertTrue(result.endsWith("]")); } /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#getResponse()}. */ @Test public void testGetResponse() { // Given SmbComClose smbComClose = new SmbComClose(config, 1, 1L); SmbComBlankResponse expectedResponse = new SmbComBlankResponse(config); smbComClose.setResponse(expectedResponse);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestTest.java
assertEquals(response, result); verify(request, times(1)).initResponse(null); } @Test @DisplayName("Test getResponse returns the response message") void testGetResponse() { // Given when(request.getResponse()).thenReturn(response); // When CommonServerMessageBlockResponse result = request.getResponse(); // Then
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
// Verify multiple calls return the same instance assertSame(request, negotiation.getRequest()); } @Test @DisplayName("getResponse should return the same response instance") void testGetResponse() { // Verify getResponse returns the exact same instance SmbNegotiationResponse response = negotiation.getResponse(); assertSame(mockResponse, response);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
} } @Nested @DisplayName("Response Tests") class ResponseTests { @Test @DisplayName("Should return null response by default") void testGetResponse() { assertNull(testMessage.getResponse()); } @Test @DisplayName("Should accept response setting") void testSetResponse() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0)