- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 1,466 for assertEquals (0.06 sec)
-
src/test/java/org/codelibs/core/convert/StringConversionUtilTest.java
*/ public void testFromWindowsMapping() throws Exception { assertNull(StringConversionUtil.fromWindowsMapping(null)); assertEquals("", StringConversionUtil.fromWindowsMapping("")); assertEquals("abc 123", StringConversionUtil.fromWindowsMapping("abc 123")); assertEquals("abc\uFF5E\u2225\uFF0D\uFFE0\uFFE1\uFFE2", StringConversionUtil.fromWindowsMapping("abc\u301C\u2016\u2212\u00A2\u00A3\u00AC")); }Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java
package jcifs.ntlmssp.av; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.Test; class AvTargetNameTest { /** * Test constructor with raw bytes. * Verifies that the AvPair type is correctly set and raw bytes are stored. */ @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
assertEquals(0, response.writeDataWireFormat(dst, 0), "writeDataWireFormat should return 0."); } /** * Test for the readSetupWireFormat method. * It should always return 0. */ @Test void testReadSetupWireFormat() { byte[] buffer = new byte[10]; // The method should not read anything and return 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java
assertEquals(expectedMsg, e.getMessage(), "message for code " + Integer.toHexString(code)); assertEquals(SmbException.getStatusByCode(code), e.getNtStatus(), "status for code " + Integer.toHexString(code)); } @Test void negativeCodeDefaultsToUnsuccessful() { SmbAuthException e = new SmbAuthException(-1); assertEquals(SmbException.getStatusByCode(-1), e.getNtStatus());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
assertEquals(37, bytesRead); // 3 reserved + 32 (8*4) + 2 for setupCount assertEquals(10, response.totalParameterCount); assertEquals(10, response.bufDataStart); // Should be set to totalParameterCount assertEquals(20, response.totalDataCount); assertEquals(5, response.parameterCount); assertEquals(30, response.parameterOffset);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
// Verify each implementation assertEquals(FileNotifyInformation.FILE_ACTION_ADDED, addedImpl.getAction()); assertEquals("added.txt", addedImpl.getFileName()); assertEquals(FileNotifyInformation.FILE_ACTION_REMOVED, removedImpl.getAction()); assertEquals("removed.txt", removedImpl.getFileName());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
// When & Then assertEquals(1000L, mockAllocInfo.getCapacity()); assertEquals(500L, mockAllocInfo.getFree()); assertEquals(2000L, mockAllocInfo.getCapacity()); assertEquals(1000L, mockAllocInfo.getFree()); assertEquals(3000L, mockAllocInfo.getCapacity()); assertEquals(1500L, mockAllocInfo.getFree());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/JavaPathTypeTest.java
*/ @Test public void testOption() { String[] formatted = JavaPathType.MODULES.option(paths()); assertEquals(2, formatted.length); assertEquals("--module-path", formatted[0]); assertEquals(toPlatformSpecific("\"src/foo.java:src/bar.java\""), formatted[1]); } /** * Tests the formatting of an option with a module name. */ @TestRegistered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Jun 26 07:56:58 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
// Then assertNotNull(buffer1, "First buffer should not be null"); assertNotNull(buffer2, "Second buffer should not be null"); assertEquals(1024, buffer1.length, "Buffer should have expected size"); assertEquals(1024, buffer2.length, "Buffer should have expected size"); assertNotSame(buffer1, buffer2, "Different calls should return different buffers initially"); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
// Check default field values assertEquals(1, t.numThreads, "Default numThreads should be 1"); assertEquals(1, t.numIter, "Default numIter should be 1"); assertEquals(100L, t.delay, "Default delay should be 100"); assertNull(t.url, "URL should be null by default"); assertEquals(0, t.numComplete, "numComplete should start at 0"); assertEquals(0L, t.ltime, "ltime should start at 0"); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)