Skip to content

Commit

Permalink
Bump JBehave from 5.0.1-alpha.11 to 5.1.1-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
valfirst committed Mar 3, 2023
1 parent ecc752c commit b85485e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ project.description = 'Vividus'
ext {
versions = [
allure: '2.21.0',
jbehave: '5.0.1-alpha.11',
jbehave: '5.1.1-alpha',
slf4j: '2.0.6',
powermock: 'a0be5c4bbe'
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 the original author or authors.
* Copyright 2019-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -173,14 +173,16 @@ private void verifyStepMonitor(StepMonitor expectedStepMonitorDelegate)
@Test
void testSetCustomTableTransformers() throws IOException
{
String name = "customTableTransformer";
TableTransformer tableTransformer = mock(TableTransformer.class);
var name = "customTableTransformer";
var tableAsString = "tableAsString";
var tableProperties = new TableProperties("", new Keywords(), new ParameterConverters());
TableTransformer tableTransformer = mock();
var transformed = "transformed";
when(tableTransformer.transform(tableAsString, tableParsers, tableProperties)).thenReturn(transformed);
configuration.setCustomTableTransformers(Map.of(name, tableTransformer));
configuration.init();
String tableAsString = "tableAsString";
TableProperties tableProperties = new TableProperties("", new Keywords(), new ParameterConverters());
configuration.tableTransformers().transform(name, tableAsString, null, tableProperties);
verify(tableTransformer).transform(tableAsString, null, tableProperties);
var result = configuration.tableTransformers().transform(name, tableAsString, tableParsers, tableProperties);
assertEquals(transformed, result);
}

private static BatchConfiguration argPathResolution(String compositePathPatterns)
Expand Down

0 comments on commit b85485e

Please sign in to comment.