FEST

assertThat(someString).doesNotContain("foo");

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: FEST-Assert 1.2
  • Fix Version/s: FEST-Assert 1.3
  • Component/s: Assert
  • Labels:
    None
  • Number of attachments :
    0

Description

I've just came across this in my code:

assertThat(someString).doesNotContain("foo");

However, there is no doesNotContain method I worked around using this (but it is not as nice):

assertThat(someString).doesNotMatch(".foo.");

Can we add doesNotContain method?

Activity

Hide
Szczepan Faber added a comment -

I meant:

 
assertThat(someString).doesNotMatch(".*foo.*");
Show
Szczepan Faber added a comment - I meant:
 
assertThat(someString).doesNotMatch(".*foo.*");

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: