Skip to content

Instantly share code, notes, and snippets.

@Centaur
Created March 22, 2012 05:32
Show Gist options
  • Save Centaur/2156401 to your computer and use it in GitHub Desktop.
Save Centaur/2156401 to your computer and use it in GitHub Desktop.
scala dsl demo
class ShhConsumeTest extends Logging with FunSuite{
val pos = new ShhVirtualPos("192.168.1.14", 5960, "206290010320001", "20000005")
var card = Card("9444443228739457375", "954000")
test("send") {
assert(pos.签到.result === OK)
val 消费交易 = card 在 pos 消费 Money(9.63)
assert(消费交易.result === OK)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment