Skip to content

Instantly share code, notes, and snippets.

@seamusv
Created May 30, 2014 18:44
Show Gist options
  • Save seamusv/20b3e683d2a4fa4f7a65 to your computer and use it in GitHub Desktop.
Save seamusv/20b3e683d2a4fa4f7a65 to your computer and use it in GitHub Desktop.
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