Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

formatting chnages

  • Loading branch information...
commit f9cfa734574cbeae1a856a361b37d8d18164f6b8 1 parent f76b141
Chapalamadugu Muralikrishna authored
View
16 app/src/test/resources/log4j.properties
@@ -0,0 +1,16 @@
+log4j.rootLogger=DEBUG, stdout, R
+
+
+# Direct log messages to stdout
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c:%L - %m%n
+
+
+
+log4j.appender.R=org.apache.log4j.RollingFileAppender
+log4j.appender.R.File=test.log
+
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c:%L - %m%n
View
39 app/src/test/scala/TwsOrderSystemSpecs2.scala
@@ -0,0 +1,39 @@
+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 TwsOrderSystemSpecs2 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")
+
+ }
+
+ }
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.