From 6f8be6c2a0d43826871bd7e7e5a7613d1ab874c4 Mon Sep 17 00:00:00 2001 From: Leung Cheng Date: Thu, 12 Dec 2024 14:16:48 +0800 Subject: [PATCH] Sync the modifier convention in test --- .../SpringSimpleBackendApplicationTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/com/leungcheng/spring_simple_backend/SpringSimpleBackendApplicationTests.java b/src/test/java/com/leungcheng/spring_simple_backend/SpringSimpleBackendApplicationTests.java index 9dc67db..96c0aa1 100644 --- a/src/test/java/com/leungcheng/spring_simple_backend/SpringSimpleBackendApplicationTests.java +++ b/src/test/java/com/leungcheng/spring_simple_backend/SpringSimpleBackendApplicationTests.java @@ -326,17 +326,17 @@ private static class CreateProductParams { String price; int quantity; - private static CreateProductParams sample() { + static CreateProductParams sample() { return new CreateProductParams("Product 1", "10", 50); } - private CreateProductParams(String name, String price, int quantity) { + CreateProductParams(String name, String price, int quantity) { this.name = name; this.price = price; this.quantity = quantity; } - public String toContent() { + String toContent() { return "{\"name\": \"" + this.name + "\", \"price\": " @@ -364,16 +364,16 @@ private static class UserCredentials { String username; String password; - private static UserCredentials sample() { + static UserCredentials sample() { return new UserCredentials("user001", "sample-password"); } - private UserCredentials(String username, String password) { + UserCredentials(String username, String password) { this.username = username; this.password = password; } - public String toContent() { + String toContent() { return "{\"username\": \"" + this.username + "\", \"password\": \"" + this.password + "\"}"; } }