Commit Graph

37 Commits

Author SHA1 Message Date
金戟
121536a337 support mocking invocation inside an inner class 2021-03-05 00:04:44 +08:00
金戟
6f079db3f3 move demo code out of testable package 2021-03-04 11:09:12 +08:00
金戟
55ccabbb39 add one to multi test case and refactor demo packages 2021-02-21 10:20:59 +08:00
金戟
74e3cf16a4 use standalone mock class in demos 2021-02-11 14:56:08 +08:00
金戟
31a0b49b7a use targetClass in demo 2021-01-06 00:23:46 +08:00
金戟
0a1b46b352 fit for kotlin auto generated accessor method 2021-01-05 23:28:35 +08:00
金戟
55ec1ca5b5 follow up kotlin demo to same as java ones 2021-01-05 20:44:05 +08:00
金戟
0f2c889c46 rename mock context class 2020-12-29 17:41:27 +08:00
金戟
9e393b5ef5 use mock context to inject extra mock parameters 2020-12-29 16:35:49 +08:00
金戟
28bde0b85a method invocation could contain LabelNode and LineNumberNode 2020-12-15 14:19:05 +08:00
金戟
328c8540a8 use MockMethod and MockConstructor replace TestableMock annotation 2020-12-11 20:29:49 +08:00
金戟
5150868e8c move CONSTRUCTOR to TestableConst 2020-12-10 08:45:01 +08:00
金戟
757becc08b update doc about generics type method and add kotlin demo 2020-12-09 23:37:26 +08:00
金戟
1d98e3c618 support invoke private companion object method in kotlin 2020-12-01 23:49:48 +08:00
金戟
b4d6a8357e remove dependence on internal class 2020-11-28 19:50:00 +08:00
金戟
47115b22af remove spring framework from demos 2020-11-22 00:46:50 +08:00
金戟
b8b4844c38 add testcase for inherition 2020-11-21 22:53:32 +08:00
金戟
5770a702cc add test for times method 2020-11-18 10:29:44 +08:00
金戟
15c7e9c48d add matcher doc, add kotlin matcher test case 2020-11-17 19:47:21 +08:00
金戟
c68289920f move verify method to verifier class 2020-11-17 14:06:59 +08:00
金戟
6e47057d7f add test case for final field modification 2020-11-10 11:20:21 +08:00
金戟
854c062e93 implement getter of private field 2020-11-10 11:01:22 +08:00
金戟
dc904496fc rename verify method names 2020-11-01 09:41:01 +08:00
金戟
d816726f4f implementation parameter verification 2020-10-31 21:47:03 +08:00
金戟
e33c208b8d split private access and mock demo class 2020-10-28 09:12:25 +08:00
金戟
ae134ac5ce support mock invoke by interface instance 2020-10-27 20:00:25 +08:00
金戟
0ef13a8e95 implement static method mock 2020-10-27 09:22:42 +08:00
金戟
989a52a048 split core package into core and processor 2020-10-27 06:55:32 +08:00
金戟
419a10669d add case to test kotlin invoke java method 2020-10-26 20:39:12 +08:00
金戟
a0509a889f unify usage of TestableMock, no more targetClass 2020-10-25 20:40:44 +08:00
金戟
e2d9c754e0 implement verify mock invoke times method 2020-10-25 10:23:43 +08:00
金戟
ee21025dbb rename annotations to reflect actual use 2020-10-24 09:30:36 +08:00
金戟
4f6da20fa4 targetClass parameter use class type instead of string 2020-10-22 23:41:34 +08:00
金戟
26712108d6 fix bytecode order and async test case 2020-10-21 21:45:12 +08:00
金戟
379eabc791 move TEST_CASE and SOURCE_METHOD to TestableTool class and bump to v0.1.1 2020-10-20 22:47:25 +08:00
金戟
d9a7e91b65 use TEST_CASE and SOURCE_METHOD instead of method call 2020-10-20 22:36:50 +08:00
金戟
770aca8a00 add demo module 2020-10-20 21:08:47 +08:00