Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 560 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 560 Bytes

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"));