JUnit 测试框架 Zohhak

码农软件 · 软件分类 · 单元测试工具 · 2019-11-18 22:42:24

软件介绍

Zohhak - JUnit Parameterized ,Zohhak是一个参数化的 JUnit 测试框架,JUnit 自带的对参数化测试的支持是他非常大的一个软肋,前一段时间也曾经有一个叫做 JUnit Params 的软件试图来解决这个问题,而Zohhak是另外一个强大的参数化测试框架。

让我们来看一段代码,体验一下Zohhak的强大之处:

@TestWith({
    "clerk,      45'000 USD, GOLD",
    "supervisor, 60'000 GBP, PLATINUM"
})
public void canAcceptDebit(Employee employee, Money money, ClientType clientType) {
    assertTrue(   employee.canAcceptDebit(money, clientType)   );
}

两个官方文档:

这里有一篇文章详细的介绍了Zohhak的特性:点击查看

本文地址:https://codercto.com/soft/d/19295.html

Operating Systems

Operating Systems

Remzi Arpaci-Dusseau、Andrea Arpaci-Dusseau / Arpaci-Dusseau Books / 2012-8-19 / USD 21.00

A book about modern operating systems. Topics are broken down into three major conceptual pieces: Virtualization, Concurrency, and Persistence. Includes all major components of modern systems includin......一起来看看 《Operating Systems》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具