Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for createTestFile (0.12 sec)

  1. src/test/java/jcifs/tests/RandomAccessFileTest.java

            return getConfigs("smb1", "noUnicode", "forceUnicode", "noNTStatus", "noNTSmbs", "smb2", "smb30", "smb31");
        }
    
    
        @Test
        public void testReadOnly () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try {
                    try ( SmbFileOutputStream os = f.openOutputStream() ) {
                        os.write(new byte[] {
                            0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileAttributesTest.java

            }
        }
    
    
        @Test
        public void testLastModified () throws CIFSException, MalformedURLException, UnknownHostException {
            try ( SmbResource f = createTestFile() ) {
                try {
                    assertCloseTime(f.lastModified());
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        @Test
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. istioctl/pkg/validate/validate_test.go

    	validFilenameYAML, closeValidYAMLFile := createTestFile(t, validYAML)
    	defer closeValidYAMLFile.Close()
    
    	validFilenameJSON, closeValidJSONFile := createTestFile(t, validJSON)
    	defer closeValidJSONFile.Close()
    
    	invalidFilenameYAML, closeInvalidYAMLFile := createTestFile(t, invalidYAML)
    	defer closeInvalidYAMLFile.Close()
    
    	warningFilename, closeWarningFile := createTestFile(t, warningsYAML)
    	defer closeWarningFile.Close()
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 02 16:18:14 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/ReadWriteTest.java

        public void testLargeBufExact () throws IOException {
            runReadWriteTest(65465, 65465);
        }
    
    
        @Test
        public void testTrucation () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try {
                    try ( OutputStream os = f.openOutputStream() ) {
                        writeRandom(4096, 3072, os);
                    }
    
                    // this should truncate
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/FileOperationsTest.java

                        d1.delete();
                    }
                }
            }
        }
    
    
        @Test
        public void testCopyEmpty () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try ( SmbFile d1 = createTestDirectory();
                      SmbFile t = new SmbFile(d1, makeRandomName()) ) {
                    try {
                        f.copyTo(t);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/ConcurrencyTest.java

            public MutiThreadTestCase () {}
    
    
            @Override
            public void run () {
    
                try {
                    try ( SmbResource f = createTestFile() ) {
                        try {
                            // f.exists();
                            // try ( OutputStream os = f.openOutputStream(false, SmbConstants.FILE_NO_SHARE) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
Back to top