Skip to content

Commit 7fc02a3

Browse files
committed
Adjust tests and dependencies
1 parent be6880a commit 7fc02a3

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: 'Get version'
2929
run: echo "::set-env name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
3030
- name: 'Upload artifact'
31-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: 'simplelocalize-cli-${{env.VERSION}}.jar'
3434
path: 'target/simplelocalize-cli-${{env.VERSION}}.jar'
@@ -68,7 +68,7 @@ jobs:
6868
- name: "Rename executable"
6969
run: mv ./target/${{ matrix.filename }} ./target/${{ matrix.downloadFilename }}
7070
- name: "Upload artifact"
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7272
with:
7373
name: simplelocalize-cli-${{ matrix.label }}
7474
path: ./target/${{ matrix.downloadFilename }}

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@
123123
<dependency>
124124
<groupId>org.mockito</groupId>
125125
<artifactId>mockito-core</artifactId>
126-
<version>4.2.0</version>
126+
<version>5.7.0</version>
127127
<scope>test</scope>
128128
</dependency>
129129
<dependency>
130130
<groupId>org.mockito</groupId>
131131
<artifactId>mockito-junit-jupiter</artifactId>
132-
<version>4.2.0</version>
132+
<version>5.7.0</version>
133133
<scope>test</scope>
134134
</dependency>
135135
<dependency>
@@ -147,7 +147,7 @@
147147
<dependency>
148148
<groupId>org.mockito</groupId>
149149
<artifactId>mockito-inline</artifactId>
150-
<version>3.12.4</version>
150+
<version>5.2.0</version>
151151
<scope>test</scope>
152152
</dependency>
153153
<dependency>

src/main/java/io/simplelocalize/cli/client/dto/ProxyConfiguration.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ public record ProxyConfiguration(
1010
String password
1111
)
1212
{
13+
14+
@Override
15+
public String toString()
16+
{
17+
return "host='%s', port=%d, username='%s', password='%s'".formatted(host, port, username, password == null ? null : "***");
18+
}
19+
1320
}

src/test/java/io/simplelocalize/cli/client/SystemProxySelectorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void shouldNotPrintPasswordWhenToString()
6161
String result = given.toString();
6262

6363
//then
64-
assertEquals("host='123.456.789.000', port=8080, username='foo', password='*****'", result);
64+
assertEquals("host='123.456.789.000', port=8080, username='foo', password='***'", result);
6565
}
6666

6767
@Test

0 commit comments

Comments
 (0)