Scala治具 用于scala的简单夹具 安装 libraryDependencies + = " com.github.tototoshi " %% " scala-fixture " % " 0.4.1 " 用法 package com . github . tototoshi . fixture import org . scalatest .{ BeforeAndAfter , FunSuite } import com . github . tototoshi . fixture . _ class FixtureTest extends FunSuite with BeforeAndAfter { val driver = " org.h2.Driver " val url = " jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 " val