Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 51 for doNothing (0.07 seconds)

  1. android/guava/src/com/google/common/util/concurrent/Runnables.java

      @SuppressWarnings({"InlineLambdaConstant", "UnnecessaryLambda"})
      private static final Runnable EMPTY_RUNNABLE = () -> {};
    
      /** Returns a {@link Runnable} instance that does nothing when run. */
      public static Runnable doNothing() {
        return EMPTY_RUNNABLE;
      }
    
      private Runnables() {}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Aug 05 15:30:14 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  2. src/test/java/jcifs/SmbSessionTest.java

    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.doNothing;
    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/BufferCacheTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.mockito.Mockito.doNothing;
    import static org.mockito.Mockito.when;
    
    import java.util.ArrayList;
    import java.util.List;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.doNothing;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.spy;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.io.ByteArrayInputStream;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  5. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/InternalYamlRestTestPluginFuncTest.groovy

            setupRestResources([api])
            addRestTestsToProject(["10_basic.yml"], "yamlRestTest")
            file("src/yamlRestTest/java/MockIT.java") << "import org.junit.Test;class MockIT { @Test public void doNothing() { }}"
    
            when:
            def result = gradleRunner("yamlRestTest", "printYamlRestTestClasspath").build()
    
            then:
            result.task(':yamlRestTest').outcome == TaskOutcome.SKIPPED
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 10:22:28 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.mockito.Mockito.doNothing;
    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.when;
    
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.Set;
    
    import javax.security.auth.Subject;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.Mockito.atLeast;
    import static org.mockito.Mockito.doNothing;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.io.IOException;
    import java.net.InetAddress;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.ArgumentMatchers.anyInt;
    import static org.mockito.ArgumentMatchers.anyLong;
    import static org.mockito.Mockito.doAnswer;
    import static org.mockito.Mockito.doNothing;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    import java.net.MalformedURLException;
    import java.net.UnknownHostException;
    
    import org.junit.jupiter.api.BeforeEach;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

                // Mock parent close() to do nothing - explicitly mock the super.close() behavior
                // The close method calls super.close(), then handle.close(), then pipe.close()
                lenient().doNothing().when((DcerpcHandle) handle).close();
    
                // Setup close to call real method which will then call our mocked components
                doCallRealMethod().when(handle).close();
    
                handle.close();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        // Happy path: connect to logon share completes without exception
        @Test
        @DisplayName("treeConnectLogon performs call without exception")
        void treeConnectLogon_happy() throws SmbException {
            // doNothing by default
            session.treeConnectLogon();
            verify(session, times(1)).treeConnectLogon();
        }
    
        // Error propagation: connect to logon share throws SmbException
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.8K bytes
    - Click Count (0)
Back to Top