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 #326

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 #326 (aa735bb) into master (9e31bf0) will decrease coverage by 0.00%. The diff coverage is 96.42%.

:exclamation: Current head aa735bb differs from pull request most recent head a3072ed. Consider uploading reports for the commit a3072ed to get more accurate results Impacted file tree graph

@@             Coverage Diff              @@
##             master     #326      +/-   ##
============================================
- Coverage     99.43%   99.43%   -0.01%     
+ Complexity      645      644       -1     
============================================
  Files           161      160       -1     
  Lines          1414     1411       -3     
  Branches         73       73              
============================================
- Hits           1406     1403       -3     
  Misses            8        8              
Impacted Files Coverage Δ
...ing/src/main/java/org/dmfs/jems2/mockito/Mock.java 96.42% <96.42%> (ø)
src/main/java/org/dmfs/jems2/fragile/Mapped.java 100.00% <0.00%> (ø)
src/main/java/org/dmfs/jems2/fragile/NonNull.java

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 9e31bf0...a3072ed. Read the comment docs.

dmfs commented 3 years ago

Already done months ago :rofl: