Augustine Cui
10953ff02a
Fixed a flaky test in core.tool.OmniAccessorTest
...
This test is flaky since the method `java.lang.Class.getDeclaredFields` is non-deterministic, and `GetDeclaredFilelds` is ultimately used in the `com.alibaba.testable.core.util.TypeUtil.getAllFields`
I converted the result to a `HashSet` to avoid ordering issues, so the specific ordering of the fields would not affect the result. I think this change can prevent test failure due to future change in the JVM.
2021-09-29 17:10:37 -07:00
金戟
09ecd0d7c0
release v0.6.8
2021-08-08 21:53:34 +08:00
金戟
a78931ae81
allow modify static final field
2021-07-14 21:29:32 +08:00
金戟
fd3b088f59
release v0.6.7
2021-06-11 17:36:43 +08:00
金戟
b949f57d54
in favor of static import
2021-06-06 23:04:42 +08:00
金戟
0551240c7d
fix incorrect class name in mock target checking log
2021-06-01 19:40:22 +08:00
金戟
38221a67ef
release 0.6.6
2021-05-22 19:00:35 +08:00
金戟
e5f8e5244c
construct void object is unnecessary
2021-05-22 16:36:06 +08:00
金戟
e13dce7ac6
prefer to use minimal exception count
2021-05-22 11:12:58 +08:00
金戟
fcbdb7275b
add test case of basic type constructing
2021-05-21 00:25:02 +08:00
金戟
c5f39dfae3
refactor logs, print mock method information in mock class handler
2021-05-15 15:57:02 +08:00
金戟
23af64475a
support target exist checking of mock method
2021-05-15 11:04:45 +08:00
金戟
c577301493
support mock package mapping
2021-05-03 14:56:33 +08:00
金戟
a33908db41
support absolute config path and update docs
2021-05-03 11:39:21 +08:00
金戟
4ea97fe13f
always print out context path of testable agent
2021-05-03 10:56:36 +08:00
金戟
96d1f9d633
release v0.6.5
2021-05-02 08:10:58 +08:00
金戟
350802fc9b
fix mock method in super class ignored in association scope
2021-05-01 19:28:26 +08:00
金戟
b68ff99800
rename construction options
2021-05-01 16:58:02 +08:00
金戟
7754f828cc
fix issue of invoking method with single array parameter
2021-05-01 16:05:42 +08:00
金戟
5f6cf3888c
static final field is not assignable during runtime
2021-04-26 08:30:57 +08:00
金戟
75c6a67b8f
support construction options
2021-04-25 23:27:51 +08:00
金戟
db771b9c66
fix an omni constructor issue caused by array-in-array type
2021-04-25 18:24:13 +08:00
金戟
338c7828c8
skip jacoco generated members and do not travel array of basic classes
2021-04-24 23:30:48 +08:00
金戟
8ebe2a5d0c
allow constructor with parameter of same type as class under constructing
2021-04-24 18:46:04 +08:00
金戟
4f3e3f0093
throw with information about the class failed to construct
2021-04-24 18:14:53 +08:00
金戟
9924d7d2fc
release v0.6.4
2021-04-24 17:43:43 +08:00
金戟
78d7ee21a6
use void type instead of null type
2021-04-24 11:47:41 +08:00
金戟
af409a65a8
fix circle check rounded by getType not equals with getClass
2021-04-23 21:41:30 +08:00
金戟
a67619d574
add verbose log for omni constructor
2021-04-23 20:34:15 +08:00
金戟
b89daa22c3
always skip null element when traveling class
2021-04-23 19:30:54 +08:00
金戟
9d6e4dd1fa
bump to v0.6.3
2021-04-18 10:26:06 +08:00
金戟
9c09bf9653
avoid to select constructor with parameter of its own type
2021-04-18 09:45:57 +08:00
金戟
eec88f4bd9
should convert package prefix to slash separated format
2021-04-17 19:52:32 +08:00
金戟
42dd58584b
mark date as basic type
2021-04-14 09:28:07 +08:00
金戟
5904ad99cb
release v0.6.2
2021-04-07 21:38:24 +08:00
金戟
b41923bfa0
release v0.6.1
2021-04-06 08:09:23 +08:00
金戟
d4a69528a7
use relative path for bytecode dumping
2021-04-05 14:58:29 +08:00
金戟
a46e73a421
support specify log file path
2021-04-05 14:09:44 +08:00
金戟
01e9890234
always generate log file
2021-04-05 11:56:06 +08:00
金戟
f5475aa18e
simplify log level config
2021-04-04 00:10:56 +08:00
金戟
e370114b01
release v0.6
2021-03-27 20:05:21 +08:00
金戟
26d3178840
support set dump path for single class
2021-03-27 00:31:02 +08:00
金戟
55ccc385d5
remove unnecessary mock class reference in test class handler
2021-03-26 22:26:12 +08:00
金戟
20b346ed34
remove diagnose parameter in MockWith annotation
2021-03-26 20:20:45 +08:00
金戟
27174afa93
implement fall-fast anti-refactor machenism
2021-03-26 01:12:30 +08:00
金戟
3d6d3c9dd1
skip $jacocoData field
2021-03-25 13:10:49 +08:00
金戟
52878364ee
don't travel into basic class
2021-03-24 13:17:15 +08:00
金戟
9871a96db0
create omni constructor correctly
2021-03-24 00:34:17 +08:00
金戟
9b56e3d64a
fit common collection interfaces
2021-03-23 21:29:54 +08:00
金戟
ea8f305152
handle circle reference
2021-03-23 00:00:48 +08:00
金戟
9064f7a582
better demo for omni methods
2021-03-22 00:41:19 +08:00
金戟
b062dbc592
move private accessor to tool package
2021-03-21 07:43:22 +08:00
金戟
a54bb33c09
support quick create array instance
2021-03-20 20:23:23 +08:00
金戟
bbc41f2987
fix omni get path with index
2021-03-20 18:02:01 +08:00
金戟
7b9a0964bc
use k8s-like model for omni demos
2021-03-20 17:30:10 +08:00
金戟
a0dae0dfe1
support wildcard match
2021-03-20 14:34:19 +08:00
金戟
f54a6ce022
handle array in query path correctly
2021-03-20 00:50:30 +08:00
金戟
606760d632
refactor test code, and omni constructor test
2021-03-18 23:51:06 +08:00
金戟
206fc5486e
support access array element by index
2021-03-18 00:15:01 +08:00
金戟
af3af6b272
handle array and primary types
2021-03-17 19:26:50 +08:00
金戟
fe7420c99a
implement basic omni instance construction
2021-03-17 16:24:20 +08:00
金戟
7857782125
do omni transform
2021-03-17 14:24:16 +08:00
金戟
328296ae3a
complete get and set by path of common class
2021-03-16 14:31:37 +08:00
金戟
a5038320b4
convert query path to match pattern
2021-03-16 11:50:22 +08:00
金戟
bdd16c0948
generate member index of specified class
2021-03-15 23:51:21 +08:00
金戟
250a1beaf9
bump to version 0.5.2
2021-03-13 09:35:33 +08:00
金戟
4995bbd9a9
support access private member of super class
2021-03-09 14:21:05 +08:00
金戟
e46ec3d98a
release v0.5.1
2021-03-03 09:46:21 +08:00
金戟
f8450d7047
use pre-check to reduce unnecessary verbose parameter calculation
2021-03-02 23:33:17 +08:00
金戟
f01ff10fba
narrow down Exception scope when possible
2021-02-22 15:56:50 +08:00
金戟
f96d272f97
release 0.5.0
2021-02-21 13:56:22 +08:00
金戟
f9621a6f2e
allow default mock with target
2021-02-21 10:49:30 +08:00
金戟
23a0a0cd90
allow lower case global parameter value
2021-02-20 09:04:43 +08:00
金戟
a1086ff402
NoVerify class is unnecessary
2021-02-20 09:04:43 +08:00
金戟
6237e19a32
support modify default mock scope
2021-02-20 09:04:43 +08:00
金戟
82d87f3447
use mock class to setup diagnose
2021-02-19 13:43:55 +08:00
金戟
8be5550331
extra <init> constant to core package
2021-02-18 13:25:51 +08:00
金戟
c76ed2d84a
implement origin-invoker method
2021-02-18 12:10:08 +08:00
金戟
14549040d9
fit invoke from test case without testable
2021-02-17 23:24:14 +08:00
金戟
03ec857cd0
invoke origin method if not associated
2021-02-17 22:59:24 +08:00
金戟
b4a29e7e8e
mock target is always in parameter when recording
2021-02-17 20:04:26 +08:00
金戟
02c74299f4
prepare mock association util
2021-02-17 19:53:12 +08:00
金戟
6d6e2ecb7f
add mock method scope
2021-02-17 17:59:13 +08:00
金戟
c364e96f77
add association check method
2021-02-17 17:38:30 +08:00
金戟
be53ea2d9c
suggest use MockDiagnose to set log level
2021-02-16 10:47:18 +08:00
金戟
2a54fe70dd
mock context can be null
2021-02-15 14:39:43 +08:00
金戟
34f1dc8f73
use treatAs instead of isSrc
2021-02-15 13:14:04 +08:00
金戟
b60ebf2f2c
fix NoClassDefFoundError while using MockWith annotation
2021-02-14 18:38:51 +08:00
金戟
d95cba6d37
simplify mock context init
2021-02-14 13:50:24 +08:00
金戟
5ef06c4bde
remove mock context after test
2021-02-14 13:22:28 +08:00
金戟
374a4d5442
use mock context to store invocation record
2021-02-13 16:26:47 +08:00
金戟
9a22f361f3
use mock context to fetch current test case
2021-02-12 01:02:34 +08:00
金戟
94c5aa8621
use transmittable thread local to record test case context
2021-02-13 12:17:53 +08:00
金戟
19f28c32db
fix test case mark and add unnullable map
2021-02-11 13:29:08 +08:00
金戟
948878687c
add mock class handler
2021-02-10 10:36:51 +08:00
金戟
d626906d28
thread mark not actually needed
2021-02-09 22:27:30 +08:00
金戟
705ba796f1
remove deprecated TestableMock annotation
2021-02-09 16:04:13 +08:00
金戟
d57dedb6fc
release v0.4.12
2021-02-07 10:41:07 +08:00
金戟
adfba4bac0
support verbose log for self diagnosing
2021-02-05 22:30:04 +08:00
金戟
f228ed5002
release v0.4.11
2021-02-02 07:49:20 +08:00