JUnit为我们提供了一些辅助函数,他们用来帮助我们确定被测试的方法是否按照预期的效果正常工作,通常,把这些辅助函数称为断言。下面我们来介绍一下JUnit的各种断言。
1、assertEquals
函数原型1:assertEquals([String message],expected,actual)
参数说明:
message是个可选的消息,假如提供,将...
分类:
编程语言 时间:
2015-02-11 14:36:20
阅读次数:
165
Error: /home/y/my_note/nodejs/myapp/views/index.jade:20 18| -list=[{name:'zhangsan',age:25,email:'zhangsan@123.com'}] 19| -e...
分类:
系统相关 时间:
2015-02-09 15:50:24
阅读次数:
1284
使用MJRefresh刷新,导入工程中,爆出:Too many arguments to function call ,expected 0,have3
解决方法:Build Setting--> Apple LLVM 6.0 - Preprocessing--> Enable Strict Checking of objc_msgSend Calls YES改为 NO...
分类:
其他好文 时间:
2015-02-05 13:38:42
阅读次数:
182
安装了高版本OS X 之后无法使用MacPorts的port命令pod update提示:Current platform "darwin 14" does not match expected platform "darwin 13"需要下载MacPorts源码编译安装,方法如下:来自https:...
分类:
系统相关 时间:
2015-02-03 22:46:17
阅读次数:
962
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Statement returned more than one row, whe...
分类:
其他好文 时间:
2015-01-27 21:34:41
阅读次数:
807
package com.bank.service;import java.io.IOException;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.conf.Configured;import org.ap...
分类:
其他好文 时间:
2015-01-26 00:03:24
阅读次数:
331
错误代码:objc_msgSend(self.beginRefreshingTaget, self.beginRefreshingAction, self);解决方案:选中项目 - Project - Build Settings -ENABLE_STRICT_OBJC_MSGSEND 将其设置为 ...
分类:
其他好文 时间:
2015-01-25 23:56:04
阅读次数:
175
在写一个模型转换工具类的时候,用到,在Xcode6中,objc_msgSend 这个方法会报错错误代码:objc_msgSend(self, selector, value);错误信息 :Too many arguments to function call, expected 0, have 3解...
分类:
其他好文 时间:
2015-01-25 23:55:54
阅读次数:
157
前言
之前已经在MacOS下搭建好了OpenWrt的编译环境,没想到更新到最新的官方Trunk之后,噩梦就此开始。现将思考过程以及应对方法做个记录。
背景知识
OpenWrt推荐用MacPorts来搭建MacOS中的相关工具。MacOS自带了gcc,版本信息如下:
Configured with: --prefix=/Applications/Xcode.app/Contents/...
分类:
系统相关 时间:
2015-01-24 21:28:33
阅读次数:
359
ERROR [42601] [IBM][DB2/LINUXX8664] SQL0104N An unexpected token "insert" was found following "". Expected tokens may include: "".这种情况是存储过程语法报错,解决方法是注...
分类:
数据库 时间:
2015-01-22 10:54:53
阅读次数:
1335