Home
last modified time | relevance | path

Searched +full:mock +full:- +full:maker (Results 1 – 25 of 31) sorted by relevance

12

/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DInlineByteBuddyMockMaker.java16 import org.mockito.mock.MockCreationSettings;
33 * Agent and subclass based mock maker.
35 …* This mock maker which uses a combination of the Java instrumentation API and sub-classing rather…
36 …* a new sub-class to create a mock. This way, it becomes possible to mock final types and methods.…
37 …* maker <strong>must to be activated explicitly</strong> for supporting mocking final types and me…
40 …* This mock maker can be activated by creating the file <code>/mockito-extensions/org.mockito.plug…
41 …* containing the text <code>mock-maker-inline</code> or <code>org.mockito.internal.creation.bytebu…
44 …* This mock maker will make a best effort to avoid subclass creation when creating a mock. Otherwi…
45 ….internal.creation.bytebuddy.SubclassByteBuddyMockMaker</code> to create the mock class. That means
50 * assert mock(Foo.class).getClass() == Foo.class;
[all …]
DSubclassByteBuddyMockMaker.java12 import org.mockito.mock.MockCreationSettings;
19 * Subclass based mock maker.
21 …* This mock maker tries to create a subclass to represent a mock. It uses the given mock settings,…
22 * the type to mock, extra interfaces, and serialization support.
25 …* The type to mock has to be not final and not part of the JDK. THe created mock will implement ex…
54 "ClassCastException occurred while creating the mockito mock :", in createMock()
55 " class to mock : " + describeClass(settings.getTypeToMock()), in createMock()
60 … "You might experience classloading issues, please ask the mockito mailing-list.", in createMock()
64 …throw new MockitoException("Unable to create mock instance of type '" + mockedProxyType.getSupercl… in createMock()
82 …private static <T> T ensureMockIsAssignableToMockedType(MockCreationSettings<T> settings, T mock) { in ensureMockIsAssignableToMockedType() argument
[all …]
DByteBuddyCrossClassLoaderSerializationSupport.java13 import org.mockito.mock.MockCreationSettings;
14 import org.mockito.mock.MockName;
15 import org.mockito.mock.SerializableMode;
28 …* This is responsible for serializing a mock, it is enabled if the mock is implementing {@link Ser…
32 * if the mock settings is set to be serializable the mock engine will implement the
42 …* knowledge on how to serialize a mockito mock that is based on ByteBuddy and will ignore othe…
45 * <p><strong>Only one instance per mock! See {@link MockMethodInterceptor}</strong></p>
68 …* <p>When first entering in this method, it's because some is serializing the mock, with s…
71 * objectOutputStream.writeObject(mock);
75 … execute it, which is wanted to replace the mock by another type that will encapsulate the actu…
[all …]
/external/mockito-kotlin/.github/workflows/
Dci.yml5 # - skipping CI: add [skip ci] to the commit message
6 # - skipping release: add [skip release] to the commit message
13 - main
14 tags-ignore:
15- v* # release tags are automatically generated after a successful CI build, no need to run CI aga…
18 - main
23 # SINGLE-JOB
26 runs-on: ubuntu-latest
31 - name: 1. Check out code
34 - name: 2. Set up Java 8
[all …]
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/
DInlineStaticMockMaker.java8 * http://www.apache.org/licenses/LICENSE-2.0
25 import org.mockito.mock.MockCreationSettings;
39 * Creates mock markers and adds stubbing hooks to static method
60 * One time setup to allow the system to mocking via this mock maker.
70 throw new IllegalStateException("Mockito could not self-attach a jvmti agent to " +
79 // https://android-developers.googleblog.com/2018/02/
80 // improving-stability-by-reducing-usage.html
111 * All currently active mock markers. We modify the class's byte code. Some objects of the class
124 * Create a new mock maker.
128 throw new RuntimeException("Could not initialize inline mock maker.\n" + "\n" + in InlineStaticMockMaker()
[all …]
/external/mockito/src/main/java/org/mockito/
DMockitoFramework.java98 * This method is only meaningful if inline mock maker is in use.
99 * Otherwise this method is a no-op and need not be used.
105 …* To find out why inline mock maker keeps track of the mock objects see {@link org.mockito.plugins…
110 … * If you're using a different {@link org.mockito.plugins.MockMaker} then this method is a no-op.
136 * Clears up internal state of specific inline mock.
137 * This method is a single-mock variant of {@link #clearInlineMocks()}.
140 * @param mock to clear up
145 void clearInlineMock(Object mock); in clearInlineMock() argument
DMockito.java24 import org.mockito.mock.SerializableMode;
46 * The Mockito library enables mock creation, verification and stubbing.
52 * It motivates Mockito developers to keep documentation up-to-date with the code that they write,
60 * <a href="#0.2">0.2 Configuration-free inline mock making</a></br/>
67 * <a href="#7">7. Making sure interaction(s) never happened on mock </a><br/>
69 * <a href="#9">9. Shorthand for mocks creation - <code>&#064;Mock</code> annotation </a><br/>
70 * <a href="#10">10. Stubbing consecutive calls (iterator-style stubbing) </a><br/>
84 * <a href="#24">24. One-liner stubs (Since 1.9.0)</a><br/>
107 * <a href="#47">47. New API for clearing mock state in inline mocking (Since 2.25.0)</a><br/>
117 …* see '<a href="https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2">What's new in M…
[all …]
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DInlineDexmakerMockMaker.java8 * http://www.apache.org/licenses/LICENSE-2.0
31 import org.mockito.mock.MockCreationSettings;
53 * Generates mock instances on Android's runtime that can mock final methods.
82 * One time setup to allow the system to mocking via this mock maker.
113 "Mockito could not self-attach a jvmti agent to the current VM. This "
122 // https://android-developers.googleblog.com/2018/02/
123 // improving-stability-by-reducing-usage.html
176 * Create a new mock maker.
181 "Could not initialize inline mock maker.\n" in InlineDexmakerMockMaker()
251 T mock; in createMock() local
[all …]
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/
DAndroidByteBuddyMockMaker.java11 import org.mockito.mock.MockCreationSettings;
27 "You included the 'mockito-android' dependency in a non-Android environment.", in AndroidByteBuddyMockMaker()
28 …"The Android mock maker was disabled. You should only include the latter in your 'androidTestCompi… in AndroidByteBuddyMockMaker()
29 …"If disabling was a mistake, you can set the 'org.mockito.mock.android' property to 'true' to over… in AndroidByteBuddyMockMaker()
31 …"Visit https://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.1 for mo… in AndroidByteBuddyMockMaker()
43 public MockHandler getHandler(Object mock) { in getHandler() argument
44 return delegate.getHandler(mock); in getHandler()
48 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock() argument
49 delegate.resetMock(mock, newHandler, settings); in resetMock()
/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/
DCleanStackTrace.java8 * http://www.apache.org/licenses/LICENSE-2.0
23 import static org.mockito.Mockito.mock;
43 TestAbstractClass t = mock(TestAbstractClass.class); in cleanStackTraceAbstractClass()
59 TestClass t = mock(TestClass.class); in cleanStackTraceRegularClass()
67 // Depending on the mock maker TestClass.returnA might be in the stack trace or not in cleanStackTraceRegularClass()
82 TestInterface t = mock(TestInterface.class); in cleanStackTraceInterface()
/external/mockito-kotlin/ops/
Dorg.mockito.plugins.MockMaker1 mock-maker-inline
DmockMakerInline.sh3 set -ev
5 if [ ${MOCK_MAKER} = "mock-maker-inline" ]; then
6 mkdir -p tests/src/test/resources/mockito-extensions
7 cp ops/org.mockito.plugins.MockMaker tests/src/test/resources/mockito-extensions/
/external/dokka/core/src/test/resources/mockito-extensions/
Dorg.mockito.plugins.MockMaker1 mock-maker-inline
/external/mockito/subprojects/inline/src/main/resources/mockito-extensions/
Dorg.mockito.plugins.MockMaker1 mock-maker-inline
/external/mockito/subprojects/inline/
Dinline.gradle1 description = "Mockito preconfigured inline mock maker (intermediate and to be superseeded by autom…
3 apply from: "$rootDir/gradle/java-library.gradle"
/external/mockito/src/main/java/org/mockito/internal/configuration/plugins/
DDefaultMockitoPlugins.java22 static final String INLINE_ALIAS = "mock-maker-inline";
25 //Keep the mapping: plugin interface name -> plugin implementation class name
/external/skia/include/private/gpu/ganesh/
DGrTypesPriv.h4 * Use of this source code is governed by a BSD-style license that can be
38 static inline constexpr size_t GrSizeDivRoundUp(size_t x, size_t y) { return (x + (y - 1)) / y; } in GrSizeDivRoundUp()
229 kAuto, // Normalized, fixed-point configs
235 * A number of rectangle/quadrilateral drawing APIs can control anti-aliasing on a per edge basis.
237 * boundaries, where the inner edges are non-AA and the outer edges are AA. Regular rectangle draws
238 * simply use kAll or kNone depending on if they want anti-aliasing or not.
240 * In APIs that support per-edge AA, GrQuadAAFlags is the only AA-control parameter that is
265 * still be known at the API-neutral layer as it used to determine whether MIP maps, renderability,
321 kInt2_GrVertexAttribType, // vector of 2 32-bit ints
322 kInt3_GrVertexAttribType, // vector of 3 32-bit ints
[all …]
/external/python/setuptools/pkg_resources/tests/
Dtest_resources.py19 "s -> (s0,s1), (s1,s2), (s2, s3), ..."
26 """Mock object to return metadata as if from an on-disk distribution"""
50 ad.add(dist_from_fn("FooPkg-1.3_1.egg"))
51 ad.add(dist_from_fn("FooPkg-1.4-py2.4-win32.egg"))
52 ad.add(dist_from_fn("FooPkg-1.2-py2.4.egg"))
60 expected = ['1.4', '1.3-1', '1.2']
68 ad.add(dist_from_fn("FooPkg-1.9.egg"))
72 foo12 = dist_from_fn("FooPkg-1.2-py2.4.egg")
73 foo14 = dist_from_fn("FooPkg-1.4-py2.4-win32.egg")
102 assert d.parsed_version == parse_version("1.3-1")
[all …]
/external/cronet/net/quic/
Dbidirectional_stream_quic_impl_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
118 loop_->Quit(); in OnStreamReady()
127 loop_->Quit(); in OnHeadersReceived()
140 data_received_.append(read_buf_->data(), bytes_read); in OnDataRead()
149 loop_->Quit(); in OnDataSent()
158 loop_->Quit(); in OnTrailersReceived()
169 loop_->Quit(); in OnFailed()
177 stream_->Start(request_info, net_log, send_request_headers_automatically_, in Start()
184 stream_->SendRequestHeaders(); in SendRequestHeaders()
198 stream_->SendvData(data, lengths, end_of_stream); in SendvData()
[all …]
Dquic_network_transaction_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
178 std::string altsvc_header = "Alt-Svc: "; in GenerateQuicAltSvcHeader()
350 return client_maker_->MakeConnectionClosePacket( in ConstructClientConnectionClosePacket()
371 return client_maker_->MakeAckPacket(packet_number, largest_received, in ConstructClientAckPacket()
381 return client_maker_->MakeAckAndRstPacket( in ConstructClientAckAndRstPacket()
389 return client_maker_->MakeRstPacket(num, false, stream_id, error_code, in ConstructClientRstPacket()
401 return client_maker_->MakeAckAndConnectionClosePacket( in ConstructClientAckAndConnectionClosePacket()
417 return client_maker_->MakeInitialSettingsPacket(packet_number); in ConstructInitialSettingsPacket()
433 return client_maker_->MakePriorityPacket( in ConstructClientPriorityPacket()
445 return client_maker_->MakeAckAndPriorityPacket( in ConstructClientAckAndPriorityPacket()
[all …]
/external/brotli/tests/testdata/
Dplrabn12.txt6 The oldest etext known to Project Gutenberg (ca. 1964-1965)
12 This etext was originally created in 1964-1965 according to Dr.
91 Dove-like sat'st brooding on the vast Abyss,
97 Say first--for Heaven hides nothing from thy view,
98 Nor the deep tract of Hell--say first what cause
139 With ever-burning sulphur unconsumed.
151 Beelzebub. To whom th' Arch-Enemy,
153 Breaking the horrid silence, thus began:--
154 "If thou beest he--but O how fallen! how changed
157 Myriads, though bright!--if he whom mutual league,
[all …]
Dasyoulik.txt141 you are the first-born; but the same tradition
168 obscuring and hiding from me all gentleman-like
207 'Twill be a good way; and to-morrow the wrestling is.
241 OLIVER What, you wrestle to-morrow before the new duke?
247 To-morrow, sir, I wrestle for my credit; and he that
281 to-morrow, I'll give him his payment: if ever he go
353 CELIA Let us sit and mock the good housewife Fortune from
362 makes very ill-favouredly.
376 Fortune makes Nature's natural the cutter-off of
436 ROSALIND Then shall we be news-crammed.
[all …]
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-fulltext-search/
Dthe-picture-of-dorian-gray.txt5 re-use it under the terms of the Project Gutenberg License included
69 of the subject-matter of the artist, but the morality of art consists
99 perfume of the pink-flowering thorn.
101 From the corner of the divan of Persian saddle-bags on which he was
103 Wotton could just catch the gleam of the honey-sweet and honey-coloured
107 tussore-silk curtains that were stretched in front of the huge window,
109 those pallid, jade-faced painters of Tokyo who, through the medium of
118 full-length portrait of a young man of extraordinary personal beauty,
145 from his heavy, opium-tainted cigarette. "Not send it anywhere? My
163 your rugged strong face and your coal-black hair, and this young
[all …]
/external/libwebsockets/minimal-examples/api-tests/api-test-fts/
Dthe-picture-of-dorian-gray.txt5 re-use it under the terms of the Project Gutenberg License included
69 of the subject-matter of the artist, but the morality of art consists
99 perfume of the pink-flowering thorn.
101 From the corner of the divan of Persian saddle-bags on which he was
103 Wotton could just catch the gleam of the honey-sweet and honey-coloured
107 tussore-silk curtains that were stretched in front of the huge window,
109 those pallid, jade-faced painters of Tokyo who, through the medium of
118 full-length portrait of a young man of extraordinary personal beauty,
145 from his heavy, opium-tainted cigarette. "Not send it anywhere? My
163 your rugged strong face and your coal-black hair, and this young
[all …]
/external/libtextclassifier/native/annotator/pod_ner/test_data/
Dvocab.txt1012 -
8572 ##maker
9339 maker
12935 mock
29625 ##-

12