Skip to content

Commit

Permalink
chore(ResponseTest.java): Updated contents of string for CommandPlain…
Browse files Browse the repository at this point in the history
…Secure test.
  • Loading branch information
AsifNawaz-cnic committed Nov 8, 2023
1 parent b74cb8d commit 0e7110a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// .devcontainer/devcontainer.json
{
"name": "Java",
"image": "mcr.microsoft.com/devcontainers/java",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
}
},
"extensions": [
"vscjava.vscode-java-pack"
]
}
}
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
runs-on: ubuntu-latest

strategy:
matrix:
java-version: ${{ fromJson(vars.RTLDEV_MW_CI_JAVA_MATRIX) }}
# matrix:
# java-version: ${{ fromJson(vars.RTLDEV_MW_CI_JAVA_MATRIX) }}

name: 🧪 Testing
needs: lint
Expand All @@ -41,10 +41,10 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Java JDK @^${{ matrix.java-version }}
- name: Java JDK @^21
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
java-version: 21
distribution: ${{ vars.RTLDEV_MW_CI_JAVA_DISTRO }}
- name: Validate & Coverage Report
run: |
Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
<version>3.6.2</version>
<configuration>
<verbose>true</verbose>
<source>8</source>
<additionalOptions>-html5</additionalOptions>
</configuration>
<executions>
Expand Down Expand Up @@ -123,6 +122,11 @@
<artifactId>maven-install-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.4.5</version> <!-- Use the desired version -->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/net/hexonet/apiconnector/ResponseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void getCommandPlainSecure() {
cmd.put("SUBUSER", "test.user");
cmd.put("PASSWORD", "test.passw0rd");
Response r = new Response("", cmd);
String str = "SUBUSER = test.user\nCOMMAND = CheckAuthentication\nPASSWORD = ***\n";
String str = "SUBUSER = test.user\nPASSWORD = ***\nCOMMAND = CheckAuthentication\n";
assertEquals(str, r.getCommandPlain());
}

Expand Down

0 comments on commit 0e7110a

Please sign in to comment.