- Sort Score
- Result 10 results
- Languages All
Results 781 - 790 of 1,466 for assertEquals (0.06 sec)
-
guava-tests/test/com/google/common/hash/HashTestUtils.java
HashCode hashcode1 = hashFunction.hashInt(value); HashCode hashcode2 = hashFunction.hashInt(value); Assert.assertEquals(hashcode1, hashcode2); // idempotent Assert.assertEquals(hashFunction.bits(), hashcode1.bits()); Assert.assertEquals(hashFunction.bits(), hashcode1.asBytes().length * 8); hashcodes.add(hashcode1); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 25.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryRequestTest.java
NameQueryRequest request = new NameQueryRequest(mockConfig, mockName); assertNotNull(request); assertEquals(mockName, request.questionName); assertEquals(NameServicePacket.NB, request.questionType); } @Test void testWriteBodyWireFormat() { // Test that writeBodyWireFormat calls writeQuestionSectionWireFormat
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/org/codelibs/fess/helper/SearchHelperTest.java
RequestParameter[] result = searchHelper.getSearchParameters(); assertEquals(2, result.length); assertEquals("q", result[0].getName()); assertEquals("test", result[0].getValues()[0]); assertEquals("lang", result[1].getName()); assertEquals("en", result[1].getValues()[0]); assertEquals("ja", result[1].getValues()[1]); } // Test addRewriter method
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 18.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
// Verify counters assertEquals(1, stats.getRdmaReads(), "Should have 1 read operation"); assertEquals(1, stats.getRdmaWrites(), "Should have 1 write operation"); assertEquals(1, stats.getRdmaSends(), "Should have 1 send operation"); assertEquals(1, stats.getRdmaReceives(), "Should have 1 receive operation");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
List<FileNotifyInformation> result3 = watchHandle.watch(); // Verify results assertEquals(1, result1.size()); assertEquals(fileNotifyInfo1, result1.get(0)); assertEquals(2, result2.size()); assertEquals(fileNotifyInfo2, result2.get(0)); assertEquals(fileNotifyInfo3, result2.get(1)); assertTrue(result3.isEmpty());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1) -
src/test/java/jcifs/smb/FileEntryTest.java
// Assert: values and interactions assertEquals("file.txt", name, "getName should return stubbed value"); assertEquals(1, type1); assertEquals(1, type2); assertEquals(0x20, attributes); assertEquals(100L, createTime); assertEquals(200L, lastModified); assertEquals(300L, lastAccess); assertEquals(12345L, size); // Verify precise interactionsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
assertEquals(2, calls.get()); } @Test @DisplayName("skipBytes(): advances file pointer for positive values") void skipBytes_advancesFP() throws Exception { SmbRandomAccessFile raf = newInstance("r", false, false, false); assertEquals(0L, raf.getFilePointer()); int skipped = raf.skipBytes(5); assertEquals(5, skipped);
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/org/codelibs/fess/exception/DataStoreExceptionTest.java
DataStoreException exception = new DataStoreException("Top level error", middleCause); assertNotNull(exception); assertEquals("Top level error", exception.getMessage()); assertEquals(middleCause, exception.getCause()); assertEquals(rootCause, exception.getCause().getCause()); } public void test_stackTrace() { // Test that stack trace is properly set
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
// Act & Assert Assertions.assertEquals(attributes, info.getAttributes()); Assertions.assertEquals(createTime, info.getCreateTime()); Assertions.assertEquals(lastWrite, info.getLastWriteTime()); Assertions.assertEquals(lastAccess, info.getLastAccessTime()); Assertions.assertEquals(size, info.getSize()); } // Supplies a range of normal and edge case values.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java
String netName = "SHARE"; int type = 1; String remark = "remark"; instance = new SmbShareInfo(netName, type, remark); assertEquals(netName, instance.getName()); // Note: getType() transforms the raw type assertEquals(SmbFile.TYPE_PRINTER, instance.getType()); } /** * Test of getName method, of class SmbShareInfo. */ @Test void testGetName() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0)