- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 33 for getOEMEncoding (0.19 sec)
-
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
when(mockConfig.getNetbiosCachePolicy()).thenReturn(30); // Short cache when(mockConfig.getWinsServers()).thenReturn(new InetAddress[0]); when(mockConfig.getOemEncoding()).thenReturn("Cp850"); // Create the name service client with mock context nameServiceClient = new NameServiceClientImpl(mockContext); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
charset = getOEMEncoding(); end = true; } else { setEncryptedSessionKey(readSecurityBuffer(material, pos)); pos += 8; flags = readULong(material, pos); setFlags(flags); pos += 4; charset = (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0 ? UNI_ENCODING : getOEMEncoding(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
when(mockConfig.getTransactionBufferSize()).thenReturn(65535); when(mockConfig.isUseUnicode()).thenReturn(true); when(mockConfig.isForceUnicode()).thenReturn(false); when(mockConfig.getOemEncoding()).thenReturn("ASCII"); } @Test @DisplayName("Test constructor with standard path") void testConstructorWithStandardPath() { // Test standard path without trailing backslash
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
} } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getTransactionBufferSize()).thenReturn(65535); when(mockConfig.getOemEncoding()).thenReturn("ASCII"); transaction = new TestSmbComTransaction(mockConfig, SmbComTransaction.SMB_COM_TRANSACTION, SmbComTransaction.TRANS2_FIND_FIRST2); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
@BeforeEach void setUp() { // Mock the OEM encoding configuration with lenient stubbing // since not all tests need this stub lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); // Initialize NameQueryResponse before each test nameQueryResponse = new NameQueryResponse(mockConfig); } @Test
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/netbios/SessionRequestPacketTest.java
void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getNetbiosScope()).thenReturn(null); // Configure OEM encoding to avoid NullPointerException when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); } @Test @DisplayName("Constructor with Configuration only should create empty Name instances") void testConstructorWithConfigOnly() {
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/netbios/NodeStatusRequestTest.java
@BeforeEach void setUp() { // Setup default mock behavior lenient().when(mockConfig.getNetbiosScope()).thenReturn("DEFAULT.SCOPE"); lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); // Setup mock name lenient().when(mockName.writeWireFormat(any(byte[].class), anyInt())).thenReturn(34); mockName.hexCode = 0x20; mockName.name = "TEST";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/config/BaseConfigurationTest.java
assertEquals(0, config.getFlags2()); assertEquals(SmbConstants.DEFAULT_SSN_LIMIT, config.getSessionLimit()); assertEquals(SmbConstants.DEFAULT_OEM_ENCODING, config.getOemEncoding()); assertNull(config.getLocalTimezone()); assertEquals(-1, config.getPid()); assertFalse(config.isIgnoreCopyToException()); assertEquals(2, config.getMaxRequestRetries());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Mock the OEM encoding for non-Unicode tests when(mockConfig.getOemEncoding()).thenReturn("Cp850"); fileBothDirectoryInfo = new FileBothDirectoryInfo(mockConfig, true); fileBothDirectoryInfoNonUnicode = new FileBothDirectoryInfo(mockConfig, false); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
private NodeStatusResponse response; @BeforeEach void setUp() throws Exception { // Setup mock configuration with lenient stubbing lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); // Setup mock query address mockQueryAddress = mock(NbtAddress.class); Name mockName = new Name(mockConfig, "TEST", 0x20, null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0)