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


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

Re: How to test my @NotEmpty with JUnit

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.java.programmer
Subject Re: How to test my @NotEmpty with JUnit
Date 2015-07-22 11:49 +0200
Organization Decebal Computing
Message-ID <87vbdco73b.fsf@Equus.decebal.nl> (permalink)
References <87io9jyycu.fsf@Equus.decebal.nl> <1qa7i0ii8kv64.19w4a3yff0hh1$.dlg@40tude.net> <87egk7yqnu.fsf@Equus.decebal.nl>

Show all headers | View raw


On Friday 17 Jul 2015 13:22 CEST, Cecil Westerhof wrote:

> 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?

I managed it. :-D


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

And I also managed this.

-- 
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