https://github.com/sourceallies/tddworkshop
Test Driven Development Workshop
https://github.com/sourceallies/tddworkshop
Last synced: 5 months ago
JSON representation
Test Driven Development Workshop
- Host: GitHub
- URL: https://github.com/sourceallies/tddworkshop
- Owner: sourceallies
- Created: 2015-03-27T13:01:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-23T12:44:13.000Z (over 11 years ago)
- Last Synced: 2024-04-14T22:23:13.856Z (about 2 years ago)
- Size: 3.52 MB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Source Allies University
#TDD Workshop
##New Code Exercise
###Setup
* Java SDK 6 or above
* Intellij IDEA Community Edition
* jUnit 4
###Test Drive Creating a Calculator
* Create a Calculator class with an Add method.
* The method can take 0, 1 or 2 numbers, and will return their sum.
* For example: “” or “1” or “1,2”.
* For an empty string it will return Zero.
* Allow the Add method to handle an unknown amount of numbers.
##Legacy Code Exercise
###Setup
* Java SDK 6 or above
* Intellij IDEA Ultimate Edition
* jUnit 4
* Mockito 1.9
* CDI: Context and Dependency Injection plugin for Intellij IDEA Ultimate Edition
###Test Drive Refactoring an Existing Class
* Create a String Calculator class with an Add method that takes in Strings.
* Utilize CDI to inject the String Calculator into the Calculator.
* Have the Calculator class delegate to the String Calculator class.
###Optional
* Create a Numeric Calculator class with an Add method.
* Utilize CDI to inject the Numeric Calculator into the Calculator.
* If the Add method is called with string parameters, delegate to the String Calculator; if the Add method is called with numeric parameters, delegate to the Numeric Calculator.