Package org.jbehave.ant

Source Code of org.jbehave.ant.StoryClassOne

package org.jbehave.ant;

import org.jbehave.core.listener.BehaviourListener;
import org.jbehave.core.story.domain.Narrative;
import org.jbehave.core.story.domain.Story;
import org.jbehave.core.story.renderer.Renderer;

public class StoryClassOne implements Story {

    private boolean wasRun;
    private boolean wasNarrated;

    public void addListener(BehaviourListener listener) {}

    public Narrative narrative() {
        return new Narrative("", "", "");
    }

    public void run() {
        wasRun = true;
    }

    public void specify() {}

    public void narrateTo(Renderer renderer) {
        wasNarrated = true;
    }

    public boolean wasNarrated() {
        return wasNarrated;
    }

    public boolean wasRun() {
        return wasRun;
    }

}
TOP

Related Classes of org.jbehave.ant.StoryClassOne

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.