- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 124 for testfile (0.05 sec)
-
docs/smb3-features/04-directory-leasing-design.md
SmbFile dir = new SmbFile("smb://server/share/testdir/", context); SmbFile testFile = new SmbFile("smb://server/share/testdir/newfile.txt", context); // Get initial listing (establishes cache) SmbFile[] initialFiles = dir.listFiles(); // Create new file testFile.createNewFile(); // Wait for change notification Thread.sleep(2000);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
void testReadParametersWireFormatWithVariousActions(int action) throws Exception { byte[] buffer = createSingleNotificationBuffer("testfile.dat", action); int result = response.readParametersWireFormat(buffer, 0, buffer.length); assertTrue(result > 0); List<FileNotifyInformation> notifications = response.getNotifyInformation();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
@Mock private Configuration mockConfig; private static final int TEST_SID = 0x1234; private static final int TEST_RESUME_KEY = 0xABCD; private static final String TEST_FILENAME = "testfile.txt"; private static final int TEST_BATCH_COUNT = 100; private static final int TEST_BATCH_SIZE = 8192; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
cmd/update_test.go
} } // Tests if the environment we are running is Helm chart. func TestGetHelmVersion(t *testing.T) { createTempFile := func(content string) string { tmpfile, err := os.CreateTemp(t.TempDir(), "helm-testfile-") if err != nil { t.Fatalf("Unable to create temporary file. %s", err) } if _, err = tmpfile.WriteString(content); err != nil { t.Fatalf("Unable to create temporary file. %s", err) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
// Test setting timestamp 1 hour ago long testTime = System.currentTimeMillis() - 3600000; file.setLastModified(testTime); long retrievedTime = file.lastModified(); // Allow for reasonable precision differences assertTrue(Math.abs(retrievedTime - testTime) < 10000, "Set timestamp should be approximately correct"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/archive/tar/reader_test.go
} func TestFileReader(t *testing.T) { type ( testRead struct { // Read(cnt) == (wantStr, wantErr) cnt int wantStr string wantErr error } testWriteTo struct { // WriteTo(testFile{ops}) == (wantCnt, wantErr) ops fileOps wantCnt int64 wantErr error } testRemaining struct { // logicalRemaining() == wantLCnt, physicalRemaining() == wantPCnt wantLCnt int64
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0) -
cmd/xl-storage_test.go
// create xlStorage test setup storage, path, err := newXLStorageTestSetup(t) if err != nil { t.Fatalf("Unable to create xlStorage test setup, %s", err) } volName := "testvol" fileName := "testfile" if err := storage.MakeVol(t.Context(), volName); err != nil { t.Fatal(err) } // 1) Whole-file bitrot check on proper file size := int64(4*1024*1024 + 100*1024) // 4.1 MB
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostFile.java
import java.io.File; import java.io.IOException; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public final class PostFile { public static final MediaType MEDIA_TYPE_MARKDOWN = MediaType.get("text/x-markdown; charset=utf-8"); private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 25 18:02:55 UTC 2019 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt
import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.MediaType.Companion.toMediaType import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.asRequestBody class PostFile { private val client = OkHttpClient() fun run() { val file = File("README.md") val request = Request( url = "https://api.github.com/markdown/raw".toHttpUrl(),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
// Write test values long testTime = System.currentTimeMillis() * 10000L + 116444736000000000L; SMBUtil.writeInt8(testTime, buffer, offset + 8); SMBUtil.writeInt8(testTime + 1000, buffer, offset + 16); SMBUtil.writeInt8(testTime + 2000, buffer, offset + 24); SMBUtil.writeInt8(testTime + 3000, buffer, offset + 32);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0)