This is the Linux app named BeanEqualsChecker whose latest release can be downloaded as beanequalschecker-1.0.0.jar. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named BeanEqualsChecker with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
BeanEqualsChecker
Ad
DESCRIPTION
Java library can be used in JUnit testcases for java bean classes coverage.
Suitable for check methods: "equals", "hashCode", getters and setters.
Similar with "https://sourceforge.net/projects/meanbean".
Base usage:
BeanEqualsChecker checker = new BeanEqualsChecker();
checker.testEquals(MineBean.class);
For constructor with parameters, factory can be used:
checker.testEquals(MineBeanWithConstructor.class, new EqualBeanFactory<MineBeanWithConstructor>() {
@Override
public MineBeanWithConstructor create() {
return new MineBeanWithConstructor(1,"");
}
});
Custom validators, primitive generators can be added "BeanEqualsConfiguration".
Also can be used for instantiate beans and fill fields with random values, look at class "ObjectGenerator".
Compiled under JDK 1.6
Codebase is small, please look sources for details.
Separate validators also can be used, for ex. GetterSetterValidator.
Audience
Developers
Programming Language
Java
This is an application that can also be fetched from https://sourceforge.net/projects/beanequalscheck/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.