Skip to content

Commit

Permalink
Adjusts in test actors
Browse files Browse the repository at this point in the history
  • Loading branch information
sleipnir committed Jul 30, 2024
1 parent 334b532 commit d6a29f0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions src/test/java/io/eigr/spawn/AbstractContainerBaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
import io.eigr.spawn.test.actors.JoeActor;
import io.eigr.spawn.test.actors.StatelessNamedActor;
import io.eigr.spawn.test.actors.UnNamedActor;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import io.eigr.spawn.internal.ActionBindings;
import io.eigr.spawn.java.test.domain.Actor.Reply;
import io.eigr.spawn.java.test.domain.Actor.Request;
import io.eigr.spawn.java.test.domain.Actor.State;

import static io.eigr.spawn.api.actors.behaviors.ActorBehavior.action;
import static io.eigr.spawn.api.actors.behaviors.ActorBehavior.name;
Expand All @@ -24,10 +23,7 @@ public ActorBehavior configure(BehaviorCtx context) {
);
}

private Value setLanguage(ActorContext<State> context, Request msg) {
if (context.getState().isPresent()) {
}

private Value setLanguage(ActorContext<?> context, Request msg) {
return Value.at()
.response(Reply.newBuilder()
.setResponse(String.format("Hi %s. Hello From Java", msg.getLanguage()))
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/io/eigr/spawn/test/actors/UnNamedActor.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public ActorBehavior configure(BehaviorCtx context) {
}

private Value setLanguage(ActorContext<State> context, Request msg) {
if (context.getState().isPresent()) {
}

return Value.at()
.response(Reply.newBuilder()
.setResponse(String.format("Hi %s. Hello From Java", msg.getLanguage()))
Expand Down

0 comments on commit d6a29f0

Please sign in to comment.