assertThat(new Base64().encode("test".getBytes()), is("dGVzdA=="));

will cover most of your needs...

it comes into it's own with arrays and collections

On 24 May 2011 16:12, nicolas de loof <[email protected]> wrote:
>> +        assertEquals("dGVzdA==", new Base64().encode("test".getBytes()));
>>
>> assertThat with the matchers is far nicer, but if you like keeping it
>> old-style I'm fine with that!
>>
>>
> I'm not used with matchers (maybe I should be deprecated and replaced by
> some nicolas-update-bridge),
> can you please provide a sample in such case ?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to