Created
May 30, 2014 18:44
-
-
Save seamusv/20b3e683d2a4fa4f7a65 to your computer and use it in GitHub Desktop.
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
package cs | |
import fixtures.Lookup.ReferenceDataBuilder | |
import org.scalatest._ | |
import com.wattex.api._ | |
import org.joda.time.LocalDate | |
import com.wattex.persistence.data.LookupData._ | |
class TradesSpec extends FlatSpec with CompanyA { | |
"A something does" should "do blah" in { | |
println(referenceData(SessionId("1"), 1, new LocalDate(2014, 7, 7))) | |
assert(true) | |
} | |
} | |
trait CompanyA extends BeforeAndAfterEach with ReferenceDataBuilder { this: Suite => | |
override def beforeEach() { | |
try super.beforeEach() | |
add(Company(CompanyId("1"), "ABC Company", "ABC")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment