six2six / fixture-factory

Generator fake objects from a template
Apache License 2.0
445 stars 88 forks source link

Include correct type of instance for all types of set trasform #98

Closed douglasmelo closed 7 years ago

douglasmelo commented 7 years ago

Using has(1).of(Type) when the type is a SortedSet, an java.lang.ClassCastException: Cannot cast java.util.HashSet to java.util.SortedSet is throw.

codecov-io commented 7 years ago

Codecov Report

Merging #98 into master will decrease coverage by 0.07%. The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #98      +/-   ##
============================================
- Coverage     84.67%   84.59%   -0.08%     
- Complexity      347      348       +1     
============================================
  Files            41       41              
  Lines           868      870       +2     
  Branches        148      148              
============================================
+ Hits            735      736       +1     
  Misses           92       92              
- Partials         41       42       +1
Impacted Files Coverage Δ Complexity Δ
...six/fixturefactory/transformer/SetTransformer.java 80% <66.66%> (-20%) 6 <2> (+1)
...2six/fixturefactory/function/impl/CpfFunction.java 90.47% <0%> (-4.77%) 4% <0%> (-1%)
...six/fixturefactory/function/impl/CnpjFunction.java 90.9% <0%> (-4.55%) 4% <0%> (-1%)
...m/six2six/fixturefactory/util/ReflectionUtils.java 72.27% <0%> (+1.98%) 37% <0%> (+2%) :arrow_up:

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 ccd3905...a55602a. Read the comment docs.