-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: PhoneNumberValidator #62
Draft
Anrufliste
wants to merge
87
commits into
main
Choose a base branch
from
Validator
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…LibWrapper to access PhoneLib logic. First testcase set taken from PhoneNumberNormalizer as starting point. Define expected behaviour and outcomment all testcases which currently do not work. Those can be used to test logic addition to capture more detailed behaviour than phone lib. After standard cases work, next phase will be to include special testcases from PhoneNumberUtil test folder.
…ting digit(s) of the number as described in https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/ONVerzeichnisse/ONBVerzeichnis/Sonderregelungen0212_0621.pdf?__blob=publicationFile&v=1 (#63) Also reported it as a bug for PhoneLib's GeoCoder: https://issuetracker.google.com/issues/338710341 Started a new minor Version: 1.2.0
1) USING IDP & CC 1a) From Foreign Country 1b) Within the Country 2) Not Using IDP & CC 2a) Region is not Using NAC 2b) Region may use Nac 2bI) NAC and NDC is used 2bII) No NAC is used
…LibWrapper to access PhoneLib logic. First testcase set taken from PhoneNumberNormalizer as starting point. Define expected behaviour and outcomment all testcases which currently do not work. Those can be used to test logic addition to capture more detailed behaviour than phone lib. After standard cases work, next phase will be to include special testcases from PhoneNumberUtil test folder.
1) USING IDP & CC 1a) From Foreign Country 1b) Within the Country 2) Not Using IDP & CC 2a) Region is not Using NAC 2b) Region may use Nac 2bI) NAC and NDC is used 2bII) No NAC is used
…C of a city) but for mobile numbers (NDC of a mobile network) see https://issuetracker.google.com/issues/341947688 - testcases in IsPossibleNumberWithReasonTest and IsValidNumberTest are adapted.
…C of a city) but for mobile numbers (NDC of a mobile network) see https://issuetracker.google.com/issues/341947688 - testcases in IsPossibleNumberWithReasonTest and IsValidNumberTest are adapted.
…lan - as done 5 years ago) (#68)
* Use PhoneLib 8.13.38 and prepare release (removed NAC from MX numberplan - as done 5 years ago) * Start Snapshot 1.2.4 after release 1.2.3
…ed results for 110 and 112 short code tests. Also add test to check a subscriber number is not starting with a digit equaling NAC, when (used) NDC not mandatory.
…t code because it is usable with NDC and from outside of germany with IDP+CC (for last case IS_POSSIBLE_INTERNATIONAL_ONLY is used).
…kShortCodeOverlapping method and introduce ShortCodeUseable enum, to controll the usage of the isUsable... functions of the numberplan object.
…kExitCodeUsingNumber method
…erValidationResult types.
…d link to issues reported to google Added new issue for 115 and updated issue status information.
…g Validation Code to handle short code definition via prefix and length (range instead of a single one)
* Use PhoneLib 8.13.39 and prepare release * Start Snapshot 1.2.5 after release 1.2.4
…n Code to handle short code definition which marks a short code as reserve (not valid at all) and introducing a new result type: INVALID_RESERVE_NUMBER
* Use PhoneLib 8.13.47 and prepare release * Start Snapshot 1.2.10 after release 1.2.9
* Use PhoneLib 8.13.47 and prepare release * Start Snapshot 1.2.10 after release 1.2.9 * Dependency Upgrade because of CVE-2024-38808 in spring-expression 5.3.32: - org.springframework.spring-context 5.3.32 >>> 5.3.39 - org.apache.commons.commons-lang3 3.12.0 >>> 3.17.0 - io.swagger.swagger-annotations 1.6.11 >>> 1.6.14 - com.fasterxml.jackson.core.jackson-core 2.15.2 >>> 2.18.0 - com.fasterxml.jackson.core.jackson-annotations 2.15.2 >>> 2.8.0 - com.fasterxml.jackson.core.jackson-databind 2.15.2 >>> 2.18.0 - org.slf4j.slf4j-api 2.0.7 >>> 2.0.16 - org.codehaus.groovy.groovy-all 3.0.17 >>> 3.0.22 - org.spockframework.spock-core 2.3-groovy-3.0 >>> 2.4-M4-groovy-3.0 - org.testng.testng 7.8.0 >>> 7.10.2 Fixing code in IsValidNumberTest and correct Expected Fails for: - 016013 - 016250 - 016255 - 016399 - 0181 - 01988
…LibWrapper to access PhoneLib logic. First testcase set taken from PhoneNumberNormalizer as starting point. Define expected behaviour and outcomment all testcases which currently do not work. Those can be used to test logic addition to capture more detailed behaviour than phone lib. After standard cases work, next phase will be to include special testcases from PhoneNumberUtil test folder.
1) USING IDP & CC 1a) From Foreign Country 1b) Within the Country 2) Not Using IDP & CC 2a) Region is not Using NAC 2b) Region may use Nac 2bI) NAC and NDC is used 2bII) No NAC is used
…C of a city) but for mobile numbers (NDC of a mobile network) see https://issuetracker.google.com/issues/341947688 - testcases in IsPossibleNumberWithReasonTest and IsValidNumberTest are adapted.
…C of a city) but for mobile numbers (NDC of a mobile network) see https://issuetracker.google.com/issues/341947688 - testcases in IsPossibleNumberWithReasonTest and IsValidNumberTest are adapted.
…ed results for 110 and 112 short code tests. Also add test to check a subscriber number is not starting with a digit equaling NAC, when (used) NDC not mandatory.
…t code because it is usable with NDC and from outside of germany with IDP+CC (for last case IS_POSSIBLE_INTERNATIONAL_ONLY is used).
…kShortCodeOverlapping method and introduce ShortCodeUseable enum, to controll the usage of the isUsable... functions of the numberplan object.
…kExitCodeUsingNumber method
…erValidationResult types.
…d link to issues reported to google Added new issue for 115 and updated issue status information.
…g Validation Code to handle short code definition via prefix and length (range instead of a single one)
…n Code to handle short code definition which marks a short code as reserve (not valid at all) and introducing a new result type: INVALID_RESERVE_NUMBER
1) USING IDP & CC 1a) From Foreign Country 1b) Within the Country 2) Not Using IDP & CC 2a) Region is not Using NAC 2b) Region may use Nac 2bI) NAC and NDC is used 2bII) No NAC is used
1) USING IDP & CC 1a) From Foreign Country 1b) Within the Country 2) Not Using IDP & CC 2a) Region is not Using NAC 2b) Region may use Nac 2bI) NAC and NDC is used 2bII) No NAC is used
…C of a city) but for mobile numbers (NDC of a mobile network) see https://issuetracker.google.com/issues/341947688 - testcases in IsPossibleNumberWithReasonTest and IsValidNumberTest are adapted.
…t code because it is usable with NDC and from outside of germany with IDP+CC (for last case IS_POSSIBLE_INTERNATIONAL_ONLY is used).
…kShortCodeOverlapping method and introduce ShortCodeUseable enum, to controll the usage of the isUsable... functions of the numberplan object.
…kExitCodeUsingNumber method
…d link to issues reported to google Added new issue for 115 and updated issue status information.
…g Validation Code to handle short code definition via prefix and length (range instead of a single one)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prepare new class PhoneNumberValidator - currently just reusing PhoneLibWrapper to access PhoneLib logic. First testcase set taken from PhoneNumberNormalizer as starting point. Define expected behaviour and outcomment all testcases which currently do not work.
Those can be used to test logic addition to capture more detailed behaviour than phone lib. After standard cases work, next phase will be to include special testcases from PhoneNumberUtil test folder.