Scala Design Patterns.
上QQ阅读APP看书,第一时间看更新

Mixing the trait in

We can test a trait by mixing it in. There are a few places where we can do this—into a test class or into separate test cases.