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

  /external/mockito/src/main/java/org/mockito/
MockSettings.java 40 * .extraInterfaces(Bar.class));
57 * Foo foo = mock(Foo.class, withSettings().extraInterfaces(Bar.class, Baz.class));
67 MockSettings extraInterfaces(Class<?>... interfaces);
  /external/mockito/src/main/java/org/mockito/internal/configuration/
MockAnnotationProcessor.java 24 if (annotation.extraInterfaces().length > 0) { // never null
25 mockSettings.extraInterfaces(annotation.extraInterfaces());
  /external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/
DexmakerMockMaker.java 86 Class<?>[] extraInterfaces = interfacesSet.toArray(new Class[interfacesSet.size()]);
91 Class[] classesToMock = new Class[extraInterfaces.length + 1];
93 System.arraycopy(extraInterfaces, 0, classesToMock, 1, extraInterfaces.length);
103 .implementing(extraInterfaces);
  /external/mockito/src/test/java/org/mockito/internal/creation/
MockSettingsImplTest.java 31 mockSettingsImpl.extraInterfaces(List.class, null);
37 mockSettingsImpl.extraInterfaces(List.class, LinkedList.class);
43 mockSettingsImpl.extraInterfaces(List.class, LinkedList.class);
49 mockSettingsImpl.extraInterfaces();
55 mockSettingsImpl.extraInterfaces((Class<?>[]) null);
62 mockSettingsImpl.extraInterfaces(List.class, Set.class);
  /external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
InlineDexmakerMockMaker.java 247 Class<?>[] extraInterfaces = interfacesSet.toArray(new Class[interfacesSet.size()]);
253 Class[] classesToMock = new Class[extraInterfaces.length + 1];
255 System.arraycopy(extraInterfaces, 0, classesToMock, 1, extraInterfaces.length);
276 (extraInterfaces)
  /external/mockito/src/main/java/org/mockito/internal/creation/
MockSettingsImpl.java 55 public MockSettings extraInterfaces(Class<?>... extraInterfaces) {
56 if (extraInterfaces == null || extraInterfaces.length == 0) {
60 for (Class<?> i : extraInterfaces) {
67 this.extraInterfaces = newSet(extraInterfaces);
78 return extraInterfaces;
  /external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
ByteBuddyCrossClassLoaderSerializationSupport.java 162 private final Set<Class<?>> extraInterfaces;
185 this.extraInterfaces = mockSettings.getExtraInterfaces();
199 ObjectInputStream objectInputStream = new MockitoMockObjectInputStream(bis, typeToMock, extraInterfaces);
242 private final Set<Class<?>> extraInterfaces;
244 public MockitoMockObjectInputStream(InputStream in, Class<?> typeToMock, Set<Class<?>> extraInterfaces) throws IOException {
247 this.extraInterfaces = extraInterfaces;
254 * <p>Uses the fields {@link #typeToMock} and {@link #extraInterfaces} to
275 .setExtraInterfaces(extraInterfaces)
  /external/mockito/src/main/java/org/mockito/internal/creation/settings/
CreationSettings.java 26 protected Set<Class<?>> extraInterfaces = new LinkedHashSet<Class<?>>();
47 this.extraInterfaces = copy.extraInterfaces;
74 return extraInterfaces;
77 public CreationSettings<T> setExtraInterfaces(Set<Class<?>> extraInterfaces) {
78 this.extraInterfaces = extraInterfaces;
  /external/mockito/src/main/java/org/mockito/internal/util/reflection/
GenericMetadataSupport.java 181 public List<Type> extraInterfaces() {
186 * @return Returns an array with the raw types of {@link #extraInterfaces()} <strong>if relevant</strong>.
193 * @return Returns true if metadata knows about extra-interfaces {@link #extraInterfaces()} <strong>if relevant</strong>.
415 public List<Type> extraInterfaces() {
430 * @return Returns an array with the extracted raw types of {@link #extraInterfaces()}.
434 List<Type> extraInterfaces = extraInterfaces();
436 for (Type extraInterface : extraInterfaces) {

Completed in 1018 milliseconds