GitHubLearning and foundations
Mood Analyzer in Java
A deterministic Java HAPPY/SAD string-rule exercise with custom exceptions and JUnit.
THE PROBLEM
What it sets out
to solve.
Learn unit testing and exceptional input handling around a small rule-based API.
THE APPROACH
How it comes
together.
MoodAnalyser applies the string rule and MoodAnalyseException represents error cases; JUnit tests document expected classifications and failures.
UNDER THE HOOD
Follow the workflow.
Trace the components.
Select a node for its role in the system.
Documented implementation workflow4 COMPONENTS
INTERACTIVE 3DMood Analyzer in Java
JavaJUnitGradle
Trace connections 3 relationships
- Input message→MoodAnalyser
- MoodAnalyser→Value or custom exception
- Value or custom exception→JUnit assertions
Select a component to see how it fits into the system.
CAPABILITIES
What’s inside.
- 01
HAPPY/SAD string rule
- 02
Custom exception handling
- 03
JUnit test cases