Commit graph

22 commits

Author SHA1 Message Date
Patrik Nordwall
ffc356c106
Merge pull request #29926 from johanandren/wip-29904-EventSourcedBehaviorTestKit-serialization-config
EventSourcedBehaviorTestKit serialization improvements
2021-01-13 17:10:51 +01:00
Arnout Engelen
31f654768f
Update copyright to 2021 2021-01-08 17:55:38 +01:00
Johan Andrén
c64537c383 Disable snapshot serialization by default, log warning if serialization enabled #29904 2021-01-04 14:56:05 +01:00
Johan Andrén
dfc9d6e20f
No empty state serialization check when not enabled (#29905)
* Don't verify empty state serialization when state serialization check is not enabled in EventSourcedBehaviorTestKit
2021-01-04 11:02:42 +01:00
Sebastian Alfers
0d6282cffe
Reset index if it gets out of sync with the snapshot storage (#29769)
* use Queue for SnapshotTestKit to avoid getting index out of sync with the snapshot storage
* immutable collections via synchronized
2020-11-09 17:44:23 +01:00
Patrik Nordwall
3b0c9e971d use PersistenceTestKitReadJournal in EventSourcedBehaviorTestKit 2020-09-22 14:32:02 +02:00
Patrik Nordwall
8c0d81a374
support async reply and noReply in EventSourcedBehaviorTestKit, #29602 #29581 2020-09-21 16:35:19 +02:00
Patrik Nordwall
aa4a0dbcbb
clearAll when creating new EventSourcedBehaviorTestKit, #29609 (#29634)
* issue could be reproduced with sleep(200) before the persistenceTestKit.clearByPersistenceId
  in EventSourcedBehaviorTestKitImpl
* problem is that there is a race condition betwen that clear and that the EventSourcedBehavior
  is starting concurrently, which can result in that the EventSourcedBehavior may see events from
  previous test if using same persistenceId
* solution is to clearAll before starting the EventSourcedBehavior
2020-09-21 14:28:38 +02:00
Christopher Batey
90e09549e8 2.13 compilation 2020-08-17 10:04:43 +01:00
Johan Andrén
9fb76bbea4 Tagging for replicated event sourcing (#29442)
* Tagging for replicated event sourcing
* Docs improvements
* Support for currentEventsByTag in persistence testkit and test coverage for tags in replicated
2020-08-17 07:54:33 +01:00
Johan Andrén
36a8b6f24a Active active per replica journal selection (#29350)
* Support for having multiple isolated testkit journals and corresponding read journals in persistence testkit
* Read journal selection per active-active replica 
* a dedicated ReplicaId type to avoid stringly typed mismatches
2020-08-17 07:37:58 +01:00
Christopher Batey
e98f1311f3 Alternative approach for storing metadata (#29309) 2020-08-17 07:30:12 +01:00
Christopher Batey
08182bbdeb ActiveActive: Events with metadata and events by persistence id for (#29287) 2020-08-17 07:27:57 +01:00
Arnout Engelen
c41c0420ad
Update scala to 2.13.3 and silencer to 1.7.0 (#28991)
* Update scala to 2.13.3 and silencer to 1.7.0
* Also travis
* Fix various warnings
2020-08-10 12:54:38 +02:00
Christopher Batey
43e6c94f47
Reduce assert time and increase poll freq PersistentTestKit (#29296) 2020-07-08 09:10:37 +02:00
Johan Andrén
34b9a26b98
The persistence testkit incorrectly assumed a response was available immediately (#29193) 2020-06-08 13:29:51 +02:00
kerr
bada816714
=build Fix commandAlias for fixall and sortImports (#28984)
* =build Fix commandAlias for fixall and sortImports

* =build Update sortImports to 0.5.0

* Sort imports to handle `javax`.

* fx
2020-05-11 11:47:33 +02:00
Patrik Nordwall
ef79738373
Synchronous TestKit for EventSourcedBehavior, #23712 (#28952)
* using real EventSourcedBehaviorImpl
* using new inmem journal (PersistenceTestKit)
* advantages compared to a "fake" driver
  * no difference in implementation details from real thing
  * no limitations
  * less maintance
* added internal messsages to EventSourcedBehaviorImpl to be able to grab state
  and persistenceId
  * GetState as InternalProtocol instead of Signal so that it is stashed
* serialization checks, using SerializationTestKit
* better testKitGuardian naming to allow multiple PersistenceTestKit
* support testing of restart
* support failure testing by using PersistenceTestKit
* update doc sample
* apidoc, reference docs, and javadsl
2020-04-29 22:06:42 +02:00
kerr
0e4d41ad33
+build Add sort imports support. (#28780)
* Add scalafix plugin for jdk 9.
* Add command alias sortImports.
* Excludes some sources from SortImports.
* Update SortImports to 0.4.0
* Sort imports with `sortImports` command.
2020-04-27 14:32:18 +02:00
Kirill Yankov
007aa0f710
#28908 - rename returnDefaultPolicy to resetPolicy (#28941) 2020-04-20 17:43:17 +02:00
Patrik Nordwall
7e07ee17a6 move to testkit, and docs 2020-03-30 16:24:38 +02:00
Kirill Yankov
41f20cbb81
Persistence testkit implementation #15571 (#26825) 2020-03-20 14:18:43 +01:00