Skip to content

Commit

Permalink
update example bump version to 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihpense committed Sep 20, 2020
1 parent f4a7d41 commit fec658d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
23 changes: 13 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Changelog

# 0.2.0 (in development)
# 0.2.0 (2020-09-20)

### Features

* Add headers support
* Save results to respective case folders
- Add input headers support
- Save result body to respective case folder

### Breaking changes
- Input body file names should start with `input.body` instead of just `input`. Same is true for expected files. See the example test data.

# 0.1.0 (2020-08-26)

### Features

* XML comparison ignoring whitespace
* Test multiple cases at once
* Folder & configuration structure
* Command line options for entering password and specifying directory
* Colorized console output
* Router CPI Flow
* First release!
- XML comparison ignoring whitespace
- Test multiple cases at once
- Folder & configuration structure
- Command line options for entering password and specifying directory
- Colorized console output
- Router CPI Flow
- First release!
File renamed without changes.
3 changes: 3 additions & 0 deletions example-test-data/mapping-case-1/input.header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Header Contents
sender_partner=111111111
receiver_partner=999999999
2 changes: 1 addition & 1 deletion example-test-data/pizug-run-tests.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ECHO OFF

C:\opt\jdk-11\bin\java -jar C:\opt\jars\pizug-cpi-mapping-test.jar -d="." -p
C:\opt\jdk-11\bin\java -jar C:\opt\jars\pizug-cpi-mapping-test.jar --directory="." --password

PAUSE
4 changes: 2 additions & 2 deletions src/main/java/com/pizug/cpi/mappingtest/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;

@Command(description = "Test your SAP CPI Mapping flows with your local test data", name = "pizug-cpi-mapping-test", mixinStandardHelpOptions = true, version = "0.1.0")
@Command(description = "Test your SAP CPI Mapping flows with your local test data", name = "pizug-cpi-mapping-test", mixinStandardHelpOptions = true, version = "0.2.0")
public class App implements Callable<Integer> {

@Option(names = { "-d",
Expand Down Expand Up @@ -146,7 +146,7 @@ private void executeTest(TestConfiguration testConfig, TestCase testCase)
.header("processdirect_path", testConfig.effectiveConfig.mapping.processdirect_path)
.POST(HttpRequest.BodyPublishers.ofFile(testCase.inputBody));

if (testCase.inputHeader != null) {
if (testCase.inputHeader != null && testCase.inputHeader.toFile().exists()) {
Properties inputHeaderProps = new Properties();
try (FileInputStream in = new FileInputStream(testCase.inputHeader.toFile())) {
inputHeaderProps.load(in);
Expand Down

0 comments on commit fec658d

Please sign in to comment.