- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for testClone (0.04 sec)
-
src/test/java/jcifs/smb1/util/HMACT64Test.java
byte[] buffer = new byte[10]; // Should throw exception when buffer is too small assertThrows(IllegalStateException.class, () -> hmac.engineDigest(buffer, 0, 10)); } @Test void testClone() { // Test clone() method HMACT64 originalHmac = new HMACT64(TEST_KEY); originalHmac.engineUpdate(TEST_DATA, 0, TEST_DATA.length / 2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
HMACT64 hmac = new HMACT64(TEST_KEY); assertThrows(IllegalStateException.class, () -> hmac.engineDigest(new byte[10], 0, 10)); } } @Test void testClone() throws NoSuchAlgorithmException, CloneNotSupportedException { // Test clone() method try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/SmbTransportTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
} @Test void testRenewCredentials() { assertFalse(context.renewCredentials("someLocation", new Exception("someError"))); } @Test void testClose() throws CIFSException { assertFalse(context.isCloseCalled()); boolean result = context.close(); assertFalse(result); // AbstractCIFSContext always returns false for close()
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Verifies that the close method can be called without throwing an exception. * @throws CIFSException if an error occurs during close. */ @Test public void testClose() throws CIFSException { assertDoesNotThrow(() -> smbPipeHandle.close(), "close() should not throw an exception on a mock object."); // Verify that the close method was called
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeHandleTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
smbRandomAccessFile.write(testData); assertEquals(testData.length, smbRandomAccessFile.getFilePointer()); } @Test void testClose() throws SmbException { // Mock isOpen to return false after close doAnswer(new Answer<Void>() { @Override public Void answer(InvocationOnMock invocation) throws Throwable {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
// Then assertEquals(mockPipe, pipe); verify(mockContext).getPipe(url, pipeType); } @Test @DisplayName("Should close context") void testClose() throws CIFSException { // When mockContext.close(); // Then verify(mockContext).close(); } @Test @DisplayName("Should get Configuration")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0)