← Back to all work
GitHubLearning and foundations

Java Registration Validation

Java regex methods with JUnit cases for names, email, mobile numbers, and passwords.

STATUSHistorical learning project; current execution not revalidated in this review.
FOCUSLearning and foundations
DIAGRAM SCOPEWorkflow overview

THE PROBLEM

What it sets out
to solve.

Practice separating registration-like validation rules and test expectations.

THE APPROACH

How it comes
together.

UserRegistrationValidation exposes field methods and UserRegistrationTest supplies positive and negative cases using JUnit 4 on a manually configured classpath.

UNDER THE HOOD

Follow the workflow.

Trace the components.
Select a node for its role in the system.

Documented implementation workflow4 COMPONENTS
INTERACTIVE 3DJava Registration Validation
JavaJUnit 4Regular expressions
Move to tilt · Drag to rotate · Arrow keysDrag to rotate · Tap a component4 components · 3 connections
2D diagram
Trace connections 3 relationships
  1. Example field stringsValidation methods
  2. Validation methodsBoolean or validation result
  3. Boolean or validation resultJUnit 4 cases

Select a component to see how it fits into the system.

CAPABILITIES

What’s inside.

  • 01

    Name, email, mobile, and password patterns

  • 02

    Positive and negative JUnit examples

  • 03

    Separate source/test folders

Let’s build something useful.

Start a conversation ↗