AKKA를 학습하기위해서는, 자신에게 맞는 유닛테스트 가능한 구조를 설계하는것이 중요합니다.
의존성이 없는 유니테스트 구성
public class ActorBase { protected final Logger log = LoggerFactory.getLogger(this.getClass()); public void runAll() { } protected ActorSystem system; protected SpringExtension ext; public ActorSystem getSystem() { return system; } public void setSystem(ActorSystem system) { this.system = system; } public SpringExtension getExt() { return ext; } public void setExt(SpringExtension ext) { this.ext = ext; } }
JUNIT을 활용하여 구조적인 Unit테스트 환경만들기
동시성 처리 가능 유닛테스트 이해하기
일반적 Junit의 UnitTest기는 단일항목 블락킹처리만 가능하며, 실시간으로 처리되고 적재되는 메시지를 검증할수 있는 새로운
방법이 필요합니다.
참고: 00.UnitTest