You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the superclass needs to tearDown something, it is good practice to call it. This method is called last in case the current class is relying on something that might be nulled out or cleaned up in the superclass.
(이때 super.tearDown은 XCTest의 tearDown)
super.tearDown()은 XCTestCase superclass가 tearDown해야할 때 쓰는 메서드.
현재 클래스가 super class에서 null이 되거나 지워질 수 있는 무언가에 의존하고 있을 때 해당 슈퍼 메서드는 마지막에 불려야함
제목
super.tearDown() 호출 순서
궁금한점
tearDown은 왜 항상 super method를 마지막에 호출해야할까?
찾아본 것
https://coderanch.com/t/445846/engineering/super-teardown
If the superclass needs to tearDown something, it is good practice to call it. This method is called last in case the current class is relying on something that might be nulled out or cleaned up in the superclass.
(이때 super.tearDown은 XCTest의 tearDown)
super.tearDown()은 XCTestCase superclass가 tearDown해야할 때 쓰는 메서드.
현재 클래스가 super class에서 null이 되거나 지워질 수 있는 무언가에 의존하고 있을 때 해당 슈퍼 메서드는 마지막에 불려야함
https://stackoverflow.com/questions/53448538/xcode-10-and-super-teardown
The text was updated successfully, but these errors were encountered: