Package org.jbehave.core.story.domain

Source Code of org.jbehave.core.story.domain.EventStepBehaviour

package org.jbehave.core.story.domain;

import org.jbehave.core.minimock.UsingMiniMock;
import org.jbehave.core.mock.Mock;

public class EventStepBehaviour extends UsingMiniMock {
    public void shouldTellEventToOccurInWorld() throws Exception {
        // given
        Mock event = mock(Event.class);
        EventStep step = new EventStep((Event)event);
        World world = new HashMapWorld();
       
        // expect
        event.expects("occurIn").with(world);
       
        // when
        step.perform(world);
       
        // then
        verifyMocks();
    }
}
TOP

Related Classes of org.jbehave.core.story.domain.EventStepBehaviour

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.