dmfs / jems

Java gems, a collection of Java utilities.
Apache License 2.0
5 stars 2 forks source link

Add method to create mocks in an expression #318 #319

Closed dmfs closed 3 years ago

dmfs commented 3 years ago

This commit adds means to create simple mocks in a single expression, similar to how Mockito works in Kotlin.

codecov[bot] commented 3 years ago

Codecov Report

Merging #319 (f9d3f3c) into master (15e1e12) will decrease coverage by 0.06%. The diff coverage is 96.42%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #319      +/-   ##
============================================
- Coverage     99.49%   99.43%   -0.07%     
- Complexity      633      644      +11     
============================================
  Files           159      160       +1     
  Lines          1383     1411      +28     
  Branches         73       73              
============================================
+ Hits           1376     1403      +27     
- Misses            7        8       +1     
Impacted Files Coverage Δ
...ing/src/main/java/org/dmfs/jems2/mockito/Mock.java 96.42% <96.42%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 15e1e12...f9d3f3c. Read the comment docs.