Skip to content

Instantly share code, notes, and snippets.

@pik94os
Created May 13, 2016 06:43
import models.{WareWithConfig, Ware}
import models.AttributeName
import services.exchange.wsdl.{Attribute=>WAttribute}
import org.specs2._
import specification._
import org.specs2.specification.BeforeAfter
import play.api.test.PlaySpecification
import scaldi.Injector
import services.BackendAttributeNameService
import services.WSDLService
import services.impl.WSDLServiceImpl
import util._
import scala.concurrent.duration._
import scala.concurrent.{Await, Future}
class BackendAttributeNameSpecc extends PlaySpecification with TestHelpers with scaldi.Injectable with BeforeAfter with BeforeAfterAll {
private lazy val WSDLService = inject[WSDLService]
"Article Service" should {
"correctly" in{
"save" in {
withFakeApp {
val attribute = randomAttributeName
val fromDB = BackendAttributeNameService.saveAttribute(article.getNumber).awaitResult
equalAttribute(article, fromDB)
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment