https://github.com/alvarogarcia7/unusual-spending-kata-java
I've practiced the Unusual Spending Kata, in Java
https://github.com/alvarogarcia7/unusual-spending-kata-java
deliberate-practice hexagonal-architecture java kata legacy-code maven vendor wishful-programming
Last synced: 3 months ago
JSON representation
I've practiced the Unusual Spending Kata, in Java
- Host: GitHub
- URL: https://github.com/alvarogarcia7/unusual-spending-kata-java
- Owner: alvarogarcia7
- Created: 2019-09-17T09:35:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T16:05:31.000Z (over 4 years ago)
- Last Synced: 2025-01-10T22:49:20.475Z (5 months ago)
- Topics: deliberate-practice, hexagonal-architecture, java, kata, legacy-code, maven, vendor, wishful-programming
- Language: Java
- Homepage: https://www.meetup.com/es-ES/Software-Crafters-Barcelona/events/264515371/
- Size: 5.16 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# java-testing-example
This is the Java repository we'll work out of during this [training
event](https://github.com/testdouble/contributing-tests/wiki/5-Day-Training-Agenda).## Instructions
Clone the repo:
Git:
```
$ git clone [email protected]:testdouble/java-testing-example.git
```Svn:
```
$ svn co https://github.com/testdouble/java-testing-example
```Or download a ZIP of master [manually](https://github.com/testdouble/java-testing-example/archive/master.zip) and expand the contents someplace on your system
## Prerequisites
* Have a JDK installed
* Have Maven installed and available on your PATH or IDE
* Have Firefox installed## Verify installation
You can verify the project builds correctly from your IDE or from the command
line.### CLI
Open a command prompt and verify that all needed bins are on your path and up to date:
```
$ java -version
# ^ should be at least 1.6
$ mvn -v
# ^ should be at least 3.0.0
```Finally, verify that `mvn install` succeeds.
You should see output like the following:
```
$ cd java-testing-example
$ mvn install
# ...-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.acme.app.HelloWorldProxyTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 sec
Running com.acme.app.HelloWorldTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 secResults :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ app ---
[INFO] Building jar: junit-mocha-example/target/app-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ app ---
[INFO] Installing junit-mocha-example/target/app-0.0.1-SNAPSHOT.jar to /Users/justin/.m2/repository/com/acme/app/0.0.1-SNAPSHOT/app-0.0.1-SNAPSHOT.jar
[INFO] Installing junit-mocha-example/pom.xml to /Users/justin/.m2/repository/com/acme/app/0.0.1-SNAPSHOT/app-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.159 s
[INFO] Finished at: 2015-08-26T13:49:46-04:00
[INFO] Final Memory: 20M/177M
[INFO] ------------------------------------------------------------------------
```### Eclipse
First, right-click the Project Explorer and select Import -> Import:
Next, choose Maven -> Existing Maven Projects:
Tell Eclipse where you've downloaded or checked out the project and click Finish:
You should see a progress bar as the project is imported:
Once the project is imported, right-click the project, then choose Run As ->
Maven install:
If everything has succeeded, you should see a successful build in Eclipse's
console:
## Continue set up
Once you've verified you have the project working, continue configuring your
environment to start work as described [in this wiki
page](https://github.com/testdouble/contributing-tests/wiki/Environment-Setup#java)