- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 59 for teststring (0.65 sec)
-
src/test/java/jcifs/pac/PacUnicodeStringTest.java
PacUnicodeString pacString = new PacUnicodeString((short) 10, (short) 20, 100); String testString = "abcde"; // The check method should return the same string instance String result = pacString.check(testString); assertSame(testString, result, "The check method should return the original string on success."); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/util/EncdecTest.java
// Given String testString = "Hello"; byte[] buffer = new byte[testString.length()]; // When - Manual string encoding using individual bytes byte[] strBytes = testString.getBytes(); System.arraycopy(strBytes, 0, buffer, 0, strBytes.length); // Then String decoded = new String(buffer); assertEquals(testString, decoded); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
channelInfo.addPendingOperation(mockOperation); channelInfo.clearPendingOperations(); assertEquals(0, channelInfo.getRequestsPending()); } @Test void testScoring() { channelInfo.setState(ChannelState.ESTABLISHED); int baseScore = channelInfo.getScore(); assertTrue(baseScore > 0); // Active channel should have lower score (busy penalty)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
* @see ResourceBundle#getString(String) */ public static String getString(final ResourceBundle bundle, final String key) { assertArgumentNotNull("bundle", bundle); assertArgumentNotEmpty("key", key); try { return bundle.getString(key); } catch (final Throwable t) { return null; } }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/FieldUtilTest.java
FieldUtil.set(field, this, testData); assertThat(FieldUtil.getString(field, this), is(testData)); } /** * @throws Exception */ @Test public void testGetStringFieldObject() throws Exception { final Field field = getClass().getField("STRING_DATA"); assertThat(FieldUtil.getString(field), is(STRING_DATA)); } /** * @throws Exception */
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationTest.java
// This method is expected to do nothing and return 0 int result = smbComQueryInformation.readBytesWireFormat(new byte[0], 0); assertEquals(0, result); } @Test public void testToString() { // Test the string representation of the object String result = smbComQueryInformation.toString(); assertTrue(result.startsWith("SmbComQueryInformation["));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java
assertEquals(e.getMessage(), NbtException.getErrorString(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED)); } @Test @DisplayName("toString includes class, code and error string") void testToString() { NbtException e = new NbtException(NbtException.ERR_SSN_SRVC, NbtException.NO_RESOURCES); String str = e.toString(); assertTrue(str.contains("errorClass=2"));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
// When int result = trans2SetFileInformation.readDataWireFormat(new byte[0], 0, 0); // Then assertEquals(0, result); } @Test void testToString() { // When String result = trans2SetFileInformation.toString(); // Then assertTrue(result.startsWith("Trans2SetFileInformation["));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlExceptionTest.java
assertSame(intermediateCause, exception.getCause()); assertSame(rootCause, exception.getCause().getCause()); } @Test public void testToString() { String message = "Test error message"; CurlException exception = new CurlException(message); String toString = exception.toString(); assertNotNull(toString);
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
byte[] buffer = new byte[10]; int result = smbCom.readBytesWireFormat(buffer, 0); assertEquals(0, result); } @Test void testToString() { // Test the string representation of the object String directoryName = "myDir"; SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, directoryName);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0)