Skip to content

skrymer/whenthen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

When Then

Are you tired of writing code like this:

    if(1==1){
        System.out.println("1 is equal to 1");
    }
    
    if(true){
        throw new IllegalArgumentException("Some arg");
    }

then:

    when(1==1).then(() -> System.out.println("1 is equal to 1"));
    when(1==1).thenThrowIllegalArgument("Some arg"));

see WhenThenSpec for more examples

About

simple whenthen dsl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published