Created
May 13, 2016 06:43
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
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