Skip to content

Instantly share code, notes, and snippets.

View mockito_maven
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
</dependency>
View DigitsTypeUse
package kuneo.org.sample.typeuse;
import static java.lang.annotation.ElementType.TYPE_USE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validation.Constraint;
View bean validation test
(import snip)
public class BeanValidationTest {
private Validator validator;
@Before
public void init() {
// バリデータを生成する
ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();
You can’t perform that action at this time.