Junit Rdeis No tests found matching 单机版安装
redis安装(SecureCRT工具上传redis 3.0.0) 1.mkdir redis 创建文件夹
2.tar –zxvf redis-3.0.0.tar.gz –C /redis/ 解压到redis文件夹
3.make 编译
4.Make PREFIX=/redis/6379 install 安装
5.cp redis.conf /redis/6379 复制配置文件
6.redis后台启动:前提条件需要修改redis.conf配置文件中的daemonize no(默认) 改为yes
1.vim redis.conf
2.按I键进行修改
3./deemonize(搜索)
4.daemonize yes
5.按esc键
6.输入:wq保存并退出
7. ./bin/redis-server redis.conf 启动redis后台
8. ./bin/redis-cli连接客户端
正常 默认端口为6379
查看: keys *
------------------------------------------------------------------------------------------------------------
redis:设置ID值。
127.0.0.1:6379> set pno 1000 //设置值
OK
127.0.0.1:6379> get pno //获取值
"1000"
127.0.0.1:6379> incr pno //增加值默认1
(integer) 1001
127.0.0.1:6379> get pno//获取值
"1001"
127.0.0.1:6379> decr pno//删除增加的值
(integer) 1000
127.0.0.1:6379> get pno//获取原始值
"1000"
127.0.0.1:6379> incrby pno 5//增量5
(integer) 1005
127.0.0.1:6379> get pno//获取
"1005"
127.0.0.1:6379> decrby pno 5//删除
(integer) 1000
127.0.0.1:6379>
异常:
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testRedis], {ExactMatcher:fDisplayName=testRedis(cn.itcast.TestRedis)], {LeadingIdentifierMatcher:fClassName=cn.itcast.TestRedis,fLeadingIdentifier=testRedis]] from org.junit.internal.requests.ClassRequest@1985b723
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createFilteredTest(JUnit4TestLoader.java:77)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:68)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:43)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
源码: package cn.itcast; import org.junit.Test;
import redis.clients.jedis.Jedis; public class TestRedis { @Test
public void testRedis(){ Jedis jedis = new Jedis("192.168.200.128",6379); Long pno = jedis.incr("pno");
System.out.println(pno);
jedis.close(); }
}
问题是在方法上未抛出。异常 throws Exception就好了。
Junit Rdeis No tests found matching 单机版安装的更多相关文章
- junit调试(No tests found matching )
使用junit调试程序时报错:initializationError(org.junit.runner.manipulation.Filter)java.lang.Exception: No test ...
- Junit很少出现的一个问题 No tests found matching ...
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=test2], {ExactMatcher:fDisp ...
- java.lang.Exception: No tests found matching Method tes(com.bw.test.Testrefiect) from org.junit.vintage.engine.descriptor.RunnerRequest@3bfdc050 at org.junit.internal.requests.FilterRequest.getRunner
junit 方法 没有加上注解 @Test java.lang.Exception: No tests found matching Method tes(com.bw.test.Testre ...
- 谈一谈JUnit神奇的报错 java.lang.Exception:No tests found matching
最近在学习Spring+SpringMVC+MyBatis,一个人的挖掘过程确实有点艰难,尤其是有一些神奇的报错让你会很蛋疼.特别是接触一些框架还是最新版本的时候,会因为版本问题出现很多错误,欢迎大家 ...
- junit test 报错,java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=esopCreateTest],
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=esopCreateTest], {ExactMatc ...
- java.lang.Exception: No tests found matching(Junit测试异常)
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=save], {ExactMatcher:fDispl ...
- 错误:java.lang.Exception: No tests found matching Method testPrePage1(egou_manager_web.TestEBrand) from org.junit.internal.requests.ClassRequest@4f3cc73c
今天测试分页时出现以下错误: java.lang.Exception: No tests found matching Method testPrePage1(egou_manager_web.Tes ...
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=test]解决办法
在进行简单的Junit单元测试时,测试一直报错: 先来看一下我的单元测试类: import org.junit.Test; import org.junit.runner.RunWith; impor ...
- 测试--错误java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=select], {ExactMatcher:fDisplayName=select(com.rjj.demo.DemoApplicationTests)]...
异常这个错误java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=select], {ExactMatche ...
随机推荐
- Delphi中如何进行BASE64解码
//方法1: uses EncdDecd; Memo2.Text:=UTF8Decode( DecodeString(Memo1.Text)); //方法2: // 使用控件 Memo2.Text:= ...
- oracle--合并行数据(拼接字符串),获取查询数据的前3条数据...
--标准函数Lpad 可以实现左补零,但是如果多于需要长度,则会截断字符串 SELECT LPAD ('1' , 3 , '0') FROM DUAL -- return 001 情况一:需要补零. ...
- Azure ARM (18) 将Azure RM Manage Disk托管磁盘的Image,跨订阅迁移
<Windows Azure Platform 系列文章目录> 先挖一个坑,以后再埋. 最近遇到一个客户需求,客户使用了Azure RM Manage Disk托管磁盘,然后捕获镜像做成了 ...
- apk重签名方法
转载(http://www.51testing.com/?uid-115892-action-viewspace-itemid-223023) 1. 生成Android APK包签名证书 1 ...
- PAT 乙级 1026 程序运行时间(15) C++版
1026. 程序运行时间(15) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue 要获得一个C语言程序的运行时间, ...
- ES6基础一
声明方式 var和let的区别 1,var用来声明全局变量,let用来声明局部变量: 2,var可以提升变量,let声明的变量不在变量提升: const声明常 ...
- jQuery绑定和解绑点击事件及重复绑定解决办法
原文地址:http://www.111cn.net/wy/jquery/47597.htm 绑点击事件这个是jquery一个常用的功能,如click,unbind等等这些事件绑定事情,但还有很多朋友不 ...
- go语言学习--指针的理解
Go 的原生数据类型可以分为基本类型和高级类型,基本类型主要包含 string, bool, int 及 float 系列,高级类型包含 struct,array/slice,map,chan, fu ...
- centos7图形化界面安装后,意外出现Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]
安装完成centos7-GUI后出现如下提示: nitial setup of CentOS Linux (core) ) [x] Creat user ) [!] License informati ...
- Fibonacci数列的两种实现方式
斐波那契数列的形式为:1,1,2,3,5,8,13,21......从第三项开始,后面的每一项都是前面两项的和. 实现的方式有一下 两种: 一:递归方式实现 def fib(n): if n < ...