首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 具体数据在java虚拟对象

具体数据在java虚拟对象

  • 资源大小:1,022.80 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: java 虚拟 数据 对象 具体

资 源 简 介

Tired of writing code to set up test data? Fixjures provide a way to instantiate java objects from external, terse, human-readable (and more importantly human-_writable_) text files. YAML and JSON are supported out of the box. If you"re interested in the old 1.x line (legacy, but supports Java 1.5), check the OldHome. 2.0 introduces YAML support which, IMFO, is a much cleaner and easier way to quickly draft up some dummy objects for tests. accounts.yaml - id: 1 name: Test Account 1 description: Test Account Description type: Personal contacts: - name: Joe Contact email: joe@somewhere.com - name: Jane Contact email: jane@somewhere.com- id: 2 name: Test Account 2 description: etc, etc... AccountWidgetTest.java List testAccounts = Fixjure.listOf(Account.class) .from(YamlSource.newYamlResource("accounts.yaml")) .create();

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP