Skip to content

Commit

Permalink
Sync the modifier convention in test
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed Dec 12, 2024
1 parent 59bccb7 commit 6f8be6c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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\": "
Expand Down Expand Up @@ -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 + "\"}";
}
}
Expand Down

0 comments on commit 6f8be6c

Please sign in to comment.