Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for checkConnection (0.06 sec)

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

            try ( SmbResource f = new SmbFile(getTestShareURL(), ctx); ) {
                checkConnection(f);
                f.resolve("test").exists();
            }
        }
    
    
        @Test
        public void logonAnonymous () throws IOException {
            try ( SmbResource f = new SmbFile(getTestShareGuestURL(), withAnonymousCredentials()) ) {
                checkConnection(f);
            }
            catch ( SmbAuthException e ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/BaseCIFSTest.java

    
        protected SmbResource getDefaultShareRoot ( CIFSContext ctx ) throws MalformedURLException {
            return new SmbFile(getTestShareURL(), withTestNTLMCredentials(ctx));
        }
    
    
        protected void checkConnection ( SmbResource f ) throws CIFSException {
            assertNotNull(f);
            f.exists();
        }
    
    
        protected SmbFile createTestFile () throws MalformedURLException, UnknownHostException, CIFSException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/FileAttributesTest.java

        }
    
    
        @Test
        public void testBaseFile () throws MalformedURLException, CIFSException {
            try ( SmbResource f = getDefaultShareRoot() ) {
                checkConnection(f);
                if ( f.getType() != SmbConstants.TYPE_FILESYSTEM ) {
                    assertEquals(SmbConstants.TYPE_SHARE, f.getType());
                }
            }
        }
    
    
        @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)
Back to top