Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for textFile (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import jcifs.smb1.util.Hexdump;
    
    public class SmbComDeleteTest {
    
        private static final String TEST_FILE_NAME = "testFile.txt";
        private SmbComDelete smbComDelete;
    
        @BeforeEach
        public void setUp() {
            smbComDelete = new SmbComDelete(TEST_FILE_NAME);
        }
    
        @Test
        public void testConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the SmbComOpenAndX class.
     */
    class SmbComOpenAndXTest {
    
        private SmbComOpenAndX smbComOpenAndX;
        private final String fileName = "testFile.txt";
        private final int access = SmbFile.GENERIC_READ | SmbFile.GENERIC_WRITE;
        private ServerMessageBlock andx;
    
        /**
         * Sets up the test environment before each test.
         */
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    			hdr     Header
    			wantErr error
    		}
    		testWrite struct { // Write(str) == (wantCnt, wantErr)
    			str     string
    			wantCnt int
    			wantErr error
    		}
    		testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testClose struct { // Close() == wantErr
    			wantErr error
    		}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

     */
    class Trans2QueryPathInformationTest {
    
        /**
         * Tests the constructor of Trans2QueryPathInformation.
         */
        @Test
        void testConstructor() {
            // Given
            String filename = "testFile.txt";
            int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO
    
            // When
            Trans2QueryPathInformation trans = new Trans2QueryPathInformation(filename, informationLevel);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. docs/erasure/storage-class/README.md

    ```go
    s3Client, err := minio.New("localhost:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
    if err != nil {
     log.Fatalln(err)
    }
    
    object, err := os.Open("my-testfile")
    if err != nil {
     log.Fatalln(err)
    }
    defer object.Close()
    objectStat, err := object.Stat()
    if err != nil {
     log.Fatalln(err)
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. docs/de/docs/advanced/events.md

    {* ../../docs_src/events/tutorial002.py hl[6] *}
    
    Hier schreibt die `shutdown`-Eventhandler-Funktion eine Textzeile `"Application shutdown"` in eine Datei `log.txt`.
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top