Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for makeRandomName (0.12 sec)

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

            try ( SmbFile defaultShareRoot = getDefaultShareRoot();
                  SmbResource f = new SmbFile(defaultShareRoot, makeRandomName());
                  SmbFile f2 = new SmbFile(defaultShareRoot, makeRandomName()) ) {
                f.createNewFile();
                boolean renamed = false;
                try {
                    f.renameTo(f2);
                    try {
    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

            super.tearDown();
        }
    
    
        @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);
    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/BaseCIFSTest.java

            if ( f != null ) {
                f.delete();
            }
        }
    
    
        protected String makeRandomName () {
            return "jcifs-test-" + Math.abs(this.rand.nextLong());
        }
    
    
        protected String makeRandomDirectoryName () {
            return makeRandomName() + "/";
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/TimeoutTest.java

            // use separate context here as the settings stick to the transport
            CIFSContext ctx = lowTimeout(withTestNTLMCredentials(getNewContext()));
            try ( SmbFile f = new SmbFile(new SmbFile(getTestShareURL(), ctx), makeRandomName()) ) {
                int soTimeout = ctx.getConfig().getSoTimeout();
                f.createNewFile();
                try {
                    try ( OutputStream os = f.getOutputStream() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/DfsTest.java

            context = withTestNTLMCredentials(context);
    
            try ( SmbResource root = context.get(getTestShareURL()) ) {
                root.exists();
    
                try ( SmbResource t = root.resolve(makeRandomName()) ) {
                    try {
                        t.createNewFile();
                    }
                    finally {
                        t.delete();
                    }
                }
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 13.5K bytes
    - Viewed (0)
Back to top