- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for testClone (0.07 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/bytes/bytes_test.go
buf := make([]byte, 1<<16) for i := 0; i < len(buf); i += skip { buf[i] = 1 } for i := 0; i < b.N; i++ { Index(buf, key) } }) } } func TestClone(t *testing.T) { var cloneTests = [][]byte{ []byte(nil), []byte{}, Clone([]byte{}), []byte(strings.Repeat("a", 42))[:0], []byte(strings.Repeat("a", 42))[:0:0], []byte("short"),
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0) -
src/archive/tar/writer_test.go
} testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr) ops fileOps wantCnt int64 wantErr error } testClose struct { // Close() == wantErr wantErr error } testFnc any // testHeader | testWrite | testReadFrom | testClose ) vectors := []struct { file string // Optional filename of expected output tests []testFnc }{{
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Feb 03 16:38:43 UTC 2025 - 39.8K 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/org/codelibs/core/io/CloseableUtilTest.java
import java.io.OutputStream; import org.junit.Test; /** * @author shot */ public class CloseableUtilTest { /** * @throws Exception */ @Test public void testClose() throws Exception { final NotifyOutputStream out = new NotifyOutputStream(); CloseableUtil.close(out); assertThat(out.getNotify(), is("closed")); } /** * @throws Exception
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
} public void testInt() { TestHasher hasher = new TestHasher(); hasher.putInt(0x04030201); hasher.assertBytes(new byte[] {1, 2, 3, 4}); } public void testLong() { TestHasher hasher = new TestHasher(); hasher.putLong(0x0807060504030201L); hasher.assertBytes(new byte[] {1, 2, 3, 4, 5, 6, 7, 8}); } public void testChar() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.8K 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)