This file contains hidden or 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
package com.zuchos.pizzeria | |
import com.zuchos.pizzeria.PizzaOrderingService.Composition.PredefinedComposition | |
import com.zuchos.pizzeria.PizzaOrderingService.{Composition, CompositionId, Crust, Size} | |
import com.zuchos.pizzeria.PizzaOrderingService.OrderedItem.Pizza | |
import org.scalatest.{EitherValues, FlatSpec, Matchers} | |
import org.scalatest.concurrent.{Eventually, IntegrationPatience, ScalaFutures} | |
class PizzaOrderingServiceSpec extends FlatSpec with ScalaFutures with EitherValues with Eventually with Matchers with IntegrationPatience { |
This file contains hidden or 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
scenario-name: "Lukasz orders XL margarita on crust with chees to his default addrress" | |
given { | |
users: [{name: "Lukasz", address: {line1: "Elm Street", line1:"12", city: "Warsaw"}}] | |
funds: [{user: "Lukasz", funds: "200.00"}] | |
} | |
when { | |
make-orders: [ | |
{ | |
order-name: "Lukasz's 1st order", user: "Lukasz", items: { |
This file contains hidden or 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
import akka.actor.testkit.typed.scaladsl.ActorTestKit | |
import akka.stream.scaladsl.{Sink, Source} | |
import org.scalatest.flatspec.AnyFlatSpecLike | |
import scala.concurrent.Future | |
//akka 2.6.5 | |
//zio 1.0.3.5-RC | |
class PublisherTest extends AnyFlatSpecLike { |
OlderNewer