Package org.moresbycoffee.mbyhave8.structure

Examples of org.moresbycoffee.mbyhave8.structure.Feature.tag()


    }

    @Test
    public void should_add_tag_to_feature() {
        final Feature feature = featureWith(successScenario());
        feature.tag("TEST TAG1");
        assertThat(feature.getTags(), contains("TEST TAG1"));
    }

    @Test
    public void should_add_all_tags_to_feature() {
View Full Code Here


    }

    @Test
    public void should_add_all_tags_to_feature() {
        final Feature feature = featureWith(successScenario());
        feature.tag("TEST TAG1").tag("TEST TAG2");
        assertThat(feature.getTags(), contains("TEST TAG1", "TEST TAG2"));
    }

    @Test
    public void should_add_multiple_tags_to_feature() {
View Full Code Here

    }

    @Test
    public void should_add_multiple_tags_to_feature() {
        final Feature feature = featureWith(successScenario());
        feature.tag("TEST TAG1", "TEST TAG2");
        assertThat(feature.getTags(), contains("TEST TAG1", "TEST TAG2"));
    }

    @Test
    public void should_trim_the_tags_on_feature() {
View Full Code Here

    }

    @Test
    public void should_trim_the_tags_on_feature() {
        final Feature feature = featureWith(successScenario());
        feature.tag("tag1   ", "   ", "   tag2", "tag3", null);
        assertThat(feature.getTags(), contains("tag1", "tag2", "tag3"));
    }

    @Test
    public void should_should_not_do_anything_with_null_tag_to_feature() {
View Full Code Here

    }

    @Test
    public void should_should_not_do_anything_with_null_tag_to_feature() {
        final Feature feature = featureWith(successScenario());
        feature.tag(null);
        assertTrue(feature.getTags().isEmpty());
    }

    @Test
    public void should_add_issue() {
View Full Code Here

    }

    @Test
    public void should_add_issues_to_tags_as_well_on_a_feature() {
        final Feature feature = featureWith(successScenario());
        feature.tag("tag1").issue("MBH-1", "MBH-2");
        assertThat(feature.getTags(), contains("tag1", "MBH-1", "MBH-2"));
    }

}
View Full Code Here

public class AddTagTest {

    @Test
    public void should_add_tag_to_scenario() {
        final Scenario scenario = successScenario();
        scenario.tag("TEST TAG1");
        assertThat(scenario.getTags(), contains("TEST TAG1"));
    }

    @Test
    public void should_add_all_tags_to_scenario() {
View Full Code Here

    }

    @Test
    public void should_add_all_tags_to_scenario() {
        final Scenario scenario = successScenario();
        scenario.tag("TEST TAG1").tag("TEST TAG2");
        assertThat(scenario.getTags(), contains("TEST TAG1", "TEST TAG2"));
    }

    @Test
    public void should_add_multiple_tags_to_scenario() {
View Full Code Here

    }

    @Test
    public void should_add_multiple_tags_to_scenario() {
        final Scenario scenario = successScenario();
        scenario.tag("TEST TAG1", "TEST TAG2");
        assertThat(scenario.getTags(), contains("TEST TAG1", "TEST TAG2"));
    }

    @Test
    public void should_trim_the_tags_on_scenarios() {
View Full Code Here

    }

    @Test
    public void should_trim_the_tags_on_scenarios() {
        final Scenario scenario = successScenario();
        scenario.tag("tag1   ", "   ", "   tag2", "tag3", null);
        assertThat(scenario.getTags(), contains("tag1", "tag2", "tag3"));
    }

    @Test
    public void should_should_not_do_anything_with_null_tag() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.