Last active
February 24, 2017 12:01
-
-
Save mkows/64dd3f4e34a04539f4c506f73a478174 to your computer and use it in GitHub Desktop.
IntelliJ Scala Flat Spec Template (also with fixture)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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