![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Scala
ECHO_FOLLOW_HEART
这个作者很懒,什么都没留下…
展开
-
Mocking
MockingEasyMock 先定义一个特质package com.oreilly.testingscalatrait DAO { def persist[T](t: T)} 使用EasyMock的静态方法createMock创建DAO的mockpackage com.oreilly.testingscalaimport org.scalatest.matchers.M原创 2015-09-12 10:42:41 · 1046 阅读 · 0 评论 -
Scala中的测试
匹配器简单匹配器val list = 2::4::5::Nillist.size should be (3)字符串匹配器val str = """I fell into a burning ring of fire. I went down, down, down and the flames went higher"""string should startWith("I fell")str原创 2015-09-11 10:55:48 · 792 阅读 · 0 评论