Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
j5ik2o committed Sep 11, 2018
1 parent 17b3091 commit e4d540e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ import java.time.ZonedDateTime
import com.github.j5ik2o.dddbase.example.model._
import com.github.j5ik2o.dddbase.example.repository.UserAccountRepository
import com.github.j5ik2o.dddbase.example.repository.UserAccountRepository.BySkinny
import com.github.j5ik2o.dddbase.example.repository.util.{FlywayWithMySQLSpecSupport, SkinnySpecSupport}
import com.github.j5ik2o.dddbase.example.repository.util.{ FlywayWithMySQLSpecSupport, SkinnySpecSupport }
import monix.execution.Scheduler.Implicits.global
import org.scalatest.{FreeSpecLike, Matchers}
import org.scalatest.{ FreeSpecLike, Matchers }
import scalikejdbc.AutoSession
import wvlet.airframe._

class AirframeSpec extends FreeSpecLike
with FlywayWithMySQLSpecSupport
with SkinnySpecSupport
with Matchers {
class AirframeSpec extends FreeSpecLike with FlywayWithMySQLSpecSupport with SkinnySpecSupport with Matchers {

override val tables: Seq[String] = Seq("user_account")

Expand All @@ -33,7 +30,7 @@ class AirframeSpec extends FreeSpecLike

"Airframe" - {
"store and resolveById" in {
design.withSession{ session =>
design.withSession { session =>
val repository = session.build[UserAccountRepository[BySkinny]]
val result = (for {
_ <- repository.store(userAccount)
Expand All @@ -44,6 +41,4 @@ class AirframeSpec extends FreeSpecLike
}
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import java.time.ZonedDateTime
import cats.free.Free
import com.github.j5ik2o.dddbase.example.model._
import com.github.j5ik2o.dddbase.example.repository.UserAccountRepository
import com.github.j5ik2o.dddbase.example.repository.util.{FlywayWithMySQLSpecSupport, SkinnySpecSupport}
import com.github.j5ik2o.dddbase.example.repository.util.{ FlywayWithMySQLSpecSupport, SkinnySpecSupport }
import monix.execution.Scheduler.Implicits.global
import org.scalatest.{FreeSpecLike, Matchers}
import org.scalatest.{ FreeSpecLike, Matchers }
import scalikejdbc.AutoSession

class UserAccountRepositoryByFreeSpec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.github.j5ik2o.reactive.memcached._
import monix.eval.Task
import monix.execution.Scheduler.Implicits.global
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.{FreeSpecLike, Matchers}
import org.scalatest.{ FreeSpecLike, Matchers }

import scala.concurrent.Await
import scala.concurrent.duration._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import com.github.j5ik2o.dddbase.example.repository.util.ScalaFuturesSupportSpec
import monix.eval.Task
import monix.execution.Scheduler.Implicits.global
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.{FreeSpec, Matchers}
import org.scalatest.{ FreeSpec, Matchers }

import scala.concurrent.duration._
import scala.concurrent.{Await, Future}
import scala.concurrent.{ Await, Future }

class UserAccountRepositoryOnMemorySpec extends FreeSpec with ScalaFutures with ScalaFuturesSupportSpec with Matchers {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import java.time.ZonedDateTime

import com.github.j5ik2o.dddbase.example.model._
import com.github.j5ik2o.dddbase.example.repository.UserAccountRepository
import com.github.j5ik2o.dddbase.example.repository.util.{FlywayWithMySQLSpecSupport, SkinnySpecSupport}
import com.github.j5ik2o.dddbase.example.repository.util.{ FlywayWithMySQLSpecSupport, SkinnySpecSupport }
import monix.execution.Scheduler.Implicits.global
import org.scalatest.{FreeSpecLike, Matchers}
import org.scalatest.{ FreeSpecLike, Matchers }
import scalikejdbc.AutoSession

class UserAccountRepositoryBySkinnySpec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import java.time.ZonedDateTime

import com.github.j5ik2o.dddbase.example.model._
import com.github.j5ik2o.dddbase.example.repository.UserAccountRepository
import com.github.j5ik2o.dddbase.example.repository.util.{FlywayWithMySQLSpecSupport, Slick3SpecSupport}
import com.github.j5ik2o.dddbase.example.repository.util.{ FlywayWithMySQLSpecSupport, Slick3SpecSupport }
import monix.execution.Scheduler.Implicits.global
import org.scalatest.{FreeSpecLike, Matchers}
import org.scalatest.{ FreeSpecLike, Matchers }

class UserAccountRepositoryBySlickSpec
extends FreeSpecLike
Expand Down

0 comments on commit e4d540e

Please sign in to comment.