Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for testshare (0.06 sec)

  1. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        sink.putByte((byte) 7);
        sink.putBytes(new byte[] {});
        sink.putBytes(new byte[] {8});
        HashCode unused = sink.hash();
        sink.assertInvariants(8);
        sink.assertBytes(expected);
      }
    
      public void testShort() {
        Sink sink = new Sink(4);
        sink.putShort((short) 0x0201);
        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTreeHandleTest.java

         */
        @Test
        void testGetConnectedShare() {
            when(smbTreeHandle.getConnectedShare()).thenReturn("TEST_SHARE");
            assertEquals("TEST_SHARE", smbTreeHandle.getConnectedShare(), "Connected share should be TEST_SHARE");
        }
    
        /**
         * Test for isSameTree() method.
         * Verifies that the method correctly identifies if two handles refer to the same tree.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

        private Smb2LeaseKey testKey;
        private int testState;
    
        @BeforeEach
        void setUp() {
            byte[] keyBytes = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 };
            testKey = new Smb2LeaseKey(keyBytes);
            testState = Smb2LeaseState.SMB2_LEASE_READ_WRITE;
            leaseContext = new LeaseV1CreateContextRequest(testKey, testState);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

                if (t != null) {
                    if (log.isDebugEnabled()) {
                        log.debug("Tree is " + t);
                    }
    
                    if (Objects.equals(loc.getShare(), t.getShare())) {
                        try (SmbSessionImpl session = t.getSession()) {
                            targetDomain = session.getTargetDomain();
                            if (!session.isFailed()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            SmbResourceLocatorImpl copy = l.clone();
            assertEquals(l.getURLPath(), copy.getURLPath());
            assertEquals(l.getUNCPath(), copy.getUNCPath());
            assertEquals(l.getShare(), copy.getShare());
            assertEquals(l.getType(), copy.getType());
            assertSame(l.getURL(), copy.getURL());
        }
    
        @ParameterizedTest
        @DisplayName("queryLookup extracts values case-insensitively")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                    }
    
                    @Override
                    public String getServer() {
                        return null;
                    }
    
                    @Override
                    public String getShare() {
                        return null;
                    }
    
                    @Override
                    public String getPath() {
                        return null;
                    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

            if (dunc.charAt(0) != '\\') {
                log.warn("No slash at start of remaining DFS path " + dunc);
            }
    
            this.unc = dunc;
            if (dr.getShare() != null && !dr.getShare().isEmpty()) {
                this.share = dr.getShare();
            }
            if (reqPath != null && reqPath.endsWith("\\") && !dunc.endsWith("\\")) {
                dunc += "\\";
            }
            return dunc;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            assertEquals(SmbFile.TYPE_PRINTER, instance.getType());
        }
    
        /**
         * Test of getName method, of class SmbShareInfo.
         */
        @Test
        void testGetName() {
            String netName = "TEST_SHARE";
            SmbShareInfo instance = new SmbShareInfo(netName, 0, "remark");
            assertEquals(netName, instance.getName());
        }
    
        /**
         * Test of getType method, of class SmbShareInfo.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                }
            }
            dir.delete();
        }
    
        // Test add method with valid parameters
        public void test_add_validParameters() {
            TestDataStore dataStore = new TestDataStore("TestStore");
            dataStoreFactory.add("testName", dataStore);
    
            // Verify data store is registered with both the given name and class simple name
            assertNotNull(dataStoreFactory.getDataStore("testName"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

            public void testGetShare() throws MalformedURLException {
                assertEquals("share", new SmbFile("smb1://server/share/file.txt").getShare());
                assertEquals("share", new SmbFile("smb1://server/share/").getShare());
                assertEquals(null, new SmbFile("smb1://server/").getShare());
            }
    
            @Test
            public void testGetServer() throws MalformedURLException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top