Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 471 - 480 of 975 for rock (0.02 seconds)

  1. guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

     * </ul>
     *
     * The last point is subtle. Often the observable object will be managing its own internal state
     * using a lock, however it is dangerous to dispatch listeners while holding a lock because they
     * might run on the {@code directExecutor()} or be otherwise re-entrant (call back into your
     * object). So it is important to not call {@link #dispatch} while holding any locks. This is why
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

    import org.junit.jupiter.params.provider.MethodSource;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.Configuration;
    import jcifs.NetbiosName;
    
    class SessionRequestPacketTest {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private NetbiosName mockCalledName;
    
        @Mock
        private NetbiosName mockCallingName;
    
        @BeforeEach
        void setUp() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

    import org.junit.jupiter.api.extension.ExtendWith;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.Arguments;
    import org.junit.jupiter.params.provider.MethodSource;
    import org.mockito.Mock;
    import org.mockito.Mockito;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for SmbAuthException covering all constructors and inherited behavior.
     */
    @ExtendWith(MockitoExtension.class)
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/SimplexTransferListenerTest.java

            TransferResource resource = new TransferResource(null, null, "http://maven.org/test/test-resource", null, null);
    
            RepositorySystemSession session = Mockito.mock(RepositorySystemSession.class);
            TransferListener delegate = Mockito.mock(TransferListener.class);
            try (SimplexTransferListener listener = new SimplexTransferListener(delegate)) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Feb 06 11:28:05 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultProjectManagerTest.java

        @Test
        void attachArtifact() {
            InternalMavenSession session = Mockito.mock(InternalMavenSession.class);
            ArtifactManager artifactManager = Mockito.mock(ArtifactManager.class);
            MavenProject mavenProject = new MavenProject();
            project = new DefaultProject(session, mavenProject);
            artifact = Mockito.mock(ProducedArtifact.class);
            artifactPath = Paths.get("");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Dec 17 16:17:01 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java

            this.largeFile = largeFile;
        }
    
        /**
         * Returns the process ID associated with this lock range.
         *
         * @return the process ID
         */
        public int getPid() {
            return this.pid;
        }
    
        /**
         * Returns the starting byte offset of the lock range.
         *
         * @return the starting byte offset
         */
        public long getByteOffset() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, response.getSubCommand());
        }
    
        @Test
        @DisplayName("Test constructor with mock configuration")
        void testConstructorWithMockConfig() {
            // Test constructor with mock configuration
            Trans2SetFileInformationResponse mockResponse = new Trans2SetFileInformationResponse(mockConfig);
            assertNotNull(mockResponse);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotification.java

     */
    package jcifs.internal.smb2.lock;
    
    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.util.SMBUtil;
    import jcifs.util.Hexdump;
    
    /**
     * SMB2 Oplock Break notification message. This server-initiated message notifies the client
     * that an opportunistic lock must be broken due to conflicting access from another client.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Unit tests for the SmbFile class.
     * This class focuses on testing the logic of SmbFile without actual network communication,
     * using mocks where necessary.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbFileTest {
    
        @Mock
        private NtlmPasswordAuthentication mockAuth;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        private Smb2NegotiateResponse response;
        private Smb2NegotiateRequest mockRequest;
    
        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
            mockContext = mock(CIFSContext.class);
            mockRequest = mock(Smb2NegotiateRequest.class);
            response = new Smb2NegotiateResponse(mockConfig);
    
            // Default configuration
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
Back to Top