Skip to content

Commit

Permalink
Adding build status image
Browse files Browse the repository at this point in the history
  • Loading branch information
ahirata committed May 24, 2013
1 parent 53959ec commit c380b73
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
@@ -1,5 +1,7 @@
Fixture Factory - generator to create fake objects from a template
==================================================================
==================================================================

[![Build Status](https://travis-ci.org/six2six/fixture-factory.png?branch=master)](https://travis-ci.org/six2six/fixture-factory)

## Installing

Expand Down Expand Up @@ -31,14 +33,14 @@ Writing bean template rules
add("state", "${city}");
add("country", "Brazil");
add("zipCode", random("06608000", "17720000"));
}});
}});

Creating a new template based on another existing template. Using this you can override the definition for a property

Fixture.of(Address.class).addTemplate("valid-augusta").inherits("valid", new Rule(){{
add("street", "Augusta Street");
}});

Gimme one object from valid label

Client client = Fixture.from(Client.class).gimme("valid");
Expand Down Expand Up @@ -87,14 +89,14 @@ More helpers functions for create generic template:
add("firstName", firstName());
add("lastName", lastName());
});

You can see more utilization on [tests](fixture-factory/tree/master/src/test/java/br/com/fixturefactory)!

## Contributing

Want to contribute with code, documentation or bug report?

Do this by [joining the mailing list](http://groups.google.com/group/fixture-factory) on Google Groups.
Do this by [joining the mailing list](http://groups.google.com/group/fixture-factory) on Google Groups.

## Credits

Expand Down

0 comments on commit c380b73

Please sign in to comment.