- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 204 for getPipe (0.06 sec)
-
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
void testConstructor_NonWorkgroupType_ThrowsException() throws Exception { // Given: A non-workgroup type with a host when(locator.getType()).thenReturn(SmbConstants.TYPE_SERVER); when(locator.getURL()).thenReturn(createSmbURL("smb://server/")); // When & Then: Constructor should throw SmbException
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
Mockito.when(mock.getLastAccessTime()).thenReturn(17L); Mockito.when(mock.getSize()).thenReturn(19L); // Act: invoke each method once int attributes = mock.getAttributes(); long c = mock.getCreateTime(); long w = mock.getLastWriteTime(); long a = mock.getLastAccessTime(); long s = mock.getSize(); // Assert: values and interactions
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
void testGetTypeWithDifferentShareTypes(int inputType, int expectedType) { SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, inputType, TEST_REMARK); assertEquals(expectedType, info.getType()); } @Test @DisplayName("Test getType with hidden flag") void testGetTypeWithHiddenFlag() { // Hidden flag (0x80000000) should be masked out int hiddenPrinterType = 0x80000001; // Hidden printer
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
static Stream<Arguments> intGetterProvider() { return Stream.of(Arguments.of((IntGetter) FileEntry::getType, -1, "negative type"), Arguments.of((IntGetter) FileEntry::getType, 0, "zero type"), Arguments.of((IntGetter) FileEntry::getType, Integer.MAX_VALUE, "max type"), Arguments.of((IntGetter) FileEntry::getAttributes, 0, "no attributes"),
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
} @Test public void testMultipleGetFile() throws IOException { // Calling getFile() multiple times should return the same file ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4, 5 }); File file1 = cos.getFile(); File file2 = cos.getFile(); assertEquals(file1.getAbsolutePath(), file2.getAbsolutePath());Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Wed Nov 12 14:01:04 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcDfsRootEnumTest.java
assertEquals(entries1[i].getName(), entries2[i].getName()); assertEquals(entries2[i].getName(), entries3[i].getName()); assertEquals(entries1[i].getType(), entries2[i].getType()); assertEquals(entries2[i].getType(), entries3[i].getType()); } } @Test @DisplayName("Verify proper inheritance and interface implementation") void testInheritance() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
} } @ParameterizedTest(name = "getType returns {0}") @ValueSource(ints = { 0, 1, -5, Integer.MAX_VALUE }) @DisplayName("Parameterized type values") void typeParameterized(int type) { FileEntry mock = mock(FileEntry.class); when(mock.getType()).thenReturn(type); assertEquals(type, mock.getType()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
*/ public ContentOutputStream(final int threshold, final File tmpDir) { super(threshold, PREFIX, SUFFIX, tmpDir); } @Override public File getFile() { done = true; return super.getFile(); } /** * Closes the stream and deletes the temporary file if it was not retrieved. * If an error occurs during file deletion, it is logged but not thrown to avoidRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSignatureTest.java
// Create PacSignature PacSignature pacSignature = new PacSignature(data); // Verify assertEquals(PacSignature.KERB_CHECKSUM_HMAC_MD5, pacSignature.getType()); assertArrayEquals(checksum, pacSignature.getChecksum()); } /** * Test constructor with HMAC_SHA1_96_AES128 type. * * @throws IOException if an I/O error occursRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java
assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:00")); } /** * @throws Exception */ @Test public void testToCalendar_MediumStyle() throws Exception { final Calendar calendar = toCalendar("11:49:10"); assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:10")); } /** * @throws Exception
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 9.5K bytes - Viewed (0)