- Sort Score
- Result 10 results
- Languages All
Results 551 - 560 of 839 for hFormat (0.04 sec)
-
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
assertThat(expected).hasMessageThat().contains("inner class"); } private static String rootLocaleFormat(String format, Object... args) { return String.format(Locale.ROOT, format, args); } static class OverridesEquals { @SuppressWarnings("EqualsHashCode") @Override public boolean equals(@Nullable Object o) { return true;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
String filePath = directoryPath; if (!filePath.endsWith("/")) { filePath += "/"; } filePath += fileInfo.getName(); // Ensure proper SMB URL format if (!filePath.startsWith("smb://")) { if (filePath.startsWith("/")) { filePath = "smb://localhost" + filePath; } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
assertTrue(result.contains("action=")); assertTrue(result.contains("file=" + fileName)); // Hexdump.toHexString produces 4-character padded uppercase hex String expectedHex = String.format("%04X", action); assertTrue(result.contains("0x" + expectedHex)); } @Test @DisplayName("Test toString with empty object") void testToStringEmpty() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
int result = (int) method.invoke(cancel, buffer, bufferIndex); // Then assertEquals(0, result); } } @Nested @DisplayName("Wire Format Tests") class WireFormatTests { private SmbComNtCancel cancel; private Configuration mockConfig; @BeforeEach void setUp() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
SecurityBlob blob = new SecurityBlob(input); // Act String actual = blob.toString(); // Assert assertEquals(expected, actual, "Hex string should match expected format"); } // Ensures a default-constructed blob starts empty and stable across APIs @Test @DisplayName("Default constructor yields empty state") void defaultConstructor_initialState() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
assertEquals(expectedTime, response.getLastAccessTime()); } @Test void testReadParameterWordsWireFormatWithData() { // Test reading parameter words from wire format response = new SmbComQueryInformationResponse(mockConfig, 0L); // Prepare test data byte[] buffer = new byte[256]; int bufferIndex = 0; // Set wordCount to non-zero
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
IOException exception = assertThrows(IOException.class, () -> { packet.readTrailerWireFormat(bais, readBuffer, 0); }); assertEquals("invalid session request wire format", exception.getMessage()); } @ParameterizedTest @MethodSource("provideNamesForWriteTest") @DisplayName("writeTrailerWireFormat should handle various name combinations")
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/UniAddressTest.java
assertFalse(UniAddress.isDotQuadIP(input)); } @Test void shouldReturnTrueForInvalidOctetValues() { // isDotQuadIP does not validate octet values, only checks format assertTrue(UniAddress.isDotQuadIP("192.168.1.256")); assertTrue(UniAddress.isDotQuadIP("999.999.999.999")); } @Test void shouldThrowExceptionForNullInput() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
long creationTimeMs = System.currentTimeMillis(); long lastAccessTimeMs = creationTimeMs + 100; long lastWriteTimeMs = creationTimeMs + 200; // Write as Windows FileTime format SMBUtil.writeTime(creationTimeMs, buffer, 8); SMBUtil.writeTime(lastAccessTimeMs, buffer, 16); SMBUtil.writeTime(lastWriteTimeMs, buffer, 24);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0)