本文整理汇总了Java中org.jbehave.core.annotations.BeforeStory类的典型用法代码示例。如果您正苦于以下问题:Java BeforeStory类的具体用法?Java BeforeStory怎么用?Java BeforeStory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BeforeStory类属于org.jbehave.core.annotations包,在下文中一共展示了BeforeStory类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: beforeStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void beforeStory(@Named("author") String author) {
if (author.length() > 0) {
System.out.println("This story is authored by " + author);
} else {
System.out.println("Before Story ...");
}
}
示例2: uponGivenStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
private boolean uponGivenStory(Annotation annotation) {
if (annotation instanceof BeforeStory) {
return ((BeforeStory) annotation).uponGivenStory();
} else if (annotation instanceof AfterStory) {
return ((AfterStory) annotation).uponGivenStory();
}
return false;
}
示例3: beforeStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void beforeStory() {
docker.createContainers();
}
示例4: beforeStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void beforeStory() {
}
示例5: cleanUp
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void cleanUp() {
registrationService.clean();
fehler = false;
andererKundeRegistrierungErfolg = false;
}
示例6: cleanUp
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void cleanUp() {
registrationService.clean();
error = false;
anotherUserRegistered = false;
}
示例7: beforeMyStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void beforeMyStory() {
LOGGER.info("<<<<<< BeforeStory >>>>>>");
}
示例8: init
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void init() {
LOG.debug("Initializing before a story run.");
ProcessEngineAssertions.init(support.getProcessEngine());
}
示例9: beforeStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void beforeStory() {
throw new RuntimeException("Failure before story");
}
示例10: beforeGivenStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory(uponGivenStory = true)
public void beforeGivenStory() {
System.out.println("Before Given Story ...");
}
示例11: deleteAllData
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void deleteAllData() throws SQLException, DatabaseUnitException {
DatabaseDataSourceConnection dbConn = new DatabaseDataSourceConnection(dataSource);
IDataSet dataSet = dbConn.createDataSet(new String[] { "ORGANIZATION", "APPLICATION_USER" });
DatabaseOperation.DELETE_ALL.execute(dbConn, dataSet);
}
示例12: listBeforeOrAfterStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
public List<BeforeOrAfterStep> listBeforeOrAfterStory(boolean givenStory) {
List<BeforeOrAfterStep> steps = new ArrayList<BeforeOrAfterStep>();
steps.addAll(stepsHaving(Stage.BEFORE, BeforeStory.class, givenStory));
steps.addAll(stepsHaving(Stage.AFTER, AfterStory.class, givenStory));
return steps;
}
示例13: beforeStory
import org.jbehave.core.annotations.BeforeStory; //导入依赖的package包/类
@BeforeStory
public void beforeStory(@Named("before") String before) {
this.value = before;
}