use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method or_tag_predicate_matches_pickle_with_one_of_the_tags.
@Test
void or_tag_predicate_matches_pickle_with_one_of_the_tags() {
Pickle pickle = createPickleWithTags("@FOO");
TagPredicate predicate = createPredicate("@FOO or @BAR");
assertTrue(predicate.test(pickle));
}
use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method and_tag_predicate_does_not_match_pickle_with_one_of_the_tags.
@Test
void and_tag_predicate_does_not_match_pickle_with_one_of_the_tags() {
Pickle pickle = createPickleWithTags("@FOO");
TagPredicate predicate = createPredicate("@FOO and @BAR");
assertFalse(predicate.test(pickle));
}
use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method empty_tag_predicate_matches_pickle_with_any_tags.
@Test
void empty_tag_predicate_matches_pickle_with_any_tags() {
Pickle pickle = createPickleWithTags("@FOO");
TagPredicate predicate = createPredicate("");
assertTrue(predicate.test(pickle));
}
use of io.cucumber.core.gherkin.Pickle in project cucumber-jvm by cucumber.
the class TagPredicateTest method list_of_empty_tag_predicates_matches_pickle_with_any_tags.
@Test
void list_of_empty_tag_predicates_matches_pickle_with_any_tags() {
Pickle pickle = createPickleWithTags("@FOO");
TagPredicate predicate = createPredicate("", "");
assertTrue(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_no_tags.
@Test
void single_tag_predicate_does_not_match_pickle_with_no_tags() {
Pickle pickle = createPickleWithTags();
TagPredicate predicate = createPredicate("@FOO");
assertFalse(predicate.test(pickle));
}
Aggregations