From 783a021a1cb6641d0494067b44fdc02f41630493 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 28 Oct 2018 16:08:22 +0100 Subject: test: Create initial test suite for API This change creates the initial conformance test suite for the API design and tries to specify most of the requirements and assumptions made for implementors. --- odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'odcsim-core/src/main') diff --git a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt index 5a16c4d1..4dea9897 100644 --- a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt +++ b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt @@ -43,11 +43,11 @@ interface ActorContext { /** * Spawn a child actor from the given [Behavior] and with the specified name. * - * @param name The name of the child actor to spawn. * @param behavior The behavior of the child actor to spawn. + * @param name The name of the child actor to spawn. * @return A reference to the child that has/will be spawned. */ - fun spawn(name: String, behavior: Behavior): ActorRef + fun spawn(behavior: Behavior, name: String): ActorRef /** * Request the specified child actor to be stopped in asynchronous fashion. @@ -55,5 +55,5 @@ interface ActorContext { * @param child The reference to the child actor to stop. * @return `true` if the ref points to a child actor, otherwise `false`. */ - fun stop(child: ActorRef): Boolean + fun stop(child: ActorRef<*>): Boolean } -- cgit v1.2.3