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

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0 Release
    • Routines
    • 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. CreditCardValidator.java
          5 kB
          Niall Pemberton
        2. CreditCardValidatorTest.java
          16 kB
          Niall Pemberton

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: