Skip to content

Commit 7a9cb45

Browse files
fix(test): rename test methods to satisfy JUnit4 naming rule
Codacy flagged the three AidlNetworkRequestTest methods for not matching the JUnit 4 method-name pattern [a-z][a-zA-Z0-9]* (snake_case with underscores). Rename them to camelCase. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: David Luhmer <david-dev@live.de>
1 parent b7f5395 commit 7a9cb45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/src/test/java/com/nextcloud/android/sso/api/AidlNetworkRequestTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public OnlyInFilesAppException(String message) {
3434
}
3535

3636
@Test
37-
public void deserializeObjectV2_exceptionClassMissingInClientApp_returnsReadableException() throws Exception {
37+
public void deserializeObjectV2ExceptionClassMissingInClientAppReturnsReadableException() throws Exception {
3838
final byte[] data = serialize(new OnlyInFilesAppException("certificate expired"), "[]");
3939

4040
// Rename the class inside the serialized stream to one that does not exist on this
@@ -51,7 +51,7 @@ public void deserializeObjectV2_exceptionClassMissingInClientApp_returnsReadable
5151
}
5252

5353
@Test
54-
public void deserializeObjectV2_noException_parsesHeaders() throws Exception {
54+
public void deserializeObjectV2NoExceptionParsesHeaders() throws Exception {
5555
final byte[] data = serialize(null, "[{\"name\":\"Content-Type\",\"value\":\"application/json\"}]");
5656

5757
final var response = AidlNetworkRequest.deserializeObjectV2(new ByteArrayInputStream(data));
@@ -63,7 +63,7 @@ public void deserializeObjectV2_noException_parsesHeaders() throws Exception {
6363
}
6464

6565
@Test
66-
public void deserializeObjectV2_knownException_returnsItUnchanged() throws Exception {
66+
public void deserializeObjectV2KnownExceptionReturnsItUnchanged() throws Exception {
6767
final byte[] data = serialize(new IllegalStateException("CE_1"), "[]");
6868

6969
final var response = AidlNetworkRequest.deserializeObjectV2(new ByteArrayInputStream(data));

0 commit comments

Comments
 (0)