优化
This commit is contained in:
@@ -7,11 +7,21 @@ import org.junit.jupiter.api.Test;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Arrays;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class LoginIdentifierContractTest {
|
||||
|
||||
@Test
|
||||
void registrationExposesAnAccountPhoneInsteadOfALegalPersonPhoneAlias() {
|
||||
var componentNames = Arrays.stream(MerchantRegisterRequest.class.getRecordComponents())
|
||||
.map(component -> component.getName())
|
||||
.toList();
|
||||
|
||||
assertThat(componentNames).contains("phone").doesNotContain("legalPhone");
|
||||
}
|
||||
|
||||
@Test
|
||||
void mainlandMobileRuleRejectsPlaceholderNumbersAcrossJavaAndSql() throws Exception {
|
||||
try (var factory = Validation.buildDefaultValidatorFactory()) {
|
||||
|
||||
Reference in New Issue
Block a user