Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for checkConnection (0.24 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 ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  2. 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
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  3. 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 {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.1K bytes
    - Viewed (0)
Back to top