Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: How to test my @NotEmpty with JUnit Date: Sat, 25 Jul 2015 17:10:53 +0200 Organization: Decebal Computing Lines: 20 Message-ID: <87fv4cuvb6.fsf@Equus.decebal.nl> References: <87io9jyycu.fsf@Equus.decebal.nl> <87r3o0o667.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="9530"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/M6o7VMlfrZKJjlk9yCLrW6qfOSZDnBBw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:DsSbMmtHNo8A0l/QPRGlsa6s2kU= sha1:GZQ7dRv+kptaRPqOfepirOrVxZk= Xref: csiph.com comp.lang.java.programmer:32138 On Wednesday 22 Jul 2015 12:09 CEST, Cecil Westerhof wrote: >> As I stated before I'm not a JPA or JavaEE user so this might be >> CompleteBS. I also did some googling "test custom bean validation" >> and from what I read I wonder why you don't show a >> ConstraintValidator class. And also the JUnit tests I ran across > > That was the problem yes. I am complete new to this kind of stuff, > but I learned a lot now. :-D > > I'll try to share my findings in the weekend, because I think that > what I have learned could be interesting for other people also. Here it is: https://github.com/CecilWesterhof/JavaExamples/tree/master/Annotations -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof