From c096102b9f1213982de5374892f7beb7d3651c5c Mon Sep 17 00:00:00 2001 From: fluency03 Date: Fri, 4 May 2018 16:59:46 +0200 Subject: [PATCH] add some tests --- .../fluency03/blockchain/api/actors/BlockchainActorTest.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/scala/com/fluency03/blockchain/api/actors/BlockchainActorTest.scala b/src/test/scala/com/fluency03/blockchain/api/actors/BlockchainActorTest.scala index b2571bb..97adf3a 100644 --- a/src/test/scala/com/fluency03/blockchain/api/actors/BlockchainActorTest.scala +++ b/src/test/scala/com/fluency03/blockchain/api/actors/BlockchainActorTest.scala @@ -156,6 +156,9 @@ class BlockchainActorTest extends TestKit(ActorSystem("BlockchainActorTest")) wi blockchainActor ! CheckBlockchainValidity expectMsg(FailureMsg("Blockchain does not exist.")) + blockchainActor ! GetLastBlock + expectMsg(None) + blockchainActor ! MineNextBlock("next", Seq.empty[String]) expectMsg(None)