- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 77 for comparisons (0.09 sec)
-
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
byte b = (byte) 0xFF; int value = b & 0xFF; assertEquals(255, value, "Byte to unsigned conversion should work"); // Test comparison operation assertTrue(value == 255, "Comparison should work correctly"); } /** * Encode a string as 16-bit little-endian Unicode */ private byte[] encodeUnicode(String s) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/DialectVersionTest.java
assertFalse(stringRep.isEmpty()); } @Test @DisplayName("Should handle version comparison") void testVersionComparison() { // Test equality assertEquals(DialectVersion.SMB311, DialectVersion.SMB311); assertNotEquals(DialectVersion.SMB1, DialectVersion.SMB311); // Test comparison assertTrue(DialectVersion.SMB1.compareTo(DialectVersion.SMB311) < 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
} /** * Compares two SMB files by name. * @param f1 first file to compare * @param f1name name of first file * @param f2 second file to compare * @return comparison result for sorting * @throws IOException if an I/O error occurs */ protected int compareNames(final SmbFile f1, final String f1name, final SmbFile f2) throws IOException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
} } /** * Compares two SMB files by name * @param f1 first file to compare * @param f1name name of first file * @param f2 second file to compare * @return comparison result for sorting * @throws IOException if an I/O error occurs */ protected int compareNames(final SmbFile f1, final String f1name, final SmbFile f2) throws IOException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorInternal.java
* * @param other the other resource locator to compare with * @return whether the paths share a common root * @throws CIFSException if an error occurs during comparison */ boolean overlaps(SmbResourceLocator other) throws CIFSException; /** * Internal: for testing only * * @param dr the DFS referral data to processRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Service} */ @NullUnmarked public class ServiceTest extends TestCase { /** Assert on the comparison ordering of the State enum since we guarantee it. */ public void testStateOrdering() { // List every valid (direct) state transition. assertLessThan(NEW, STARTING); assertLessThan(NEW, TERMINATED);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
byte[] data = "The quick brown fox jumps over the lazy dog".getBytes(); // Calculate expected HMAC-MD5 using standard Java MessageDigest for comparison // This is a simplified HMAC-MD5 calculation for comparison, not a full RFC 2104 implementation. // The HMACT64 implementation is what we are testing. MessageDigest md5 = MessageDigest.getInstance("MD5");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
*/ @Test void testToString() { // The actual toString() method uses super.toString(), so we mimic that for the check. // A direct string comparison might be brittle, so we check for the class name and brackets. String actualString = response.toString(); assertTrue(actualString.startsWith("Trans2SetFileInformationResponse["),Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
byte[] actual = new byte[bytesWritten]; System.arraycopy(dst, 0, actual, 0, bytesWritten); // Use assertArrayEquals for byte array comparison org.junit.jupiter.api.Assertions.assertArrayEquals(expected, actual, "Byte array content should match the expected format."); } @Test void testReadParameterWordsWireFormat() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/SitemapFile.java
* </p> * * <p> * This class also provides implementations for {@code equals}, {@code hashCode}, and {@code toString} methods * to facilitate object comparison and representation. * </p> * */ public class SitemapFile implements Sitemap { private static final long serialVersionUID = 1L; /**Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 4.4K bytes - Viewed (1)