- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 818 for rock (0.05 sec)
-
src/test/java/jcifs/smb1/smb1/InfoTest.java
import static org.mockito.Mockito.mock; import java.util.Date; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; /** * Unit tests for the {@link Info} implementations used by the SMB1 * protocol handling code. */ class InfoTest { // A tiny mock to illustrate Mockito interaction patterns. @MockRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/JobHelperTest.java
// Mock implementation that doesn't require client entity.setLastUpdated(System.currentTimeMillis()); } @Override public void update(JobLog entity) { // Mock implementation that doesn't require client entity.setLastUpdated(System.currentTimeMillis()); } } // Simple mock class without complex interface requirements
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
* heavy network interactions through {@link SmbTransport}. */ @ExtendWith(MockitoExtension.class) public class SmbSessionTest { @Mock UniAddress addr; @Mock InetAddress inet; NtlmPasswordAuthentication auth; @Mock SmbTransport transport; // static helper that returns the mocked transport. The real classRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
cmd/erasure-decode.go
// if readTrigger is false, it implies previous disk.ReadAt() was successful and there is no need // to try reading the next disk. for readTrigger := range readTriggerCh { newBufLK.RLock() canDecode := p.canDecode(newBuf) newBufLK.RUnlock() if canDecode { break } if readerIndex == len(p.readers) { break } if !readTrigger { continue } wg.Add(1)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 9.5K bytes - Viewed (0) -
misc/ios/go_ios_exec.go
var tmpdir string var ( devID string appID string teamID string bundleID string deviceID string ) // lock is a file lock to serialize iOS runs. It is global to avoid the // garbage collector finalizing it, closing the file and releasing the // lock prematurely. var lock *os.File func main() { log.SetFlags(0) log.SetPrefix("go_ios_exec: ") if debug { log.Println(strings.Join(os.Args, " ")) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jun 18 16:32:49 UTC 2024 - 8.7K bytes - Viewed (0) -
cmd/callhome.go
return } go func() { r := rand.New(rand.NewSource(time.Now().UnixNano())) // Leader node (that successfully acquires the lock inside runCallhome) // will keep performing the callhome. If the leader goes down for some reason, // the lock will be released and another node will acquire it and take over // because of this loop. for { if !globalCallhomeConfig.Enabled() { return }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.3K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
return; } FileChannel channel = null; FileLock lock = null; try { Properties props = new Properties(); channel = new RandomAccessFile(touchfile, "rw").getChannel(); lock = channel.lock(); if (touchfile.canRead()) {Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Tue Apr 22 22:13:51 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
@ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) public class SmbComSessionSetupAndXTest { @Mock private CIFSContext mockContext; @Mock private SmbComNegotiateResponse mockNegotiate; @Mock private ServerMessageBlock mockAndX; @Mock private Configuration mockConfig; private static byte[] blobCred() { return "blobdata".getBytes(StandardCharsets.UTF_8);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.mockito.InOrder; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.Credentials; @ExtendWith(MockitoExtension.class) class CredentialsInternalTest { @Mock CIFSContext mockContext; /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
@BeforeEach public void setUp() { mockContext = Mockito.mock(CIFSContext.class); mockTransport = Mockito.mock(SmbTransportImpl.class); mockConfig = Mockito.mock(Configuration.class); mockCredentials = Mockito.mock(Credentials.class); mockCredentialsInternal = Mockito.mock(CredentialsInternal.class); Mockito.when(mockContext.getConfig()).thenReturn(mockConfig);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0)