Tag Archives: JUnit

IntentFilterTest 유틸리티 클래스

지난 포스트에서 언급한 IntentFilterTest 유틸리티 클래스는 Intent-filter 와 Activity 의 맵을 테스트하기 위한 목적으로 만든 것이다. 테스트 코드를 쉽게 읽을 수 있도록 activitiesFor() 와 shouldInclude/shouldNotInclude 메소드도 추가했다. 우리가 찾으려는 Activity 클래스를 List<ResolveInfo>에서 찾아내는 코드는 다음과 같다. public boolean match(ResolveInfo other) … Continue reading

Posted in TDD, 기타 | Tagged , , , | 1 Comment

JUnit이 성공한 이유는 simple했기 때문

InfoQ에서 Erich Gamma의 인터뷰 기사를 보면 JUnit 이야기가 잠깜 나온다. Kent Beck과 함께 JUnit을 처음 만들던 당시의 에피소드를 이야기하면서 Erich이 몇번이나 강조한 것은 simple이다. I think the key was it makes writing tests as simple as writing this debug statement. … Continue reading

Posted in TDD, 기타 | Tagged , , | 1 Comment