• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 應用設計模式編寫易于單元測試的代碼[5]

    發表于:2010-03-15來源:作者:點擊數: 標簽:代碼單元應用模式編寫
    應用設計模式編寫易于單元測試的代碼[5] 單元測試工具 public Object getInstance() { try{ return this.getInstanceMethod.invoke(null); } catch (InvocationTargetException e) { if( e.getCause() instanceof RuntimeException ) throw (RuntimeExceptio

      應用設計模式編寫易于單元測試的代碼[5]   單元測試工具 

          public Object getInstance() {

      try{

      return this.getInstanceMethod.invoke(null);

      } catch (InvocationTargetException e) {

      if( e.getCause() instanceof RuntimeException )

      throw (RuntimeException)e.getCause();

      throw new IllegalArgumentException(

      "Method [" +this.getInstanceMethod

      + "] has thrown an checked exception.", e);

      } catch( IllegalAclearcase/" target="_blank" >ccessException e) {

      throw new IllegalArgumentException(

      "Illegal access to method ["

      +this.getInstanceMethod + "].", e);

      }

      }

      public Method getGetInstanceMethod() { 軟件測試

      return this.getInstanceMethod;

      }

      }

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>