Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withTestNTLMCredentials (0.14 sec)

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

            }
        }
    
    
        @Test
        public void testShareEnum () throws MalformedURLException, CIFSException {
            try ( SmbFile smbFile = new SmbFile("smb://" + getTestServer(), withTestNTLMCredentials(getContext())) ) {
                String[] list = smbFile.list();
                assertNotNull(list);
                assertTrue("No share found", list.length > 0);
                log.debug(Arrays.toString(list));
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/SessionTest.java

                log.error("Exception", e);
                throw e;
            }
        }
    
    
        @Test
        public void transportReuseSimple () throws CIFSException {
            CIFSContext ctx = withTestNTLMCredentials(getContext());
            String loc = getTestShareURL();
            try ( SmbResource f1 = ctx.get(loc) ) {
                f1.exists();
                try ( SmbResource f2 = ctx.get(loc) ) {
                    f2.exists();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/OplockTests.java

            return getConfigs("smb1", "smb2", "smb30", "smb31");
        }
    
    
        @Test
        public void testOpenOplocked () throws UnknownHostException, IOException {
            CIFSContext c = getContext();
            c = withTestNTLMCredentials(c);
            try ( SmbTransportInternal trans = c.getTransportPool().getSmbTransport(c, getTestServer(), 0, false, true)
                    .unwrap(SmbTransportInternal.class);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top