Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for mock (0.15 sec)

  1. cni/pkg/nodeagent/informers_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"fmt"
    	"testing"
    	"time"
    
    	"github.com/stretchr/testify/mock"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/cni/pkg/util"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/kube"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java

        private final ProjectBuilder projectBuilder = mock(ProjectBuilder.class);
        private final MavenSession session = mock(MavenSession.class);
        private final MavenExecutionRequest mavenExecutionRequest = mock(MavenExecutionRequest.class);
    
        private final ProjectsSelector projectsSelector = new DefaultProjectsSelector(projectBuilder);
    
        // Not using mocks for these strategies - a mock would just copy the actual implementation.
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 09:23:26 GMT 2023
    - 27.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessEnv.java

        /**
         * Get the value for the key 'mail.send.mock'. <br>
         * The value is, e.g. true <br>
         * comment: Does it send mock mail? (true: no send actually, logging only)
         * @return The value of found property. (NotNull: if not found, exception but basically no way)
         */
        String getMailSendMock();
    
        /**
         * Is the property for the key 'mail.send.mock' true? <br>
         * The value is, e.g. true <br>
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.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.mock;
    
    /**
     */
    public class PluginParameterExpressionEvaluatorV4Test extends AbstractCoreMavenComponentTestCase {
        private static final String FS = File.separator;
    
        @Inject
        PlexusContainer container;
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

    import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory;
    import org.eclipse.aether.repository.LocalRepository;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.mockito.Mockito.mock;
    
    @PlexusTest
    @Deprecated
    public abstract class AbstractCoreMavenComponentTestCase {
    
        @Inject
        protected PlexusContainer container;
    
        @Inject
        protected RepositorySystem repositorySystem;
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

      }
    
      @Test
      fun setResponseMockReason() {
        val reasons =
          arrayOf<String?>(
            "Mock Response",
            "Informational",
            "OK",
            "Redirection",
            "Client Error",
            "Server Error",
            "Mock Response",
          )
        for (i in 0..599) {
          val builder = MockResponse.Builder().code(i)
          val expectedReason = reasons[i / 100]
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      }
    
      @Test
      fun setResponseMockReason() {
        val reasons =
          arrayOf(
            "Mock Response",
            "Informational",
            "OK",
            "Redirection",
            "Client Error",
            "Server Error",
            "Mock Response",
          )
        for (i in 0..599) {
          val response = MockResponse().setResponseCode(i)
          val expectedReason = reasons[i / 100]
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

    import okhttp3.Headers.Companion.headersOf
    import okhttp3.WebSocketListener
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.http2.Settings
    import okio.Buffer
    
    /** A scripted response to be replayed by the mock web server. */
    @ExperimentalOkHttpApi
    class MockResponse {
      /** Returns the HTTP response line, such as "HTTP/1.1 200 OK". */
      val status: String
    
      val code: Int
        get() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  9. cni/pkg/plugin/plugin_test.go

    }
    
    func buildMockConf(ambientEnabled bool, eventURL string) string {
    	return fmt.Sprintf(
    		mockConfTmpl,
    		"1.0.0",
    		"1.0.0",
    		"eth0",
    		testSandboxDirectory,
    		eventURL,
    		ambientEnabled,
    		"mock",
    	)
    }
    
    func buildFakePodAndNSForClient() (*corev1.Pod, *corev1.Namespace) {
    	proxy := corev1.Container{Name: "mockContainer"}
    	app := corev1.Container{Name: "foo-init"}
    	fakePod := &corev1.Pod{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  10. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    ///test  s:file p:/test
    file://test  s:file h:test p:/
    file://localhost  s:file h:localhost p:/
    file://localhost/  s:file h:localhost p:/
    file://localhost/test  s:file h:localhost p:/test
    test  s:file p:/tmp/mock/test
    file:test  s:file p:/tmp/mock/test
    
    # Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/path.js
    http://example.com/././foo about:blank s:http h:example.com p:/foo
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top