File tree 3 files changed +5
-4
lines changed
main/java/cucumber/runtime/formatter
test/java/cucumber/runtime/formatter
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
11
11
### Removed
12
12
13
13
### Fixed
14
+ * [ Core] Correct the name of the Json Formatter embeddings node ([ #1236 ] ( https://github.com/cucumber/cucumber-jvm/pull/1236 ) Haroon Sheikh)
14
15
15
16
16
17
## [ 2.0.1-SNAPSHOT] ( https://github.com/cucumber/cucumber-jvm/compare/v2.0.0...v2.0.1 ) (2017-09-17)
Original file line number Diff line number Diff line change @@ -290,11 +290,11 @@ private void addOutputToHookMap(String text) {
290
290
}
291
291
292
292
private void addEmbeddingToHookMap (byte [] data , String mimeType ) {
293
- if (!currentStepOrHookMap .containsKey ("embedding " )) {
294
- currentStepOrHookMap .put ("embedding " , new ArrayList <Map <String , Object >>());
293
+ if (!currentStepOrHookMap .containsKey ("embeddings " )) {
294
+ currentStepOrHookMap .put ("embeddings " , new ArrayList <Map <String , Object >>());
295
295
}
296
296
Map <String , Object > embedMap = createEmbeddingMap (data , mimeType );
297
- ((List <Map <String , Object >>)currentStepOrHookMap .get ("embedding " )).add (embedMap );
297
+ ((List <Map <String , Object >>)currentStepOrHookMap .get ("embeddings " )).add (embedMap );
298
298
}
299
299
300
300
private Map <String , Object > createEmbeddingMap (byte [] data , String mimeType ) {
Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ public void should_handle_embed_from_a_hooks() throws Throwable {
584
584
" \" match\" : {\n " +
585
585
" \" location\" : \" Hooks.before_hook_1()\" \n " +
586
586
" },\n " +
587
- " \" embedding \" : [\n " +
587
+ " \" embeddings \" : [\n " +
588
588
" {\n " +
589
589
" \" mime_type\" : \" mime-type;base64\" ,\n " +
590
590
" \" data\" : \" AQID\" \n " +
You can’t perform that action at this time.
0 commit comments