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.

Project Activity

See All Activity >

Categories

Software Testing

License

MIT License

Follow BeanEqualsChecker

BeanEqualsChecker Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of BeanEqualsChecker!

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Related Categories

Java Software Testing Tool

Registered

2013-07-05