Skip to content

martiner/util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geek.cz Java utils

Build Status

<dependency>
	<groupId>cz.geek</groupId>
	<artifactId>geek-util</artifactId>
	<version>VERSION</version>
</dependency>

Examples

Spring Validation Hamcrest Matchers

class MyValidator implements Validator { ... }

MyBean bean = new MyBean();
Errors errs = new BeanPropertyBindingResult(bean, "foo");
new MyValidator().validate(bean, errs);

assertThat(errs, hasFieldError("myfield", "notnull"));