Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/humbertodias/java-mockito-demo
Java Behaviour Driven Development with Mockito
https://github.com/humbertodias/java-mockito-demo
bdd junit mockito
Last synced: about 10 hours ago
JSON representation
Java Behaviour Driven Development with Mockito
- Host: GitHub
- URL: https://github.com/humbertodias/java-mockito-demo
- Owner: humbertodias
- Created: 2017-06-06T08:39:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T09:38:42.000Z (over 7 years ago)
- Last Synced: 2025-01-10T18:19:59.199Z (3 days ago)
- Topics: bdd, junit, mockito
- Language: Java
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BDD Mockito
Java Behaviour Driven Development with Mockito
# Prerequisites
1. [Java](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) 8+
2. [Maven](https://maven.apache.org) 3+# How to run
Clone
```
git clone https://github.com/humbertodias/java-mockito-demo
```Inside
```
cd java-mockito-demo
```Run
```
mvn test
```Output
```
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running MathApplicationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.468 secResults :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.586 s
[INFO] Finished at: 2017-06-06T11:36:48+02:00
[INFO] Final Memory: 15M/212M
[INFO] ------------------------------------------------------------------------
```# References
[Mockito - Behavior Driven Development](https://www.tutorialspoint.com/mockito/mockito_bdd.htm)