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

您现在的位置是:虫虫源码 > Java > 一个java库来创建任何类的虚拟实例

一个java库来创建任何类的虚拟实例

资 源 简 介

Description The DummyCreator is a library, which provides a possibility to automatically create dummy-objects. Those dummy objects are created with all of their attributes set. So you can use them as a helper while testing your application. For example, if you want to test a class, which processes data from a database, you might want to use random instances instead of data from the real database (which might not be ready yet or something like that). Now you could write a method for each class to create such a dummy instance. How to use If you want to use the DummyCreator, you just have to integrate the jar-file to your project. Afterwards you can call it by: DummyCreator.createDummyOfClass(The class you need) There are several possibilities to take influence on the creation-process Register Interfaces Normally you would often use a interface instead of the real class if you define an attribute of a clas
VIP VIP
0.172862s