https://github.com/jloisel/design-by-contract
Design-by-Contract Java sample application.
https://github.com/jloisel/design-by-contract
Last synced: 11 months ago
JSON representation
Design-by-Contract Java sample application.
- Host: GitHub
- URL: https://github.com/jloisel/design-by-contract
- Owner: jloisel
- Created: 2013-11-10T16:35:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T04:19:03.000Z (over 5 years ago)
- Last Synced: 2025-03-23T16:11:38.790Z (12 months ago)
- Language: Java
- Homepage:
- Size: 344 KB
- Stars: 17
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Design by Contract Java Sample application
==================
This application shows how to create a modular Java application using Maven, in respect to "Design by Contract".
To run the application:
- Import Maven project,
- Run Main class in application module.
It's an implementation of a simple model:
- Car: represents an automotive Car,
- Engine: an internal combustion engine,
- PowerBand: HorsePower and Torque curves over an RPM range,
- Wheel: just a wheel,
- Body: car's body.
Dependencies:
- Guice,
- Guava,
- JUnit,
- Mockito.
Development technics:
- Design By Contract,
- Test Driven Development,
- Dependency Injection.