use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method not_tag_predicate_matches_pickle_with_different_single_tag.
@Test
void not_tag_predicate_matches_pickle_with_different_single_tag() {
Pickle pickle = createPickleWithTags("@BAR");
TagPredicate predicate = createPredicate("not @FOO");
assertTrue(predicate.test(pickle));
}
use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method single_tag_predicate_matches_pickle_with_same_single_tag.
@Test
void single_tag_predicate_matches_pickle_with_same_single_tag() {
Pickle pickle = createPickleWithTags("@FOO");
TagPredicate predicate = createPredicate("@FOO");
assertTrue(predicate.test(pickle));
}
use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method not_tag_predicate_does_not_match_pickle_with_same_single_tag.
@Test
void not_tag_predicate_does_not_match_pickle_with_same_single_tag() {
Pickle pickle = createPickleWithTags("@FOO");
TagPredicate predicate = createPredicate("not @FOO");
assertFalse(predicate.test(pickle));
}
use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method or_tag_predicate_does_not_match_pickle_none_of_the_tags.
@Test
void or_tag_predicate_does_not_match_pickle_none_of_the_tags() {
Pickle pickle = createPickleWithTags();
TagPredicate predicate = createPredicate("@FOO or @BAR");
assertFalse(predicate.test(pickle));
}
use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method single_tag_predicate_does_not_match_pickle_with_different_single_tag.
@Test
void single_tag_predicate_does_not_match_pickle_with_different_single_tag() {
Pickle pickle = createPickleWithTags("@BAR");
TagPredicate predicate = createPredicate("@FOO");
assertFalse(predicate.test(pickle));
}
Aggregations