Advanced Search
    TU Yongzhong, SHAO Chenxi, CAI Weide, HU Xiangdong. Shadow Pattern: A New Design Pattern for TestingJ. Journal of Computer Research and Development, 2004, 41(1): 34-40.
    Citation: TU Yongzhong, SHAO Chenxi, CAI Weide, HU Xiangdong. Shadow Pattern: A New Design Pattern for TestingJ. Journal of Computer Research and Development, 2004, 41(1): 34-40.

    Shadow Pattern: A New Design Pattern for Testing

    • Introduced in this paper is a new design pattern: a shadow for testing object-oriented programs. This pattern creates a shadow object for each object using it. By using this pattern, no additional test driver or test stub is needed. Thus, the pattern allows test scripts to be embedded in the program seamlessly. During testing, the test case can either call the shadow object as test stub or call the actual application code. The test script can make its decision at runtime to select which one to use. These ideas are illustrated in module testing and integration testing.
    • loading

    Catalog

      Turn off MathJax
      Article Contents

      /

      DownLoad:  Full-Size Img  PowerPoint
      Return
      Return