- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for setScope (0.05 sec)
-
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
* Gets the cache scope (ALL or IMMEDIATE_CHILDREN) * @return the cache scope */ public DirectoryCacheScope getScope() { return scope; } /** * Sets the cache scope for this directory cache * @param scope the cache scope to set */ public void setScope(DirectoryCacheScope scope) { this.scope = scope; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
} @Test @DisplayName("Should handle getScope() method") void testGetScope() { // Given String testScope = "WORKGROUP"; when(mockNetbiosName.getScope()).thenReturn(testScope); // When String scope = mockNetbiosName.getScope(); // Then assertEquals(testScope, scope); verify(mockNetbiosName).getScope(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
when(mockCalledName.getNameType()).thenReturn(0x20); when(mockCalledName.getScope()).thenReturn(null); when(mockCallingName.getName()).thenReturn("CLIENT"); when(mockCallingName.getNameType()).thenReturn(0x00); when(mockCallingName.getScope()).thenReturn(null); SessionRequestPacket packet = new SessionRequestPacket(mockConfig, mockCalledName, mockCallingName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, directoryLeaseManager.getCacheEntry(dir1).getScope()); assertEquals(DirectoryCacheScope.METADATA_ONLY, directoryLeaseManager.getCacheEntry(dir2).getScope()); assertEquals(DirectoryCacheScope.RECURSIVE_TREE, directoryLeaseManager.getCacheEntry(dir3).getScope()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
assertNotNull(entry1); assertNotNull(entry2); assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, entry1.getScope()); assertEquals(DirectoryCacheScope.RECURSIVE_TREE, entry2.getScope()); // Update first directory cache List<SmbFile> files1 = Arrays.asList(mockFile1); directoryLeaseManager.updateDirectoryCache(dir1, files1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/NetbiosName.java
* Returns the NetBIOS name. * * @return the name */ String getName(); /** * Returns the NetBIOS scope identifier. * * @return the scope id */ String getScope(); /** * Returns the NetBIOS name type. * * @return the name type */ int getNameType();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.2K bytes - Viewed (0) -
src/main/java/jcifs/netbios/Name.java
/** * @return the name */ @Override public String getName() { return this.name; } /** * @return scope id */ @Override public String getScope() { return this.scope; } /** * * @return the name type */ @Override public int getNameType() { return this.hexCode; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
throw new UnknownHostException("no name with type 0x" + Hexdump.toHexString(addr.getNameType(), 2) + (addr.getName().getScope() == null || addr.getName().getScope().isEmpty() ? " with no scope" : " with scope " + addr.getName().getScope()) + " for host " + addr.getHostAddress()); } } /** * Get the address of the active WINS server
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
@Test public void testConstructor() { assertEquals(directoryPath, entry.getDirectoryPath()); assertEquals(leaseKey, entry.getLeaseKey()); assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, entry.getScope()); assertFalse(entry.isComplete()); assertFalse(entry.hasChanges()); assertTrue(entry.getChildren().isEmpty()); } @Test public void testUpdateChild() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 8.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
} @Test void getScope_shouldReturnScope() { Name name = new Name(mockConfig, "TestName", 0x20, "test.scope"); assertEquals("test.scope", name.getScope()); } @Test void getNameType_shouldReturnHexCode() { Name name = new Name(mockConfig, "TestName", 0x1C, null); assertEquals(0x1C, name.getNameType()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0)