org.mockito.Mock



API Populatity

71 Client projects

Project: org.mockito

Project SpringSource/spring-framework in file ...et.config.annotation.InterceptorRegistryTests.java (2014-02-09)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2014 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,6 @@ import java.util.List;
 
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mock;
 import org.mockito.Mockito;
 import org.springframework.mock.web.test.MockHttpServletRequest;
 import org.springframework.mock.web.test.MockHttpServletResponse;
Project mockito/mockito in file ...ilingOnPurposeBecauseIncorrectAnnotationUsage.java (2014-11-22)
@@ -1,5 +1,6 @@
 package org.mockitousage.testng.failuretests;
 
+import org.mockito.Mock;
 import org.mockito.Spy;
 import org.mockito.testng.MockitoTestNGListener;
 import org.testng.annotations.Listeners;
@@ -15,6 +16,6 @@ import java.util.Map;
 @Listeners(MockitoTestNGListener.class)
 @Test(description = "Always failing, shouldn't be listed in 'mockito-testng.xml'")
 public class FailingOnPurposeBecauseIncorrectAnnotationUsage {
-    @Spy Map spy_cant_initialize_interface_fields;
+    @Mock @Spy Map cant_mock_and_spy_at_the_same_time;
     @Test public void dummy_test_method() throws Exception { }
 }
Project spring-projects/spring-framework in file ...et.config.annotation.InterceptorRegistryTests.java (2014-02-09)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2014 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,6 @@ import java.util.List;
 
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mock;
 import org.mockito.Mockito;
 import org.springframework.mock.web.test.MockHttpServletRequest;
 import org.springframework.mock.web.test.MockHttpServletResponse;