"check cassandra config" in {
  val config: Configuration = pureconfig.loadConfigOrThrow[Configuration]
  config.cassandra.hosts shouldBe List("192.168.26.207")
  config.cassandra.keyspace shouldBe "releases"
}

Why not to check works cassandra or not? What is the difference between this and hardcoding data right in source?

By Anonymous, 2019-05-07 18:28:04
val weekEnd = DateTime.now.withDayOfWeek(5).plusDays(2)
By Anonymous, 2017-12-22 13:55:37
maybeSomething match {
  case Some(x) => true
  case None => false
}

maybeSomething.getOrElse(false) Short code and readable

By Majid Hosseini, 2017-12-16 07:03:07