Home
last modified time | relevance | path

Searched refs:testInstance (Results 1 – 24 of 24) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DRegularImmutableTableTest.java49 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testCellSet()
50 assertEquals(CELLS, testInstance.cellSet()); in testCellSet()
55 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testValues()
56 assertThat(testInstance.values()).containsExactly("foo", "bar", "baz").inOrder(); in testValues()
61 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testSize()
62 assertEquals(3, testInstance.size()); in testSize()
67 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testContainsValue()
68 assertTrue(testInstance.containsValue("foo")); in testContainsValue()
69 assertTrue(testInstance.containsValue("bar")); in testContainsValue()
70 assertTrue(testInstance.containsValue("baz")); in testContainsValue()
[all …]
DAbstractImmutableTableTest.java33 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testClear()
35 testInstance.clear(); in testClear()
44 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testPut()
46 testInstance.put('a', 1, "blah"); in testPut()
55 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testPutAll()
57 testInstance.putAll(ImmutableTable.of('a', 1, "blah")); in testPutAll()
66 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testRemove()
68 testInstance.remove('a', 1); in testRemove()
77 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testConsistentToString()
78 assertEquals(testInstance.rowMap().toString(), testInstance.toString()); in testConsistentToString()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DRegularImmutableTableTest.java49 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testCellSet()
50 assertEquals(CELLS, testInstance.cellSet()); in testCellSet()
55 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testValues()
56 assertThat(testInstance.values()).containsExactly("foo", "bar", "baz").inOrder(); in testValues()
61 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testSize()
62 assertEquals(3, testInstance.size()); in testSize()
67 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testContainsValue()
68 assertTrue(testInstance.containsValue("foo")); in testContainsValue()
69 assertTrue(testInstance.containsValue("bar")); in testContainsValue()
70 assertTrue(testInstance.containsValue("baz")); in testContainsValue()
[all …]
DAbstractImmutableTableTest.java33 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testClear()
35 testInstance.clear(); in testClear()
44 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testPut()
46 testInstance.put('a', 1, "blah"); in testPut()
55 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testPutAll()
57 testInstance.putAll(ImmutableTable.of('a', 1, "blah")); in testPutAll()
66 for (Table<Character, Integer, String> testInstance : getTestInstances()) { in testRemove()
68 testInstance.remove('a', 1); in testRemove()
77 for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { in testConsistentToString()
78 assertEquals(testInstance.rowMap().toString(), testInstance.toString()); in testConsistentToString()
[all …]
/external/dagger2/java/dagger/hilt/android/internal/testing/
DMarkThatRulesRanRule.java42 private final Object testInstance; field in MarkThatRulesRanRule
47 public MarkThatRulesRanRule(Object testInstance) { in MarkThatRulesRanRule() argument
49 this.testInstance = checkNotNull(testInstance); in MarkThatRulesRanRule()
51 hasAnnotation(testInstance, HILT_ANDROID_TEST), in MarkThatRulesRanRule()
53 testInstance.getClass().getName()); in MarkThatRulesRanRule()
59 testInstance.getClass().getName(), in MarkThatRulesRanRule()
66 testInstance.getClass().getName(), in MarkThatRulesRanRule()
88 description.getTestClass().isInstance(testInstance), in apply()
102 if (testInstance != null) { in apply()
103 componentManager.setTestInstance(testInstance); in apply()
DTestApplicationComponentManager.java53 private volatile Object testInstance; field in TestApplicationComponentManager
149 testInstance == null, in checkStateIsCleared()
173 testInstance = null; in clearState()
186 testInstance != null, in getTestInstance()
188 return testInstance; in getTestInstance()
251 Preconditions.checkNotNull(testInstance); in inject()
252 testInjector().injectTest(testInstance); in inject()
272 componentSupplier().get(registeredModules, testInstance, autoAddModuleEnabled.get())), in tryToCreateComponent()
280 void setTestInstance(Object testInstance) { in setTestInstance() argument
281 Preconditions.checkNotNull(testInstance); in setTestInstance()
[all …]
DTestComponentData.java77 Object get(Map<Class<?>, ?> registeredModules, Object testInstance, Boolean autoAddModule); in get() argument
/external/mockito/src/main/java/org/mockito/internal/configuration/
DInjectingAnnotationEngine.java40 public void process(Class<?> clazz, Object testInstance) { in process() argument
41 processIndependentAnnotations(testInstance.getClass(), testInstance); in process() local
42 processInjectMocks(testInstance.getClass(), testInstance); in process() local
45 private void processInjectMocks(final Class<?> clazz, final Object testInstance) { in processInjectMocks() argument
48 injectMocks(testInstance); in processInjectMocks()
53 private void processIndependentAnnotations(final Class<?> clazz, final Object testInstance) { in processIndependentAnnotations() argument
57 delegate.process(classContext, testInstance); in processIndependentAnnotations()
59 spyAnnotationEngine.process(classContext, testInstance); in processIndependentAnnotations()
DSpyAnnotationEngine.java49 public void process(Class<?> context, Object testInstance) { in process() argument
57 instance = field.get(testInstance); in process()
63 field.set(testInstance, spyInstance(field, instance)); in process()
65 field.set(testInstance, spyNewInstance(testInstance, field)); in process()
81 private static Object spyNewInstance(Object testInstance, Field field) in spyNewInstance() argument
99 if (!enclosing.isInstance(testInstance)) { in spyNewInstance()
106 .outerInstance(testInstance)); in spyNewInstance()
DIndependentAnnotationEngine.java57 public void process(Class<?> clazz, Object testInstance) {
67 setField(testInstance, field,mock);
/external/exoplayer/tree/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/
DAes128DataSourceTest.java40 Aes128DataSource testInstance = new TestAes123DataSource(upstream, new byte[16], new byte[16]); in test_OpenCallsUpstreamOpen_CloseCallsUpstreamClose() local
44 testInstance.open(new DataSpec(uri)); in test_OpenCallsUpstreamOpen_CloseCallsUpstreamClose()
47 testInstance.close(); in test_OpenCallsUpstreamOpen_CloseCallsUpstreamClose()
60 Aes128DataSource testInstance = new TestAes123DataSource(upstream, new byte[16], new byte[16]); in test_OpenCallsUpstreamThrowingOpen_CloseCallsUpstreamClose() local
65 testInstance.open(new DataSpec(uri)); in test_OpenCallsUpstreamThrowingOpen_CloseCallsUpstreamClose()
74 testInstance.close(); in test_OpenCallsUpstreamThrowingOpen_CloseCallsUpstreamClose()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAggregateFutureStateFallbackAtomicHelperTest.java98 Object testInstance = test.newInstance(); in runTestMethod() local
99 test.getMethod("setUp").invoke(testInstance); in runTestMethod()
100 test.getMethod(getName()).invoke(testInstance); in runTestMethod()
101 test.getMethod("tearDown").invoke(testInstance); in runTestMethod()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAggregateFutureStateFallbackAtomicHelperTest.java98 Object testInstance = test.newInstance(); in runTestMethod() local
99 test.getMethod("setUp").invoke(testInstance); in runTestMethod()
100 test.getMethod(getName()).invoke(testInstance); in runTestMethod()
101 test.getMethod("tearDown").invoke(testInstance); in runTestMethod()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTypeRefinementForMapTest.java129 TestClass testInstance = mapper.readValue(TEST_INSTANCE_SERIALIZED, TestClass.class); in testMapKeyRefinement1384() local
130 assertEquals(1, testInstance.mapProperty.size()); in testMapKeyRefinement1384()
131 Object key = testInstance.mapProperty.keySet().iterator().next(); in testMapKeyRefinement1384()
133 String testInstanceSerialized = mapper.writeValueAsString(testInstance); in testMapKeyRefinement1384()
/external/dagger2/java/dagger/hilt/android/testing/
DHiltAndroidRule.java35 public HiltAndroidRule(Object testInstance) { in HiltAndroidRule() argument
36 this.rule = new MarkThatRulesRanRule(checkNotNull(testInstance)); in HiltAndroidRule()
/external/boringssl/src/util/fipstools/cavp/
Drun_cavp.go367 type testInstance struct { struct
372 func worker(wg *sync.WaitGroup, work <-chan testInstance) { argument
417 work := make(chan testInstance)
432 work <- testInstance{suite, i}
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DSetupCompatServiceInvoker.java118 static void setInstanceForTesting(SetupCompatServiceInvoker testInstance) { in setInstanceForTesting() argument
119 instance = testInstance; in setInstanceForTesting()
DSetupCompatServiceProvider.java323 public static void setInstanceForTesting(SetupCompatServiceProvider testInstance) { in setInstanceForTesting() argument
324 instance = testInstance; in setInstanceForTesting()
/external/testng/src/main/java/org/testng/internal/
DFactoryMethod.java91 for (Object testInstance : testInstances) { in invoke()
92 result.add(testInstance); in invoke()
DMethodInvocationHelper.java188 protected static void invokeHookable(final Object testInstance, final Object[] parameters, in invokeHookable() argument
197 invokeMethod(thisMethod, testInstance, parameters); in invokeHookable()
/external/mockito/src/main/java/org/mockito/plugins/
DAnnotationEngine.java28 void process(Class<?> clazz, Object testInstance); in process() argument
/external/mockito/src/test/java/org/mockito/internal/configuration/
DGlobalConfigurationTest.java53 @Override public void process(Class<?> clazz, Object testInstance) { } in process() argument
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineCreationCacheControlTests.cpp875 TestStatus testInstance(Context& context, const TestParams& testParameter) in testInstance() function
1056 TestStatus testInstance(Context& context, const TestParams& testParameter) in testInstance() function
1370 tests.get(), params.name, params.description, checkSupport, initPrograms, testInstance, params); in addGraphicsPipelineTests()
1389 tests.get(), params.name, params.description, checkSupport, initPrograms, testInstance, params); in addComputePipelineTests()
/external/python/cpython3/Lib/test/
Dtest_xmlrpc.py640 testInstance = TestInstanceClass()
641 serv.register_instance(testInstance, allow_dotted_names=True)