This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
diogosantos/JSpec
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
What would it be if RSpec were originally written in Java? I think that would be like this... Given I have a class called User and I want to write its specification in Java, so I write: describe( User.class ); add( new Spec( "it should have a name" ) { public void doIt() { User user = new User(); user.name = "Diogo"; should( user.name.equals( "Diogo" ) ); } } ); The code above should produce something like this: User specifications: it should have a name... ok!
About
A dead-simple rspec-like for Java
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published