Skip to content

Commit

Permalink
Merge pull request #16 from trivago/0.1.1
Browse files Browse the repository at this point in the history
0.1.1
  • Loading branch information
Benjamin Bischoff authored Dec 12, 2017
2 parents 77d433a + 2aa469e commit e7cba6a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Back to [Readme](README.md).

## [0.1.1] - 2017-12-12

# Removed

- Unnecessary log outputs for attachments

## [0.1.0] - 2017-12-12

# Added
Expand Down Expand Up @@ -62,7 +68,8 @@ Back to [Readme](README.md).

Initial project version on GitHub and Maven Central.

[Unreleased]: https://github.com/trivago/cluecumber-report-plugin/compare/0.1.0...HEAD
[Unreleased]: https://github.com/trivago/cluecumber-report-plugin/compare/0.1.1...HEAD
[0.1.1]: https://github.com/trivago/cluecumber-report-plugin/tree/0.1.1
[0.1.0]: https://github.com/trivago/cluecumber-report-plugin/tree/0.1.0
[0.0.6]: https://github.com/trivago/cluecumber-report-plugin/tree/0.0.6
[0.0.5]: https://github.com/trivago/cluecumber-report-plugin/tree/0.0.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@ public void postDeserialize(final Element element, final JsonElement jsonElement
private void processAttachments(final List<Step> steps, List<After> afterHooks) throws CluecumberPluginException {
// Process step attachments
for (Step step : steps) {
System.out.println("Found attachment in step");
processEmbedding(step.getEmbeddings());
}

// Process after hook attachments (Cucumber 2)
for (After afterHook : afterHooks) {
System.out.println("Found attachment in after hook");
processEmbedding(afterHook.getEmbeddings());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public void invalidSourceFeaturesTest() throws Exception {
@Test
public void validSourceFeaturesTest() throws Exception {
String jsonPath = testFolder.getRoot().getPath();

when(propertyManager.getSourceJsonReportDirectory()).thenReturn(jsonPath);
fileSystemManager.getJsonFilePaths();
}
Expand All @@ -44,5 +43,10 @@ public void createInvalidDirectory() throws Exception {
fileSystemManager.createDirectory("");
}

@Test(expected = CluecumberPluginException.class)
public void exportResourceTest() throws Exception {
Class baseClass = this.getClass();
fileSystemManager.exportResource(baseClass, "resource", "destination");
}

}

0 comments on commit e7cba6a

Please sign in to comment.