Skip to content

v0.4.0

Compare
Choose a tag to compare
@fmonniot fmonniot released this 13 Oct 14:28
· 146 commits to main since this release
b7205c5

What's Changed

  • Scala3mock now uses the first public constructor found when building a mock type. If no public constructors are found, it emit an error to let you know it can't mock this type.
  • The default value handling for mocked val and constructor call is now using the Default type class. That means we can more easily add support for specific types that we know don't work well when nulled by default (like OutputStream which is checked by quite a few Java constructors).

PRs

  • Use public constructor & Default type class for default values by @fmonniot in #16

Full Changelog: v0.3.2...v0.4.0