Comments (4)
你好,当前原生不支持类型 java.sql.Timestamp.
但是框架可以支持扩展新的类型。请参考wiki.
from jmockdata.
自定义Mocker类注册
MockConfig mockConfig = new MockConfig()
.registerMocker(Mocker mocker, Class... clazzs)
from jmockdata.
好的 多谢
from jmockdata.
新版本已支持
https://github.com/jsonzou/jmockdata/releases/tag/jmockdata-4.2.0-RELEASE
from jmockdata.
Related Issues (20)
- 继承自泛型父类的Bean的Mock过程抛出null异常
- 空的enum不能模拟,这个错误怎么处理 HOT 2
- 什么时候可以使用4.3.0,现在仓库里面拉取不到 HOT 2
- 父类的枚举类型无法被mock
- 当bean的某个字段类型为com.alibaba.fastjson.JSONObject时,mock这个bean会抛数组越界异常 HOT 4
- 特殊类型 “WeakReference” 包装的字段 无法赋值
- 枚举类型字段不支持自定义范围 HOT 2
- 开启EnableCircle后,同一个对象无法Mock多个
- 我的 Pojo 中的一个字段使用了 com.alibaba.fastjson.JSONObject 在 mock 的时候会抛数组越界异常 ArrayIndexOutOfBoundsException HOT 2
- kotlin data class 不支持mock
- LinkedList无法mock
- 同一个对象我Mock3次后,最后每个对象的值都变成一样了 HOT 1
- 存在自定义对象时报异常如果能够提示出是哪个字段就好了
- 普通对象包含含有泛型字段的集合时mock失败
- 不支持java.sql.Date类型字段实例化
- 为什么final的class不支持mock呢?
- java.lang.IllegalAccessException
- 类里包含List时直接Mock会报错
- 使用HttpResult<HttpResult<List<String>>> 会导致栈溢出
- 应该先用设置的Mocker,而不是先判断是否是其他类型。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmockdata.