Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-247

Move CreditCardValidator to routines package and refactor to use new CodeValidator

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0 Release
    • Component/s: Routines
    • Labels:
      None

      Description

      Having copied CreditCardValidator to routines, it now needs to be refactored to use CodeValidator/LuhnCheckDigit/etc. It might also make sense to break CreditCardType out into a separate 1.4-style typesafe enum so it can be easily converted to a real enum for Validator 2.

        Attachments

        1. CreditCardValidatorTest.java
          16 kB
          Niall Pemberton
        2. CreditCardValidator.java
          5 kB
          Niall Pemberton

          Activity

            People

            • Assignee:
              niallp Niall Pemberton
              Reporter:
              bens Ben Speakmon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: