Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f9cfa73457
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (27 sloc) 1.014 kb
import com.ats.test.RequiresSpringContextApplication
import org.scalatest.{BeforeAndAfterAll, GivenWhenThen, FeatureSpec}
import org.springframework.context.annotation.AnnotationConfigApplicationContext
/**
* Created by chapamu on 6/13/13.
*/
/**
* a) Should be able to send order and check the response
*
*
*/
class TwsOrderSystemSpecs extends FeatureSpec with GivenWhenThen with RequiresSpringContextApplication with BeforeAndAfterAll {
var context: AnnotationConfigApplicationContext = _
feature("System can place order") {
scenario("System places a order to BUY STOCK") {
Given("The Broker is TWS")
Given("The STOCK to buy BAC and quantity 100")
//(pending)
When("placing order ")
//(pending)
Then("OrderSystem should receive message to BUY the specified stcok")
And("Tws Should receive message")
And("The order message should be for buying STOCK,BAC and Qty 100, Exchnage US")
And("Tws Should send back suceess msg")
}
}
}
Jump to Line
Something went wrong with that request. Please try again.