- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getOEMDomainName (0.06 sec)
-
src/test/java/jcifs/SmbTreeHandleTest.java
/** * Test for getOEMDomainName() method throwing CIFSException. * @throws CIFSException */ @Test void testGetOEMDomainName_throwsCIFSException() throws CIFSException { when(smbTreeHandle.getOEMDomainName()).thenThrow(new CIFSException("Test Exception")); assertThrows(CIFSException.class, () -> smbTreeHandle.getOEMDomainName(), "getOEMDomainName() should throw CIFSException"); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
return 0; } } /** * {@inheritDoc} * * @throws SmbException * * @see jcifs.SmbTreeHandle#getOEMDomainName() */ @Override public String getOEMDomainName() throws SmbException { try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/SmbTreeHandle.java
/** * Gets the OEM domain name reported by the server * @return server reported domain name * @throws CIFSException if an error occurs retrieving the domain name */ String getOEMDomainName() throws CIFSException; /** * Gets the name of the share this tree is connected to * @return the share we are connected to */ String getConnectedShare(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
when(transport.getNegotiateResponse()).thenReturn(nego); assertEquals(60L * 1000L * 60L, handle.getServerTimeZoneOffset()); assertEquals("DOMAIN", handle.getOEMDomainName()); verify(session, times(2)).close(); verify(transport, times(2)).close(); } @Test @DisplayName("getServerTimeZoneOffset/OEMDomainName: non-SMB1 negotiate returns 0/null")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
when(parent.getLocator()).thenReturn(locator); when(treeHandle.getConfig()).thenReturn(config); when(treeHandle.acquire()).thenReturn(treeHandle); when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN"); } @Test @DisplayName("Constructor should throw SmbException for non-workgroup type with host") void testConstructor_NonWorkgroupType_ThrowsException() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/NetServerEnumIterator.java
this.workgroup = locator.getType() == SmbConstants.TYPE_WORKGROUP; if (locator.getURL().getHost().isEmpty()) { this.request = new NetServerEnum2(th.getConfig(), th.getOEMDomainName(), NetServerEnum2.SV_TYPE_DOMAIN_ENUM); } else if (this.workgroup) { this.request = new NetServerEnum2(th.getConfig(), locator.getURL().getHost(), NetServerEnum2.SV_TYPE_ALL); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0)