반응형

스텁한다 =>

사전에 정의된 반응으로 동작하게한다.

 

 

스텁은 사전 정의 된 데이터를 보유하고 테스트 중에 호출에 응답하는 데 사용하는 객체입니다. 실제 데이터로 응답하거나 바람직하지 않은 부작용이있는 개체를 포함 할 수 없거나 포함하지 않으려는 경우에 사용됩니다.

 

 

 

 

 

출처

www.softwaretestingmagazine.com/knowledge/unit-testing-fakes-mocks-and-stubs/

 

Unit Testing: Fakes, Mocks and Stubs

When you perform unit testing, there are many situations where you don't have the full code or the right context that is needed to execute it. It might be that part of the code is not written yet or that you interact with an external system that is difficu

www.softwaretestingmagazine.com

 

반응형

'Java > Test Code' 카테고리의 다른 글

[Junit] Mockito이용하여 Static 클래스, 메서드 Mock하기  (1) 2021.01.19
TDD  (0) 2021.01.06
a  (0) 2020.12.31
[Junit] Junit 용어 정리  (0) 2020.12.30
[Junit] 객체의 생성을 Mocking하는 방법. (생성자를 Mocking하기)  (0) 2020.12.29