Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump JBehave from 5.0.1-alpha.11 to 5.1.1-alpha #3689

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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