- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for testGetFilename (0.27 sec)
-
src/test/java/org/codelibs/core/io/ResourceUtilTest.java
assertEquals("file:" + getRoot() + "Program File", ResourceUtil.toExternalForm(url)); } /** * @throws Exception */ public void testGetFileName() throws Exception { URL url = new File("/Program File").toURI().toURL(); assertEquals(getRoot() + "Program File", ResourceUtil.getFileName(url));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
notifyInfo.decode(buffer, 0, buffer.length); assertEquals(expectedAction, notifyInfo.getAction()); } @Test @DisplayName("Test getFileName returns correct value") void testGetFileName() throws SMBProtocolDecodingException { String expectedFileName = "important_document.xlsx"; byte[] buffer = createValidNotificationBuffer(expectedFileName, FileNotifyInformation.FILE_ACTION_ADDED);
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/FileNotifyInformationTest.java
verify(mockFileNotifyInfo, times(1)).getAction(); } @Test @DisplayName("Test getFileName method with mock") void testGetFileName() { // Setup mock behavior String expectedFileName = "test-file.txt"; when(mockFileNotifyInfo.getFileName()).thenReturn(expectedFileName); // Test
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/fscc/FileBothDirectoryInfoTest.java
// Verify assertEquals(expectedFileIndex, fileBothDirectoryInfo.getFileIndex()); } @Test @DisplayName("Test getFilename returns correct filename") void testGetFilename() throws SMBProtocolDecodingException { // Prepare test data String expectedFilename = "longfilename.docx"; byte[] buffer = createValidBuffer(expectedFilename, "LONGFI~1.DOC", true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
assertArrayEquals(testFileId, response.getFileId()); } @Test @DisplayName("getFileName should return the file name passed in constructor") void testGetFileName() { assertEquals(testFileName, response.getFileName()); } } @Nested @DisplayName("writeBytesWireFormat Tests") class WriteBytesWireFormatTests { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0)