Skip to content

Commit

Permalink
Remove useless codes (#30232)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Feb 21, 2024
1 parent b88201e commit 36a0a98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,4 @@ public final class EncryptOrder {
* Encrypt order.
*/
public static final int ORDER = 10;

/**
* Compatible encrypt order.
*/
public static final int COMPATIBLE_ORDER = ORDER + 1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

Expand All @@ -57,7 +58,7 @@ void assertRevise() {
}

private EncryptRule mockEncryptRule() {
EncryptRule result = mock(EncryptRule.class);
EncryptRule result = mock(EncryptRule.class, RETURNS_DEEP_STUBS);
EncryptTable encryptTable = mock(EncryptTable.class);
when(result.findEncryptTable(TABLE_NAME)).thenReturn(Optional.of(encryptTable));
when(encryptTable.isCipherColumn("pwd_cipher")).thenReturn(true);
Expand Down

0 comments on commit 36a0a98

Please sign in to comment.