- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for testGetName (0.06 sec)
-
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
assertArrayEquals(ansiHash, auth.getAnsiHash(challenge)); assertArrayEquals(unicodeHash, auth.getUnicodeHash(challenge)); } // Test getName method @Test void testGetName() { NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN", "user", "password"); assertEquals("DOMAIN\\user", auth.getName()); } // Test getName method with default domain
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java
// Note: getType() transforms the raw type assertEquals(SmbFile.TYPE_PRINTER, instance.getType()); } /** * Test of getName method, of class SmbShareInfo. */ @Test void testGetName() { String netName = "TEST_SHARE"; SmbShareInfo instance = new SmbShareInfo(netName, 0, "remark"); assertEquals(netName, instance.getName()); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
} catch (NoSuchMethodException e) { fail("Method not found: " + e.getMessage()); } } @Test @DisplayName("Should handle getName() method") void testGetName() { // Given String testName = "TESTSERVER"; when(mockNetbiosName.getName()).thenReturn(testName); // When String name = mockNetbiosName.getName(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
assertThrows(RuntimeException.class, () -> new SmbFile(url, null, illegalShareAccess)); } } @Nested class PathManipulationTests { @Test public void testGetName() throws MalformedURLException { // Test file name extraction assertEquals("file.txt", new SmbFile("smb1://server/share/file.txt").getName());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0)