Skip to content

Commit

Permalink
Change name method (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
strug authored Mar 15, 2024
1 parent 48057f3 commit 2cbc908
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<dependency>
<groupId>dev.vality</groupId>
<artifactId>damsel</artifactId>
<version>1.619-da17a84</version>
<version>1.623-f8e56c6</version>
</dependency>
<dependency>
<groupId>dev.vality.woody</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public RiskScore inspectPayment(Context context) throws TException {
}

@Override
public boolean isExistInBlackList(BlackListContext blackListContext) throws InvalidRequest, TException {
public boolean isBlacklisted(BlackListContext blackListContext) throws InvalidRequest, TException {
try {
Row row = new Row()
.setId(IdInfo.payment_id(new PaymentId()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ void isExistInBlackList() throws TException {
);

when(wbListServiceSrv.isExist(any())).thenReturn(false);
boolean existInBlackList = fraudInspectorHandler.isExistInBlackList(createBlackListContext());
boolean existInBlackList = fraudInspectorHandler.isBlacklisted(createBlackListContext());
assertEquals(false, existInBlackList);

when(wbListServiceSrv.isExist(any())).thenReturn(true);
existInBlackList = fraudInspectorHandler.isExistInBlackList(createBlackListContext());
existInBlackList = fraudInspectorHandler.isBlacklisted(createBlackListContext());
assertEquals(true, existInBlackList);

when(wbListServiceSrv.isExist(any())).thenThrow(new ListNotFound());
existInBlackList = fraudInspectorHandler.isExistInBlackList(createBlackListContext());
existInBlackList = fraudInspectorHandler.isBlacklisted(createBlackListContext());
assertEquals(false, existInBlackList);
}

Expand Down

0 comments on commit 2cbc908

Please sign in to comment.