Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 sec

Results :

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)