Skip to content

Instantly share code, notes, and snippets.

@mkows
Last active February 24, 2017 11:53
Show Gist options
  • Save mkows/3aca7ed6fca9757a0662d8c000091451 to your computer and use it in GitHub Desktop.
Save mkows/3aca7ed6fca9757a0662d8c000091451 to your computer and use it in GitHub Desktop.
IntelliJ Scala Flat Spec Template (with Matchers, Futures, Mockito)
#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}
#set($NAME_WITHOUT_SUFFIX4 = $NAME.length() - 4)
class ${NAME} extends FlatSpec with Matchers with ScalaFutures with MockitoSugar {
"${NAME.substring(0, $NAME_WITHOUT_SUFFIX4)}" should "_" in {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment