Forward-porting of this patch missed the need to change to new
TestKit instead of legacy JavaTestKit. Fix that.
Change-Id: Ic7bc6edae198c785ca4473eeff83cdbc516c8d2e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import static org.junit.Assert.assertNotNull;
import akka.actor.ExtendedActorSystem;
-import akka.testkit.JavaTestKit;
+import akka.testkit.javadsl.TestKit;
import java.io.NotSerializableException;
import java.util.List;
import org.junit.Test;
final byte[] bytes = serializer.toBinary(readyMessage);
deserialized = serializer.fromBinary(bytes, ReadyLocalTransaction.class);
} finally {
- JavaTestKit.shutdownActorSystem(system);
+ TestKit.shutdownActorSystem(system);
}
assertNotNull("fromBinary returned null", deserialized);