HomeSort by relevance Sort by last modified time
    Searched defs:mocks (Results 1 - 4 of 4) sorted by null

  /external/mockito/src/org/mockito/internal/configuration/injection/scanner/
MockScanner.java 19 * Scan mocks, and prepare them if needed.
41 * The preparation of mocks consists only in defining a MockName if not already set.
44 * @param mocks Set of mocks
46 public void addPreparedMocks(Set<Object> mocks) {
47 mocks.addAll(scan());
51 * Scan and prepare mocks for the given <code>testClassInstance</code> and <code>clazz</code> in the type hierarchy.
56 Set<Object> mocks = newMockSafeHashSet(); local
63 mocks.add(mockInstance);
66 return mocks;
    [all...]
  /external/mockito/src/org/mockito/internal/configuration/
InjectingAnnotationEngine.java 39 * Process the fields of the test instance and create Mocks, Spies, Captors and inject them on fields
45 * <li>First create Mocks, Spies, Captors.</li>
70 //this will create @Mocks, @Captors, etc:
92 Set<Object> mocks = newMockSafeHashSet(); local
96 new MockScanner(testClassInstance, clazz).addPreparedMocks(mocks);
100 new DefaultInjectionEngine().injectMocksOnFields(mockDependentFields, mocks, testClassInstance);
  /external/mockito/src/org/mockito/internal/configuration/injection/
MockInjection.java 21 * Allow the user of this class to configure the way the injection of mocks will happen.
56 private Set<Object> mocks = newMockSafeHashSet(); field in class:MockInjection.OngoingMockInjection
70 public OngoingMockInjection withMocks(Set<Object> mocks) {
71 this.mocks.addAll(checkNotNull(mocks, "mocks"));
92 injectionStrategies.process(field, fieldOwner, mocks);
93 postInjectionStrategies.process(field, fieldOwner, mocks);
  /external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar 

Completed in 215 milliseconds