- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 770 for _clone (0.22 sec)
-
src/test/java/jcifs/SmbFileHandleTest.java
doThrow(new CIFSException("Failed to close")).when(smbFileHandle).close(lastWriteTime); assertThrows(CIFSException.class, () -> smbFileHandle.close(lastWriteTime), "close(long) should throw CIFSException when closing fails."); verify(smbFileHandle, times(1)).close(lastWriteTime); } /** * Test close() successfully. * * @throws CIFSException */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/RelayTest.kt
val relay = edit(file, upstream, metadata, 1024) val source1 = relay.newSource() val source2 = relay.newSource() source1!!.close() source1.close() // Unnecessary. Shouldn't decrement the reference count. assertThat(relay.isClosed).isFalse() source2!!.close() assertThat(relay.isClosed).isTrue() assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null) } @Test fun racingReaders() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
*/ @Test void testClose_multipleTimes() { doNothing().when(smbTree).close(); smbTree.close(); smbTree.close(); smbTree.close(); verify(smbTree, times(3)).close(); } /** * Test for close() method throwing exception. * Verifies behavior when close throws an exception. */ @Test void testClose_throwsException() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; @GwtCompatible @NullMarked public class Helpers { // Clone of Objects.equals static boolean equal(@Nullable Object a, @Nullable Object b) { return a == b || (a != null && a.equals(b)); } // Clone of Lists.newArrayList public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 17.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
// Mock close success for the first call doAnswer(invocation -> { MsrpcSamrCloseHandle rpc = invocation.getArgument(0); rpc.retval = 0; return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrCloseHandle.class)); // First close call aliasHandle.close(); // Act: Call close again aliasHandle.close();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
README.md
git checkout main Development for branch 8x remains in the shared repository: - https://gitbox.apache.org/repos/asf/lucene-solr.git ## GitHub forks? If you are using GitHub, make a clone of the corresponding repository mirror and create your pull requests against the main branch: - Lucene: <https://github.com/apache/lucene>
Registered: Wed Sep 10 00:11:11 UTC 2025 - Last Modified: Wed Mar 10 10:02:23 UTC 2021 - 1.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/BloomFilterStrategies.java
private final LongAddable bitCount; LockFreeBitArray(long bits) { checkArgument(bits > 0, "data length is zero!"); // Avoid delegating to this(long[]), since AtomicLongArray(long[]) will clone its input and // thus double memory usage. this.data = new AtomicLongArray(Ints.checkedCast(LongMath.divide(bits, 64, RoundingMode.CEILING))); this.bitCount = LongAddables.create(); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
byte[] buffer = new byte[256]; // Fill buffer with test pattern for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) (i & 0xFF); } byte[] originalBuffer = buffer.clone(); // When int bytesWritten = response.writeBytesWireFormat(buffer, 10); // Then assertEquals(0, bytesWritten);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java
void testUnspecifiedFileIdImmutability() { byte[] originalFileId = Smb2Constants.UNSPECIFIED_FILEID; byte[] copyFileId = Smb2Constants.UNSPECIFIED_FILEID.clone(); // Modify the copy copyFileId[0] = 0x00; // Verify original is unchanged assertEquals((byte) 0xFF, originalFileId[0], "Original FileId should remain unchanged");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
session.treeConnectLogon(); // Assert: treeConnect invoked once with null params verify(tree, times(1)).treeConnect(isNull(), isNull()); // Close of try-with-resources should call close on the mock verify(tree, times(1)).close(); } @Test @DisplayName("unwrap: returns self for compatible type and throws for incompatible") @SuppressWarnings({ "rawtypes", "unchecked" })
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)