Re: getting const strings into antunit tests

2007-10-30 Thread Stefan Bodewig
On Tue, 30 Oct 2007, Dominique Devienne <[EMAIL PROTECTED]> wrote: > On 10/30/07, Stefan Bodewig <[EMAIL PROTECTED]> wrote: >> On Mon, 29 Oct 2007, Steve Loughran <[EMAIL PROTECTED]> wrote: >> > Our solution was to add a new reference, so we can extract text >> > from a java static member [...] se

Re: getting const strings into antunit tests

2007-10-30 Thread Steve Loughran
Dominique Devienne wrote: On 10/30/07, Stefan Bodewig <[EMAIL PROTECTED]> wrote: On Mon, 29 Oct 2007, Steve Loughran <[EMAIL PROTECTED]> wrote: Our solution was to add a new reference, so we can extract text from a java static member [...] seems to me, we could do the same with an ant resource,

Re: getting const strings into antunit tests

2007-10-30 Thread Dominique Devienne
On 10/30/07, Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Mon, 29 Oct 2007, Steve Loughran <[EMAIL PROTECTED]> wrote: > > Our solution was to add a new reference, so we can extract text from > > a java static member [...] > > seems to me, we could do the same with an ant resource, > > > I think

Re: getting const strings into antunit tests

2007-10-29 Thread Stefan Bodewig
On Mon, 29 Oct 2007, Steve Loughran <[EMAIL PROTECTED]> wrote: > Our solution was to add a new reference, so we can extract text from > a java static member > > testBadHost extends SSHTestExpectsFailure { > > action:host="missing.example.org"; > > expectedText CONSTANT >

Re: getting const strings into antunit tests

2007-10-29 Thread Matt Benson
--- Steve Loughran <[EMAIL PROTECTED]> wrote: > > Now, one more feature for someone to add, which is a > variant of what we > added to smartfrog last week. > > 1. In junit tests, you can reference the Java string > in the java code, > so your tests dont break if the message changes. > > 2. I