HomeSort by relevance Sort by last modified time
    Searched refs:withSettings (Results 1 - 25 of 50) sorted by null

1 2

  /external/parameter-framework/upstream/parameter/
XmlDomainSerializingContext.h 45 bool withSettings() const { return _bWithSettings; }
  /external/mockito/src/test/java/org/mockitousage/basicapi/
MockingMultipleInterfacesTest.java 15 import static org.mockito.Mockito.withSettings;
29 Foo mock = mock(Foo.class, withSettings().extraInterfaces(IFoo.class, IBar.class));
40 mock(Foo.class, withSettings().extraInterfaces(IFoo.class, null));
52 mock(Foo.class, withSettings().extraInterfaces());
64 mock(Foo.class, withSettings().extraInterfaces((Class[]) null));
76 mock(Foo.class, withSettings().extraInterfaces(Foo.class));
88 mock(IMethods.class, withSettings().extraInterfaces(IMethods.class));
109 Object mocked = mock(interface1, withSettings().extraInterfaces(interface2));
MocksCreationTest.java 36 IMethods mock = mock(IMethods.class, withSettings()
56 IMethods mock = mock(IMethods.class, withSettings()
72 IMethods mock = mock(IMethods.class, withSettings().name("great mockie"));
87 mock(List.class, withSettings().spiedInstance(list));
97 mock(LinkedList.class, withSettings().spiedInstance(list));
MocksSerializationTest.java 49 Bar barMock = mock(Bar.class, withSettings().serializable());
60 IMethods mock = mock(IMethods.class, withSettings().serializable());
69 IMethods mock = mock(IMethods.class, withSettings().serializable());
83 IMethods mock = mock(IMethods.class, withSettings().serializable());
98 IMethods mock = mock(IMethods.class, withSettings().serializable());
112 IMethods mock = mock(IMethods.class, withSettings().serializable());
126 IMethods mock = mock(IMethods.class, withSettings().serializable());
140 IMethods mock = mock(IMethods.class, withSettings().serializable());
156 IMethods mock = mock(IMethods.class, withSettings().serializable());
200 IMethods mock = mock(IMethods.class, withSettings().serializable())
    [all...]
  /external/mockito/src/test/java/org/mockitousage/performance/
StubOnlyAvoidMemoryConsumptionTest.java 16 Object obj = mock(Object.class, withSettings().stubOnly());
27 Object obj = mock(Object.class, withSettings());
  /external/mockito/src/test/java/org/mockitousage/constructor/
CreatingMocksWithConstructorTest.java 22 import static org.mockito.Mockito.withSettings;
47 Message mock = mock(Message.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHODS));
54 AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHODS));
66 AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor("hello!").defaultAnswer(CALLS_REAL_METHODS));
72 AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor(7).defaultAnswer(CALLS_REAL_METHODS));
78 AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor(new Object[]{null}).defaultAnswer(CALLS_REAL_METHODS));
84 AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor((String) null).defaultAnswer(CALLS_REAL_METHODS));
91 mock(AbstractMessage.class, withSettings().useConstructor(null).defaultAnswer(CALLS_REAL_METHODS));
101 InnerClass mock = mock(InnerClass.class, withSettings().useConstructor().outerInstance(this).defaultAnswer(CALLS_REAL_METHODS));
114 mock(ThrowingConstructorClass.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHODS))
    [all...]
  /external/mockito/src/test/java/org/mockitousage/stubbing/
StubbingWithDelegateVarArgsTest.java 12 import static org.mockito.Mockito.withSettings;
31 Foo foo = mock(Foo.class, withSettings()
38 Foo foo = mock(Foo.class, withSettings()
46 Foo foo = mock(Foo.class, withSettings()
  /external/mockito/src/test/java/org/mockito/
StaticMockingExperimentTest.java 28 import static org.mockito.Mockito.withSettings;
61 Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod,
72 Invocation verification = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod,
80 Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod,
89 Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod,
95 Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod,
107 Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod,
119 Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod,
131 .createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod, "foo");
139 Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSettings().build(Foo.class), staticMethod, realMethod
    [all...]
InvocationFactoryTest.java 18 import static org.mockito.Mockito.withSettings;
32 withSettings().build(TestClass.class),
54 withSettings().build(TestClass.class),
70 withSettings().build(TestClass.class),
  /external/mockito/subprojects/inline/src/test/java/org/mockitoinline/
StressTest.java 12 import static org.mockito.Mockito.withSettings;
29 TestClass serializableMock = mock(TestClass.class, withSettings().serializable());
  /external/mockito/src/test/java/org/mockitousage/verification/
VerificationStartedListenerTest.java 38 List mock2 = mock(List.class, Mockito.withSettings().verificationStartedListeners(new VerificationStartedListener() {
61 List mock = mock(List.class, Mockito.withSettings().verificationStartedListeners(new VerificationStartedListener() {
81 List mock2 = mock(List.class, Mockito.withSettings().verificationStartedListeners(new VerificationStartedListener() {
110 Mockito.withSettings().verificationStartedListeners(null);
121 Mockito.withSettings().verificationStartedListeners(mock(VerificationStartedListener.class), null);
  /external/mockito/src/test/java/org/mockitousage/debugging/
InvocationListenerCallbackTest.java 25 import static org.mockito.Mockito.withSettings;
38 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener));
55 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2));
70 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener1));
85 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2));
101 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2));
VerboseLoggingOfInvocationsOnMockTest.java 55 Foo foo = mock(Foo.class, withSettings().verboseLogging());
71 Foo foo = mock(Foo.class, withSettings().verboseLogging());
87 Foo foo = mock(Foo.class, withSettings().verboseLogging());
105 Foo foo = mock(Foo.class, withSettings().verboseLogging());
127 withSettings().spiedInstance(new FooImpl()).verboseLogging());
144 Foo foo = mock(Foo.class, withSettings().verboseLogging());
  /external/mockito/src/test/java/org/mockito/internal/listeners/
VerificationStartedNotifierTest.java 20 import static org.mockito.Mockito.withSettings;
82 final Set mock = mock(Set.class, withSettings().extraInterfaces(List.class));
102 final Set mock = mock(Set.class, withSettings().extraInterfaces(List.class, Map.class));
103 final Set compatibleMock = mock(Set.class, withSettings().extraInterfaces(List.class, Map.class));
  /external/mockito/src/test/java/org/mockito/internal/util/
MockSettingsTest.java 21 MockCreationSettings<List> settings = Mockito.withSettings()
  /external/mockito/src/test/java/org/mockitousage/bugs/
ListenersLostOnResetMockTest.java 22 List mockedList = mock(List.class, withSettings().invocationListeners(invocationListener));
  /art/tools/class2greylist/test/src/com/android/class2greylist/
AnnotationHandlerTestBase.java 23 import static org.mockito.Mockito.withSettings;
47 mStatus = mock(Status.class, withSettings().verboseLogging());
  /external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/
InvocationHandlerAdapter.java 28 import static org.mockito.Mockito.withSettings;
53 withSettings().build(proxy.getClass().getSuperclass()), method,
  /external/mockito/src/main/java/org/mockito/internal/configuration/injection/
SpyOnInjectedFieldsHandler.java 17 import static org.mockito.Mockito.withSettings;
43 Object mock = Mockito.mock(instance.getClass(), withSettings()
  /external/mockito/src/test/java/org/mockitousage/plugins/
MockitoPluginsTest.java 20 import static org.mockito.Mockito.withSettings;
41 Instantiator instantiator = provider.getInstantiator(withSettings().build(MockitoPluginsTest.class));
  /external/mockito/src/test/java/org/mockitousage/stacktrace/
ModellingDescriptiveMessagesTest.java 175 mock(IMethods.class, withSettings().extraInterfaces(List.class, null));
181 mock(IMethods.class, withSettings().extraInterfaces(LinkedList.class));
187 mock(IMethods.class, withSettings().extraInterfaces(IMethods.class));
193 mock(IMethods.class, withSettings().extraInterfaces());
199 mock(IMethods.class, withSettings().extraInterfaces((Class<?>[]) null));
  /external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
InvocationHandlerAdapter.java 29 import static org.mockito.Mockito.withSettings;
76 withSettings().build(mock.getClass()), method, new RealMethodBehavior() {
113 withSettings().build(proxy.getClass().getSuperclass()), method,
  /external/mockito/src/test/java/org/mockitousage/serialization/
DeepStubsSerializableTest.java 22 SampleClass sampleClass = mock(SampleClass.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS).serializable());
37 ListContainer deep_stubbed = mock(ListContainer.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS).serializable());
51 ListContainer deep_stubbed = mock(ListContainer.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS).serializable());
ParallelSerializationTest.java 19 import static org.mockito.Mockito.withSettings;
29 final IMethods iMethods_that_store_invocations = mock(IMethods.class, withSettings().serializable());
  /external/mockito/src/main/java/org/mockito/internal/configuration/
MockAnnotationProcessor.java 23 MockSettings mockSettings = Mockito.withSettings();

Completed in 1650 milliseconds

1 2