Skip to content

Commit

Permalink
fix: hw2-1319 - Rename product search parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
geovanne-duarte-mx committed Jul 22, 2024
1 parent 8d50947 commit c64533f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public final class Product extends MdxBase<Product> {

private String name;

@SerializedName("product_type")
private String productType;
private String type;

public List<Challenge> getActivateChallenges() {
return activateChallenges;
Expand Down Expand Up @@ -116,12 +115,12 @@ public void setName(String name) {
this.name = name;
}

public String getProductType() {
return productType;
public String getType() {
return type;
}

public void setProductType(String productType) {
this.productType = productType;
public void setType(String type) {
this.type = type;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
@SuppressWarnings({ "checkstyle:MemberName", "checkstyle:ParameterName", "checkstyle:MethodName" })
public class ProductSearch {

private String product_type;
private String type;

public final String getProduct_type() {
return product_type;
public final String getType() {
return type;
}

public final void setProduct_type(String product_type) {
this.product_type = product_type;
public final void setType(String type) {
this.type = type;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ProductControllerTest extends Specification {
def "listProducts interacts with gateway"() {
given:
def search = new ProductSearch().tap {
product_type = "ACCOUNT"
type = "ACCOUNT"
}
def mockResponse = new AccessorResponse<MdxList<Product>>().withResult(new MdxList<>().tap {
add(new Product())
Expand Down

0 comments on commit c64533f

Please sign in to comment.