Skip to content

paddyfox/address-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Address Checker

Simple Java project to teach Unit and Integration testing

To run tests

mvn clean verify

Tasks

BEFORE STARTING, CHECKOUT A NEW BRANCH AND NAME IT: yourFirstName-surname eg. paddy-fox.

Word Checker

  1. Work out the postcodeValidator regex and change the expected value in postcodeValidatorValidPostcodeTest unit test so that it passes.
  2. Complete the postcodeValidatorMultipleInvalidPostcodesTest test so that it can accept multiple postcode examples, all of which fail the regex checks.

(TDD APPROACH): 3. Create unit tests for the roadNameValidator which tests positive/negative scenarios. 4. Create a roadNameValidator which accepts a String road name variable which only allows characters in the alphabet.

Number Checker

(TDD APPROACH):

  1. Create unit tests for the houseNumberValidator which tests positive/negative/boundary scenarios - remember to always make sure the test can also fail.
  2. Create a houseNumberValidator which accepts a numeric house number variable which is always exactly 2 digits starting from number 1.

(CHOOSE YOUR OWN APPROACH):

  • Write a function with unit tests to determine whether a value is a prime number. It should return true or false if the value is an integer in the range 2 - 1000000000000 inclusive, else it should throw an error.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages