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

You Might Also Like
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
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