Some drafts
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,16 @@
|
||||
com/example/Greeter$Greet.class
|
||||
com/example/AkkaQuickstart.class
|
||||
com/example/Greeter$Greeted.class
|
||||
com/example/GreeterMain$SayHello.class
|
||||
com/example/Greeter.class
|
||||
com/example/GreeterMain.class
|
||||
com/example/GreeterBot.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$PotReturned.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$Session.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$EnterPot.class
|
||||
dev/freireservices/social_altruism/chat/ChatQuickStart.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$SessionGranted.class
|
||||
dev/freireservices/social_altruism/chat/ChatQuickStart$Main.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$SharePotWithParticipants.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$MessagePosted.class
|
||||
dev/freireservices/social_altruism/chat/Participante.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$SessionEvent.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$SessionCommand.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$ParticipateInTurn.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$UpdatePlayerAfterTurn.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$RoomCommand.class
|
||||
dev/freireservices/social_altruism/chat/ChatPotProtocol$SessionDenied.class
|
||||
|
@ -1,4 +1,3 @@
|
||||
/Users/rdev/Source/social_altruism_akka/src/main/java/com/example/GreeterBot.java
|
||||
/Users/rdev/Source/social_altruism_akka/src/main/java/com/example/AkkaQuickstart.java
|
||||
/Users/rdev/Source/social_altruism_akka/src/main/java/com/example/Greeter.java
|
||||
/Users/rdev/Source/social_altruism_akka/src/main/java/com/example/GreeterMain.java
|
||||
/Users/rdev/Source/social_altruism_akka/src/main/java/dev/freireservices/social_altruism/chat/ChatQuickStart.java
|
||||
/Users/rdev/Source/social_altruism_akka/src/main/java/dev/freireservices/social_altruism/chat/ChatPotProtocol.java
|
||||
/Users/rdev/Source/social_altruism_akka/src/main/java/dev/freireservices/social_altruism/chat/Participante.java
|
||||
|
@ -1 +1 @@
|
||||
com/example/AkkaQuickstartTest.class
|
||||
dev/freireservices/social_altruism/chat/ChatQuickStartTest.class
|
||||
|
@ -1 +1 @@
|
||||
/Users/rdev/Source/social_altruism_akka/src/test/java/com/example/AkkaQuickstartTest.java
|
||||
/Users/rdev/Source/social_altruism_akka/src/test/java/dev/freireservices/social_altruism/chat/ChatQuickStartTest.java
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="dev.freireservices.social_altruism.ChatQuickStartTest" time="0.387" tests="1" errors="0" skipped="0" failures="0">
|
||||
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="dev.freireservices.social_altruism.chat.ChatQuickStartTest" time="0.387" tests="1" errors="0" skipped="0" failures="0">
|
||||
<properties>
|
||||
<property name="java.specification.version" value="21"/>
|
||||
<property name="sun.jnu.encoding" value="UTF-8"/>
|
||||
@ -59,7 +59,7 @@
|
||||
<property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
|
||||
<property name="java.class.version" value="65.0"/>
|
||||
</properties>
|
||||
<testcase name="testGreeterActorSendingOfGreeting" classname="dev.freireservices.social_altruism.ChatQuickStartTest" time="0.012">
|
||||
<testcase name="testGreeterActorSendingOfGreeting" classname="dev.freireservices.social_altruism.chat.ChatQuickStartTest" time="0.012">
|
||||
<system-out><![CDATA[[2023-12-19 12:33:17,437] [INFO] [akka.event.slf4j.Slf4jLogger] [AkkaQuickstartTest-akka.actor.default-dispatcher-3] [] - Slf4jLogger started
|
||||
[2023-12-19 12:33:17,477] [INFO] [dev.freireservices.social_altruism.Greeter] [AkkaQuickstartTest-akka.actor.default-dispatcher-3] [akka://AkkaQuickstartTest/user/greeter] - Hello Charles!
|
||||
]]></system-out>
|
||||
|
@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="dev.freireservices.social_altruism.chat.ChatQuickStartTest" time="1.155" tests="2" errors="0" skipped="0" failures="0">
|
||||
<properties>
|
||||
<property name="java.specification.version" value="19"/>
|
||||
<property name="sun.jnu.encoding" value="UTF-8"/>
|
||||
<property name="java.class.path" value="/Users/rdev/Source/social_altruism_akka/target/test-classes:/Users/rdev/Source/social_altruism_akka/target/classes:/Users/rdev/.m2/repository/ch/qos/logback/logback-classic/1.4.14/logback-classic-1.4.14.jar:/Users/rdev/.m2/repository/ch/qos/logback/logback-core/1.4.14/logback-core-1.4.14.jar:/Users/rdev/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-actor-typed_2.13/2.9.0/akka-actor-typed_2.13-2.9.0.jar:/Users/rdev/.m2/repository/org/scala-lang/scala-library/2.13.12/scala-library-2.13.12.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-actor_2.13/2.9.0/akka-actor_2.13-2.9.0.jar:/Users/rdev/.m2/repository/com/typesafe/config/1.4.3/config-1.4.3.jar:/Users/rdev/.m2/repository/org/scala-lang/modules/scala-java8-compat_2.13/1.0.2/scala-java8-compat_2.13-1.0.2.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-slf4j_2.13/2.9.0/akka-slf4j_2.13-2.9.0.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-actor-testkit-typed_2.13/2.9.0/akka-actor-testkit-typed_2.13-2.9.0.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-testkit_2.13/2.9.0/akka-testkit_2.13-2.9.0.jar:/Users/rdev/.m2/repository/junit/junit/4.13.2/junit-4.13.2.jar:/Users/rdev/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/rdev/.m2/repository/org/awaitility/awaitility/4.2.0/awaitility-4.2.0.jar:/Users/rdev/.m2/repository/org/awaitility/awaitility-proxy/3.1.6/awaitility-proxy-3.1.6.jar:/Users/rdev/.m2/repository/net/bytebuddy/byte-buddy/1.7.0/byte-buddy-1.7.0.jar:/Users/rdev/.m2/repository/org/hamcrest/hamcrest/2.2/hamcrest-2.2.jar:"/>
|
||||
<property name="java.vm.vendor" value="Amazon.com Inc."/>
|
||||
<property name="sun.arch.data.model" value="64"/>
|
||||
<property name="java.vendor.url" value="https://aws.amazon.com/corretto/"/>
|
||||
<property name="os.name" value="Mac OS X"/>
|
||||
<property name="java.vm.specification.version" value="19"/>
|
||||
<property name="sun.java.launcher" value="SUN_STANDARD"/>
|
||||
<property name="user.country" value="CH"/>
|
||||
<property name="sun.boot.library.path" value="/Users/rdev/.sdkman/candidates/java/19.0.1-amzn/lib"/>
|
||||
<property name="sun.java.command" value="/Users/rdev/Source/social_altruism_akka/target/surefire/surefirebooter-20231223121640936_3.jar /Users/rdev/Source/social_altruism_akka/target/surefire 2023-12-23T12-16-40_715-jvmRun1 surefire-20231223121640936_1tmp surefire_0-20231223121640936_2tmp"/>
|
||||
<property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
|
||||
<property name="jdk.debug" value="release"/>
|
||||
<property name="surefire.test.class.path" value="/Users/rdev/Source/social_altruism_akka/target/test-classes:/Users/rdev/Source/social_altruism_akka/target/classes:/Users/rdev/.m2/repository/ch/qos/logback/logback-classic/1.4.14/logback-classic-1.4.14.jar:/Users/rdev/.m2/repository/ch/qos/logback/logback-core/1.4.14/logback-core-1.4.14.jar:/Users/rdev/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-actor-typed_2.13/2.9.0/akka-actor-typed_2.13-2.9.0.jar:/Users/rdev/.m2/repository/org/scala-lang/scala-library/2.13.12/scala-library-2.13.12.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-actor_2.13/2.9.0/akka-actor_2.13-2.9.0.jar:/Users/rdev/.m2/repository/com/typesafe/config/1.4.3/config-1.4.3.jar:/Users/rdev/.m2/repository/org/scala-lang/modules/scala-java8-compat_2.13/1.0.2/scala-java8-compat_2.13-1.0.2.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-slf4j_2.13/2.9.0/akka-slf4j_2.13-2.9.0.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-actor-testkit-typed_2.13/2.9.0/akka-actor-testkit-typed_2.13-2.9.0.jar:/Users/rdev/.m2/repository/com/typesafe/akka/akka-testkit_2.13/2.9.0/akka-testkit_2.13-2.9.0.jar:/Users/rdev/.m2/repository/junit/junit/4.13.2/junit-4.13.2.jar:/Users/rdev/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/rdev/.m2/repository/org/awaitility/awaitility/4.2.0/awaitility-4.2.0.jar:/Users/rdev/.m2/repository/org/awaitility/awaitility-proxy/3.1.6/awaitility-proxy-3.1.6.jar:/Users/rdev/.m2/repository/net/bytebuddy/byte-buddy/1.7.0/byte-buddy-1.7.0.jar:/Users/rdev/.m2/repository/org/hamcrest/hamcrest/2.2/hamcrest-2.2.jar:"/>
|
||||
<property name="sun.cpu.endian" value="little"/>
|
||||
<property name="user.home" value="/Users/rdev"/>
|
||||
<property name="user.language" value="es"/>
|
||||
<property name="java.specification.vendor" value="Oracle Corporation"/>
|
||||
<property name="java.version.date" value="2022-10-18"/>
|
||||
<property name="java.home" value="/Users/rdev/.sdkman/candidates/java/19.0.1-amzn"/>
|
||||
<property name="file.separator" value="/"/>
|
||||
<property name="basedir" value="/Users/rdev/Source/social_altruism_akka"/>
|
||||
<property name="java.vm.compressedOopsMode" value="Zero based"/>
|
||||
<property name="line.separator" value=" "/>
|
||||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
|
||||
<property name="java.specification.name" value="Java Platform API Specification"/>
|
||||
<property name="apple.awt.application.name" value="ForkedBooter"/>
|
||||
<property name="surefire.real.class.path" value="/Users/rdev/Source/social_altruism_akka/target/surefire/surefirebooter-20231223121640936_3.jar"/>
|
||||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
|
||||
<property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
|
||||
<property name="java.runtime.version" value="19.0.1+10-FR"/>
|
||||
<property name="user.name" value="rdev"/>
|
||||
<property name="stdout.encoding" value="UTF-8"/>
|
||||
<property name="path.separator" value=":"/>
|
||||
<property name="os.version" value="14.2"/>
|
||||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
|
||||
<property name="file.encoding" value="UTF-8"/>
|
||||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
|
||||
<property name="java.vendor.version" value="Corretto-19.0.1.10.1"/>
|
||||
<property name="localRepository" value="/Users/rdev/.m2/repository"/>
|
||||
<property name="java.vendor.url.bug" value="https://github.com/corretto/corretto-19/issues/"/>
|
||||
<property name="java.io.tmpdir" value="/var/folders/31/f1vtm4ks0_j2myb365hc02m40000gn/T/"/>
|
||||
<property name="idea.version" value="2023.3.1"/>
|
||||
<property name="java.version" value="19.0.1"/>
|
||||
<property name="user.dir" value="/Users/rdev/Source/social_altruism_akka"/>
|
||||
<property name="os.arch" value="x86_64"/>
|
||||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
|
||||
<property name="native.encoding" value="UTF-8"/>
|
||||
<property name="java.library.path" value="/Users/rdev/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."/>
|
||||
<property name="java.vm.info" value="mixed mode, sharing"/>
|
||||
<property name="stderr.encoding" value="UTF-8"/>
|
||||
<property name="java.vendor" value="Amazon.com Inc."/>
|
||||
<property name="java.vm.version" value="19.0.1+10-FR"/>
|
||||
<property name="sun.io.unicode.encoding" value="UnicodeBig"/>
|
||||
<property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
|
||||
<property name="java.class.version" value="63.0"/>
|
||||
</properties>
|
||||
<testcase name="testActorGetsUserDenied" classname="dev.freireservices.social_altruism.chat.ChatQuickStartTest" time="1.02">
|
||||
<system-out><![CDATA[[2023-12-23 12:16:42,141] [INFO] [akka.event.slf4j.Slf4jLogger] [ChatQuickStartTest-akka.actor.default-dispatcher-3] [] - Slf4jLogger started
|
||||
[2023-12-23 12:16:42,291] [INFO] [dev.freireservices.social_altruism.chat.ChatPotProtocol] [ChatQuickStartTest-akka.actor.default-dispatcher-5] [akka://ChatQuickStartTest/user/chatRoom] - Participant joined testProbe-1 turn pot: 10.0
|
||||
[2023-12-23 12:16:42,293] [INFO] [dev.freireservices.social_altruism.chat.ChatPotProtocol] [ChatQuickStartTest-akka.actor.default-dispatcher-5] [akka://ChatQuickStartTest/user/chatRoom] - Waiting for more participants.
|
||||
[2023-12-23 12:16:42,293] [INFO] [dev.freireservices.social_altruism.chat.ChatPotProtocol] [ChatQuickStartTest-akka.actor.default-dispatcher-3] [akka://ChatQuickStartTest/user/chatRoom] - Participant joined testProbe-1 turn pot: 10.0
|
||||
[2023-12-23 12:16:42,303] [ERROR] [akka.actor.SupervisorStrategy] [ChatQuickStartTest-akka.actor.default-dispatcher-5] [akka://ChatQuickStartTest/user] - actor name [testProbe-1] is not unique!
|
||||
akka.actor.InvalidActorNameException: actor name [testProbe-1] is not unique!
|
||||
at akka.actor.dungeon.ChildrenContainer$NormalChildrenContainer.reserve(ChildrenContainer.scala:134)
|
||||
at akka.actor.dungeon.Children.reserveChild(Children.scala:147)
|
||||
at akka.actor.dungeon.Children.reserveChild$(Children.scala:145)
|
||||
at akka.actor.ActorCell.reserveChild(ActorCell.scala:410)
|
||||
at akka.actor.dungeon.Children.makeChild(Children.scala:300)
|
||||
at akka.actor.dungeon.Children.actorOf(Children.scala:49)
|
||||
at akka.actor.dungeon.Children.actorOf$(Children.scala:48)
|
||||
at akka.actor.ActorCell.actorOf(ActorCell.scala:410)
|
||||
at akka.actor.typed.internal.adapter.ActorRefFactoryAdapter$.spawn(ActorRefFactoryAdapter.scala:55)
|
||||
at akka.actor.typed.internal.adapter.ActorContextAdapter.spawn(ActorContextAdapter.scala:73)
|
||||
at akka.actor.typed.internal.ActorContextImpl.spawn(ActorContextImpl.scala:202)
|
||||
at akka.actor.typed.internal.ActorContextImpl.spawn$(ActorContextImpl.scala:201)
|
||||
at akka.actor.typed.internal.adapter.ActorContextAdapter.spawn(ActorContextAdapter.scala:38)
|
||||
at dev.freireservices.social_altruism.chat.ChatPotProtocol.onGetPotSession(ChatPotProtocol.java:72)
|
||||
at dev.freireservices.social_altruism.chat.ChatPotProtocol.lambda$createPot$e7bfbadc$1(ChatPotProtocol.java:113)
|
||||
at akka.actor.typed.javadsl.BuiltBehavior.receive(BehaviorBuilder.scala:197)
|
||||
at akka.actor.typed.javadsl.BuiltBehavior.receive(BehaviorBuilder.scala:186)
|
||||
at akka.actor.typed.Behavior$.interpret(Behavior.scala:282)
|
||||
at akka.actor.typed.Behavior$.interpretMessage(Behavior.scala:238)
|
||||
at akka.actor.typed.internal.adapter.ActorAdapter.handleMessage(ActorAdapter.scala:133)
|
||||
at akka.actor.typed.internal.adapter.ActorAdapter.aroundReceive(ActorAdapter.scala:109)
|
||||
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579)
|
||||
at akka.actor.ActorCell.invoke(ActorCell.scala:547)
|
||||
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270)
|
||||
at akka.dispatch.Mailbox.run(Mailbox.scala:231)
|
||||
at akka.dispatch.Mailbox.exec(Mailbox.scala:243)
|
||||
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
|
||||
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1311)
|
||||
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1840)
|
||||
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1806)
|
||||
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
|
||||
]]></system-out>
|
||||
</testcase>
|
||||
<testcase name="testCooperationCaseOne" classname="dev.freireservices.social_altruism.chat.ChatQuickStartTest" time="0.059">
|
||||
<system-out><![CDATA[[2023-12-23 12:16:42,373] [INFO] [akka.event.slf4j.Slf4jLogger] [ChatQuickStartTest-akka.actor.default-dispatcher-3] [] - Slf4jLogger started
|
||||
]]></system-out>
|
||||
</testcase>
|
||||
</testsuite>
|
@ -1,4 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: dev.freireservices.social_altruism.ChatQuickStartTest
|
||||
Test set: dev.freireservices.social_altruism.chat.ChatQuickStartTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.387 s -- in dev.freireservices.social_altruism.ChatQuickStartTest
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.387 s -- in dev.freireservices.social_altruism.chat.ChatQuickStartTest
|
||||
|
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: dev.freireservices.social_altruism.chat.ChatQuickStartTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.155 s -- in dev.freireservices.social_altruism.chat.ChatQuickStartTest
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user