Skip to content

wesamhaboush/pinto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a library that allows you to easily test beans for

  • getters and setters correctness
  • equals and hashcode correctness
  • toString correctness

This library has been inspired by so many other projects (JavaBeanTester, GetterSetterVerifier to mention a few). So thanks all for the inspiration.

The library is also inspired by the realization of the importance of having easy ways to test boilerplate code.

Examples

         @Test
         public void testRunAllTestsWorks() {
             EqualAndHashcodeTest
                 .forClass(Bean.class)
                 .verify();
         }
         
         @Test
         public void testRunAllTestsWorks() {
             EqualAndHashcodeTest
                 .forClass(Bean.class, () -> new Bean(System.timeInMillis())
                 .verify();
         }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages