Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for testData (0.11 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

        @Mock
        private Configuration mockConfig;
    
        private static final int TEST_FID = 0x1234;
        private static final byte[] TEST_DATA = "Test pipe data".getBytes(StandardCharsets.UTF_8);
        private static final int TEST_OFFSET = 0;
        private static final int TEST_LENGTH = TEST_DATA.length;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

      @Test fun setDate() {
        val expected = Date(1000)
        val headers =
          Headers
            .Builder()
            .add("testDate", Date(0L))
            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(expected)
      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. cmd/benchmark-utils_test.go

    	if err != nil {
    		b.Fatal(err)
    	}
    
    	// get text data generated for number of bytes equal to object size.
    	textData := generateBytesData(objSize)
    	// generate md5sum for the generated data.
    	// md5sum of the data to written is required as input for PutObject.
    
    	md5hex := getMD5Hash(textData)
    	sha256hex := ""
    
    	// benchmark utility which helps obtain number of allocations and bytes allocated per ops.
    	b.ReportAllocs()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            Arrays.fill(destData, (byte) 0x00); // Clear destData
            ndrBuffer.readOctetArray(destData, 1, 3); // Read 0x10, 0x11, 0x12 into destData[1-3]
    
            assertEquals(3, ndrBuffer.getIndex());
            assertEquals(0x00, destData[0]);
            assertEquals(0x10, destData[1]);
            assertEquals(0x11, destData[2]);
            assertEquals(0x12, destData[3]);
            assertEquals(0x00, destData[4]);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            // Need to include space for actual string data
            int stringDataStart = 28; // After the referral structure
            String testPath = "\\server\\share";
            byte[] pathBytes = testPath.getBytes(java.nio.charset.StandardCharsets.UTF_16LE);
            int bufferSize = stringDataStart + pathBytes.length + 2; // +2 for null terminator
            byte[] buffer = new byte[bufferSize];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Given - Path with various characters
            String testPath = "\\\\server\\test123";
            Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, testPath);
            byte[] buffer = new byte[512];
    
            // When
            req.encode(buffer, 0);
    
            // Then - Verify UTF-16LE encoding
            byte[] expectedBytes = testPath.getBytes(StandardCharsets.UTF_16LE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            tree.connectionState = 2; // Connected state
            tree.tid = 123;
            tree.inDfs = true;
    
            // Create request with path
            ServerMessageBlock request = new SmbComOpenAndX("\\testPath", 0x01, 0, null);
            ServerMessageBlock response = new SmbComOpenAndXResponse();
    
            // Execute send
            tree.send(request, response);
    
            // Verify session.send was called
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. cmd/lock-rest-server-common_test.go

    func TestLockRpcServerRemoveEntry(t *testing.T) {
    	ctx, cancel := context.WithCancel(t.Context())
    	defer cancel()
    
    	testPath, locker, _ := createLockTestServer(ctx, t)
    	defer os.RemoveAll(testPath)
    
    	lockRequesterInfo1 := lockRequesterInfo{
    		Owner:           "owner",
    		Writer:          true,
    		UID:             "0123-4567",
    		Timestamp:       UTCNow().UnixNano(),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/log/LoggerTest.java

         * @throws Exception
         */
        @Test
        public void testError() throws Exception {
            logger.error("error");
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testFatal() throws Exception {
            logger.fatal("fatal");
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testLog() throws Exception {
            logger.log("ILOGTEST0001");
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            assertSame(execJob, result);
        }
    
        // Test logFilePath setter
        public void test_logFilePath() {
            String testPath = "/path/to/log";
            ExecJob result = execJob.logFilePath(testPath);
            assertEquals(testPath, execJob.logFilePath);
            assertSame(execJob, result);
        }
    
        // Test logLevel setter
        public void test_logLevel() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
Back to top