Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32057

Re: How to test my @NotEmpty with JUnit

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.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 <Cecil@decebal.nl>
Newsgroups comp.lang.java.programmer
Subject Re: How to test my @NotEmpty with JUnit
Date Fri, 17 Jul 2015 13:22:45 +0200
Organization Decebal Computing
Lines 28
Message-ID <87egk7yqnu.fsf@Equus.decebal.nl> (permalink)
References <87io9jyycu.fsf@Equus.decebal.nl> <1qa7i0ii8kv64.19w4a3yff0hh1$.dlg@40tude.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Info mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="26412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1823j02fSPDfC2Abk+8K8XNRRrFYF7mZeY="
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:Dng6NnxlTZvL65g0l+IA+ir9xL0= sha1:7HzGmKXatGI+s+/gsYuAd+TORig=
X-Homepage http://www.decebal.nl/
Xref csiph.com comp.lang.java.programmer:32057

Show key headers only | View raw


On Friday 17 Jul 2015 12:28 CEST, Joerg Meier wrote:

> On Fri, 17 Jul 2015 10:36:33 +0200, Cecil Westerhof wrote:
>
>> import        javax.validation.Constraint;
>
>> [...]
>
>> I would expect this test not to pass, but it does. So clearly I am
>> doing something wrong, but I have no idea what. (This is the first
>> time I really work with annotations.) I did some Googling but until
>> now to no avail. So if someone could point me to the right
>> direction …
>
> Just to make sure you didn't miss the obvious: are you aware that
> the javax.validation package needs an external tool such as the
> Checker framework in order to do anything at all ?

No I did not. (I am new to this.) Any recommendations what to use and
how to implement it?

Can it be implemented without creating dependencies? The client wants
clean JEE6 code, so they can change frameworks at a moments notice.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to test my @NotEmpty with JUnit Cecil Westerhof <Cecil@decebal.nl> - 2015-07-17 10:36 +0200
  Re: How to test my @NotEmpty with JUnit Joerg Meier <joergmmeier@arcor.de> - 2015-07-17 12:28 +0200
    Re: How to test my @NotEmpty with JUnit Cecil Westerhof <Cecil@decebal.nl> - 2015-07-17 13:22 +0200
      Re: How to test my @NotEmpty with JUnit Cecil Westerhof <Cecil@decebal.nl> - 2015-07-22 11:49 +0200
  Re: How to test my @NotEmpty with JUnit Jeff Higgins <jeff@invalid.invalid> - 2015-07-17 07:27 -0400
    Re: How to test my @NotEmpty with JUnit Jeff Higgins <jeff@invalid.invalid> - 2015-07-17 07:58 -0400
    Re: How to test my @NotEmpty with JUnit Jeff Higgins <jeff@invalid.invalid> - 2015-07-17 09:14 -0400
    Re: How to test my @NotEmpty with JUnit Jeff Higgins <jeff@invalid.invalid> - 2015-07-17 10:59 -0400
    Re: How to test my @NotEmpty with JUnit Jeff Higgins <jeff@invalid.invalid> - 2015-07-17 11:39 -0400
    Re: How to test my @NotEmpty with JUnit Cecil Westerhof <Cecil@decebal.nl> - 2015-07-22 12:09 +0200
      Re: How to test my @NotEmpty with JUnit Cecil Westerhof <Cecil@decebal.nl> - 2015-07-25 17:10 +0200

csiph-web