- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for testContext (0.95 sec)
-
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
Type2Message message = new Type2Message(mockContext); byte[] testContext = new byte[] { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66, (byte) 0x77, (byte) 0x88 }; // When message.setContext(testContext); // Then assertArrayEquals(testContext, message.getContext()); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
* - 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 { testServer = System.getProperty("rdma.test.server"); String portStr = System.getProperty("rdma.test.port", "445");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
String testContent = "Hello, SMB World!\nThis is a test file."; // Write content to file try (OutputStream out = file.openOutputStream(false)) { out.write(testContent.getBytes("UTF-8")); } assertTrue(file.exists(), "File should exist after writing");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
} @Test @DisplayName("getName() should return expected byte array") void testGetNameMethod() { byte[] expectedName = "TEST_CONTEXT".getBytes(StandardCharsets.UTF_8); CreateContextResponse response = mock(CreateContextResponse.class); when(response.getName()).thenReturn(expectedName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
} @Test @DisplayName("getName() should return expected byte array") void testGetNameMethod() { byte[] expectedName = "TEST_CONTEXT".getBytes(StandardCharsets.UTF_8); CreateContextRequest request = mock(CreateContextRequest.class); when(request.getName()).thenReturn(expectedName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
cmd/object_api_suite_test.go
ExecExtendedObjectLayerTest(t, testPutObject) } // Tests validate PutObject without prefix. func testPutObject(obj ObjectLayer, instanceType string, t TestErrHandler) { content := []byte("testcontent") length := int64(len(content)) readerEOF := newTestReaderEOF(content) readerNoEOF := newTestReaderNoEOF(content) err := obj.MakeBucket(context.Background(), "bucket", MakeBucketOptions{}) if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 34.5K bytes - Viewed (0) -
cmd/server_test.go
c.Assert(err, nil) c.Assert(response.StatusCode, http.StatusOK) for _, objectName := range []string{"file.1", "file.2"} { buffer := bytes.NewReader([]byte("testcontent")) putRequest, err := newTestSignedRequest(http.MethodPut, getPutObjectURL(s.endPoint, bucketName, objectName), int64(buffer.Len()), buffer, s.accessKey, s.secretKey, s.signer) c.Assert(err, nil)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118.1K bytes - Viewed (0)