
Scala
ECHO_FOLLOW_HEART
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Mocking
MockingEasyMock 先定义一个特质package com.oreilly.testingscala trait DAO { def persist[T](t: T) } 使用EasyMock的静态方法createMock创建DAO的mockpackage com.oreilly.testingscala import org.scalatest.matchers.M原创 2015-09-12 10:42:41 · 1114 阅读 · 0 评论 -
Scala中的测试
匹配器简单匹配器val list = 2::4::5::Nil list.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 · 858 阅读 · 0 评论