From ff49cd6c9079264e04d2efa85b03a024d0e00cca Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 21 Nov 2018 23:19:32 +0100 Subject: feat: Add consistent exception handling in actor systems This change makes exception handling in actor systems consistent. Implementors should not propagate unhandled exceptions in actors to the (one of the) threads running the engine, but instead should stop the offending actor and continue running. Supervision of actors should be implemented within actor behavior instead. Since BehaviorInterpreter will propagate exceptions thrown by an actor, consumers of that API can use it to catch unhandled exceptions in an actor. --- odcsim-core/build.gradle | 1 + 1 file changed, 1 insertion(+) (limited to 'odcsim-core/build.gradle') diff --git a/odcsim-core/build.gradle b/odcsim-core/build.gradle index 3ae40a0d..e4e61296 100644 --- a/odcsim-core/build.gradle +++ b/odcsim-core/build.gradle @@ -37,6 +37,7 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_jupiter_version" testImplementation "org.junit.platform:junit-platform-launcher:$junit_platform_version" + testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0" } /* Create configuration for test suite used by implementors */ -- cgit v1.2.3