- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 1,881 for RESPONSE (0.3 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java
void testReadParameterWordsWireFormat() { SmbComWriteAndXResponse response = new SmbComWriteAndXResponse(); byte[] buffer = new byte[] { 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // count = 10 int bytesRead = response.readParameterWordsWireFormat(buffer, 0); // The count should be read from the buffer. assertEquals(10L, response.count); // The method should return the number of bytes read.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
@Test @DisplayName("Should create correct response type") void testCreateResponse() { Smb2EchoResponse response = echoRequest.createResponse(mockContext, echoRequest); assertNotNull(response); assertInstanceOf(Smb2EchoResponse.class, response); } @Test @DisplayName("Should create response with correct configuration")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt
e: IOException, ) { println("failed: $e") } override fun onResponse( call: Call, response: Response, ) { println("response: ${response.code}") response.close() } }, ) }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Aug 19 08:10:39 GMT 2025 - 1.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/ConfiguredGoalSupport.java
SecDispatcher.ValidationResponse response = secDispatcher.validateConfiguration(); if (!response.isValid() || context.options().verbose().orElse(false)) { dumpResponse(context, "", response); } return response.isValid(); } protected void dumpResponse(EncryptContext context, String indent, SecDispatcher.ValidationResponse response) { context.logger.info(messageBuilderFactory
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 4.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
assertEquals(0, response.getStatus()); response.setStatus(404); assertEquals(404, response.getStatus()); } @Test @DisplayName("Test numEntries getter and setter") void testNumEntriesGetterSetter() { assertEquals(0, response.getNumEntries()); response.setNumEntries(10); assertEquals(10, response.getNumEntries()); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
@Test @DisplayName("send without params returns the stubbed response") void send_noParams_returnsResponse() throws Exception { // Arrange - generic return type respected when(tree.send(request)).thenReturn(response); // Act CommonServerMessageBlockResponse out = tree.send(request); // Assert assertSame(response, out); verify(tree).send(request); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/session/Smb2LogoffResponse.java
import jcifs.internal.util.SMBUtil; /** * SMB2 Logoff response message. This response acknowledges the termination of an SMB2 session. * * @author mbechler * */ public class Smb2LogoffResponse extends ServerMessageBlock2Response { /** * Constructs an SMB2 logoff response with the given configuration. * * @param config the configuration for this response */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java
.post(jsonRequestBody) .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new RequestBodyCompression().run();
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 04 17:43:43 GMT 2025 - 3.1K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
} val request = request() .post(asyncRequestBody) .build() val response = client.newCall(request).execute() Assumptions.assumeTrue(response.protocol == Protocol.HTTP_2) assertThat(response.body.string()).isEqualTo("Hello response!") applicationLogs .assertLogEqual("--> POST $url") .assertLogEqual("--> END POST (duplex request body omitted)")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Nov 07 02:57:33 GMT 2025 - 39.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java
response = checkMethodBase(new HashMap<>()).get("/api/admin/crawlinginfo/log/" + logId).asString(); jsonPath = JsonPath.from(response); assertEquals(0, jsonPath.getInt("response.status")); assertEquals(logId, jsonPath.getString("response.log.id")); logger.info("Get crawling info log by ID test completed"); } // Test GET with non-existent ID
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Mar 30 14:01:34 GMT 2026 - 13.4K bytes - Click Count (0)