`
beyondbn
  • 浏览: 71434 次
社区版块
存档分类
最新评论

参数是 对象的数组的JUnit

 
阅读更多

正确的JUnit方法:

 

String str1 = null;

String str2 = null;

 

ArrObject arr = new ArrObject();

ArrObject [] arrObject = { arr };

 

private test(str1,str2,arrObject)....

 

======================

 

错误的 JUnit 方法:

 


String str1 = null;

String str2 = null;

 


ArrObject [] arrObject = null;       X

 

private test(str1,str2,arrObject)....

 

分享到:
评论

相关推荐

    廖雪峰 Java 教程.doc

    廖雪峰 Java 教程 Java教程 Java快速入门 Java简介 安装JDK 第一个Java程序 ...数组类型 ...数组操作 ...数组排序 ...多维数组 ...命令行参数 ...编写JUnit测试 使用Fixture 异常测试 条件测试 参数化测试

    重构 改善既有代码的设计

     Introduce Parameter Object 引入参数对象   Remove Setting Method 去除设置方法   Hide Method 隐藏方法   Replace Constructor with Factory Method 用工厂方法代替构造器   Encapsulate Downcast ...

    重构_改善既有代码的设计[高清版]中文版

     Introduce Parameter Object 引入参数对象   Remove Setting Method 去除设置方法   Hide Method 隐藏方法   Replace Constructor with Factory Method 用工厂方法代替构造器   Encapsulate Downcast ...

    重构-改善既有代码的设计+中文版

     Introduce Parameter Object 引入参数对象   Remove Setting Method 去除设置方法   Hide Method 隐藏方法   Replace Constructor with Factory Method 用工厂方法代替构造器   Encapsulate Downcast 封装...

    重构——改善既有代码的设计

     Introduce Parameter Object 引入参数对象   Remove Setting Method 去除设置方法   Hide Method 隐藏方法   Replace Constructor with Factory Method 用工厂方法代替构造器   Encapsulate Downcast 封装...

    重构-改善既有代码的设计(中文版)

     Introduce Parameter Object 引入参数对象   Remove Setting Method 去除设置方法   Hide Method 隐藏方法   Replace Constructor with Factory Method 用工厂方法代替构造器   Encapsulate Downcast 封装...

    重构,改善既有代码的设计

     Introduce Parameter Object 引入参数对象   Remove Setting Method 去除设置方法   Hide Method 隐藏方法   Replace Constructor with Factory Method 用工厂方法代替构造器   Encapsulate Downcast ...

    重构_改善既有代码的设计

     10.9 IntroduceParameterObject(引入参数对象)295  10.10 RemoveSettingMethod(移除设值函数)300  10.11 HideMethod(隐藏函数)303  10.12 ReplaceConstructorwithFactoryMethod(以工厂函数取代构造函数...

    重构:改善既有代码的设计(中文版).

    10.9 IntroduceParameterObject(引入参数对象)295 10.10 RemoveSettingMethod(移除设值函数)300 10.11 HideMethod(隐藏函数)303 10.12 ReplaceConstructorwithFactoryMethod(以工厂函数取代构造函数)304 ...

    重构_改善既有代码的设计.pdf

    10.9 IntroduceParameterObject(引入参数对象)295 10.10 RemoveSettingMethod(移除设值函数)300 10.11 HideMethod(隐藏函数)303 10.12 ReplaceConstructorwithFactoryMethod(以工厂函数取代构造函数)304 ...

    重构:改善既有代码的设计(中文高清版)

    10.9 IntroduceParameterObject(引入参数对象)295 10.10 RemoveSettingMethod(移除设值函数)300 10.11 HideMethod(隐藏函数)303 10.12 ReplaceConstructorwithFactoryMethod(以工厂函数取代构造函数)304 ...

    重构-改善既有代码的设计

     10.9 IntroduceParameterObject(引入参数对象)295  10.10 RemoveSettingMethod(移除设值函数)300  10.11 HideMethod(隐藏函数)303  10.12 ReplaceConstructorwithFactoryMethod(以工厂函数取代构造函数...

    重建——改善既有代码的设计

    10.9 IntroduceParameterObject(引入参数对象)295 10.10 RemoveSettingMethod(移除设值函数)300 10.11 HideMethod(隐藏函数)303 10.12 ReplaceConstructorwithFactoryMethod(以工厂函数取代构造函数)304 ...

    《重构改善既有代码的设计(2010年版)》(Martin Fowler[美] 著,熊节 译)

    10.9 IntroduceParameterObject(引入参数对象)295 10.10 RemoveSettingMethod(移除设值函数)300 10.11 HideMethod(隐藏函数)303 10.12 ReplaceConstructorwithFactoryMethod(以工厂函数取代构造函数)304 ...

    重构-改善既有代码的设计 中文版.pdf

    10.9 Introduce Parameter Object(引入参数对象) 10.10 Remove Setting Method(移除设值函数) 10.11 Hide Method(隐藏你的函数) 10.12 Replace Co tructor with Factory Method(以工厂方法取代构造函数) ...

    重构-改善既有代码的设计 中文版

    10.9 Introduce Parameter Object(引入参数对象) 10.10 Remove Setting Method(移除设值函数) 10.11 Hide Method(隐藏你的函数) 10.12 Replace Co tructor with Factory Method(以工厂方法取代构造函数) ...

    重构:改善既有代码的设计.[美]Martin Fowler.epub【文字版手机格式】

    10.9 Introduce Parameter Object(引入参数对象) 10.10 Remove Setting Method(移除设值函数) 10.11 Hide Method(隐藏函数) 10.12 Replace Constructor with Factory Method(以工厂函数取代构造函数) 10.13 ...

    代码之美(中文完整版).pdf

    9.13. 数组和对象字面量 9.14. 要做和要思考的事 第 10章 追求加速的种群计数 10.1. 基本方法 10.2. 分治法 10.3. 其他方法 10.4. 两个字种群计数的和与差 10.5. 两个字的种群计数比较 10.6. 数组中的1位种群计数 ...

Global site tag (gtag.js) - Google Analytics