Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getDefaultShareRoot (0.1 sec)

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

        }
    
    
        @Test
        public void testRenameFile () throws CIFSException, MalformedURLException, UnknownHostException {
            try ( SmbFile defaultShareRoot = getDefaultShareRoot();
                  SmbResource f = new SmbFile(defaultShareRoot, makeRandomName());
                  SmbFile f2 = new SmbFile(defaultShareRoot, makeRandomName()) ) {
                f.createNewFile();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/ConcurrencyTest.java

        }
    
    
        @Test
        public void testExclusiveLock () throws InterruptedException, MalformedURLException, UnknownHostException {
            String fname = makeRandomName();
            try ( SmbFile sr = getDefaultShareRoot();
                  SmbResource exclFile = new SmbFile(sr, fname) ) {
                ExclusiveLockFirst f = new ExclusiveLockFirst(exclFile);
                ExclusiveLockSecond s = new ExclusiveLockSecond(f, exclFile);
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/FileAttributesTest.java

        public void testShareSize () throws IOException {
            try ( SmbResource f = getDefaultShareRoot() ) {
                long l = f.length();
                Assume.assumeTrue("No share size reported", l != 0);
            }
        }
    
    
        @Test
        public void testShareFreeSize () throws IOException {
            try ( SmbResource f = getDefaultShareRoot() ) {
                long fs = f.getDiskFreeSpace();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/BaseCIFSTest.java

                testShare = "test";
            }
            return testShare;
        }
    
    
        protected SmbFile getDefaultShareRoot () throws MalformedURLException {
            return new SmbFile(getTestShareURL(), withTestNTLMCredentials(getContext()));
        }
    
    
        protected SmbResource getDefaultShareRoot ( CIFSContext ctx ) throws MalformedURLException {
            return new SmbFile(getTestShareURL(), withTestNTLMCredentials(ctx));
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/SessionTest.java

                "smb2",
                "smb2-nego",
                "smb30",
                "smb31");
        }
    
    
        @Test
        public void logonUser () throws IOException {
            try ( SmbResource f = getDefaultShareRoot() ) {
                checkConnection(f);
                f.resolve("test").exists();
            }
        }
    
    
        @Test
        public void logonUserHash () throws IOException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/EnumTest.java

            }
    
            try ( SmbFile r = getDefaultShareRoot();
                  SmbFile f = new SmbFile(r, "enum-test/a/b/c/") ) {
                f.exists();
            }
    
        }
    
    
        @Test
        public void testEnumDeepVirgin () throws IOException {
    
            try ( SmbFile r = getDefaultShareRoot();
                  SmbFile f = new SmbFile(r, "x-test/") ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/TimeoutTest.java

            // this could inject wrong DFS cache entries
            CIFSContext newContext = getNewContext();
            try ( SmbResource root = getDefaultShareRoot(failHostInjecting(medConnectTimeout(newContext), "10.255.255.1")) ) {
                root.exists();
            }
        }
    
    
        @Test
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.4K bytes
    - Viewed (0)
Back to top