Skip to content

A Java testing library that helps fabricate classes with test data.

License

Notifications You must be signed in to change notification settings

ArtisanCode/Fabrication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fabrication The build status of this project

A Java testing library that helps fabricate classes with test data.

Given the following class:

public class TestObject
{
	private String name;
	private int age;

	// Getters and setters...
}

You can quickly and easily create in instance to test with by using the Fabricator:

TestObject result = new Fabricator<TestObject>()
				        .createNew(TestObject.class)
				        .with(x -> x.setName("Tom"))
				        .fabricate();

This will create a test object with the name set as "Tom" and the age set as 0

About

A Java testing library that helps fabricate classes with test data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages