Skip to content

Instantly share code, notes, and snippets.

@mkows
Last active February 24, 2017 12:01
Show Gist options
  • Save mkows/64dd3f4e34a04539f4c506f73a478174 to your computer and use it in GitHub Desktop.
Save mkows/64dd3f4e34a04539f4c506f73a478174 to your computer and use it in GitHub Desktop.
IntelliJ Scala Flat Spec Template (also with fixture)
#if ((${PACKAGE_NAME} && ${PACKAGE_NAME} != ""))package ${PACKAGE_NAME} #end
import org.mockito.Matchers.{any, eq => eqq}
import org.mockito.Mockito.{verify, when}
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.mock.MockitoSugar
import org.scalatest.{FlatSpec, Matchers}
import scala.language.reflectiveCalls
#set($NAME_WITHOUT_SUFFIX4 = $NAME.length() - 4)
class ${NAME} extends FlatSpec with Matchers with ScalaFutures with MockitoSugar {
def fixture = new {
}
"${NAME.substring(0, $NAME_WITHOUT_SUFFIX4)}" should "_" in {
val f = fixture
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment