Java Code Examples for akka.testkit.javadsl.TestKit#shutdownActorSystem()
The following examples show how to use
akka.testkit.javadsl.TestKit#shutdownActorSystem() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IndexInitializerIT.java From ditto with Eclipse Public License 2.0 | 6 votes |
@SuppressWarnings("ConstantConditions") @After public void after() { if (system != null) { materializer.shutdown(); TestKit.shutdownActorSystem(system); system = null; materializer = null; } if (mongoClient != null) { mongoClient.getDefaultDatabase().drop(); } if (mongoClient != null) { mongoClient.close(); } }
Example 2
Source File: SearchActorIT.java From ditto with Eclipse Public License 2.0 | 5 votes |
@After public void after() { if (mongoClient != null) { thingsCollection.drop(); } if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem); actorSystem = null; } materializer = null; }
Example 3
Source File: ThingsSearchCursorTest.java From ditto with Eclipse Public License 2.0 | 5 votes |
@After public void stop() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem); actorSystem = null; } materializer = null; }
Example 4
Source File: KafkaValidatorTest.java From ditto with Eclipse Public License 2.0 | 5 votes |
@AfterClass public static void tearDown() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem, scala.concurrent.duration.Duration.apply(5, TimeUnit.SECONDS), false); } }
Example 5
Source File: ThingUpdaterTest.java From ditto with Eclipse Public License 2.0 | 5 votes |
private void shutdownActorSystem() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem); actorSystem = null; } pubSubTestProbe = null; }
Example 6
Source File: MongoReadJournalIT.java From ditto with Eclipse Public License 2.0 | 5 votes |
@After public void after() { if (null != mongoClient) { Source.fromPublisher(mongoClient.getDefaultDatabase().drop()) .runWith(Sink.ignore(), materializer) .toCompletableFuture() .join(); } if (null != actorSystem) { TestKit.shutdownActorSystem(actorSystem); } }
Example 7
Source File: AbstractPublisherActorTest.java From ditto with Eclipse Public License 2.0 | 5 votes |
@After public void tearDown() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem, scala.concurrent.duration.Duration.apply(5, TimeUnit.SECONDS), false); } }
Example 8
Source File: SearchSourceTest.java From ditto with Eclipse Public License 2.0 | 5 votes |
@After public void shutdown() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem); actorSystem = null; } }
Example 9
Source File: PubSubFactoryTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@After public void shutdownCluster() { disableLogging(); TestKit.shutdownActorSystem(system1); TestKit.shutdownActorSystem(system2); }
Example 10
Source File: MergeSortedAsPairTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@AfterClass public static void cleanup() { if (system != null) { TestKit.shutdownActorSystem(system); } }
Example 11
Source File: ThingsSseRouteBuilderTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@AfterClass public static void tearDownClass() { TestKit.shutdownActorSystem(actorSystem); }
Example 12
Source File: RequestActorTest.java From servicecomb-saga-actuator with Apache License 2.0 | 4 votes |
@AfterClass public static void tearDown() throws Exception { TestKit.shutdownActorSystem(actorSystem); }
Example 13
Source File: RequestActorBuilderTest.java From servicecomb-saga-actuator with Apache License 2.0 | 4 votes |
@AfterClass public static void tearDown() throws Exception { TestKit.shutdownActorSystem(actorSystem); }
Example 14
Source File: SnapshotStreamingActorTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@After public void shutdownActorSystem() { TestKit.shutdownActorSystem(actorSystem); }
Example 15
Source File: ThingCommandEnforcementTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@After public void shutdown() { if (system != null) { TestKit.shutdownActorSystem(system); } }
Example 16
Source File: ConnectivityByRoundTripSignalEnrichmentProviderTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@After public void shutdownActorSystem() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem); } }
Example 17
Source File: AriEventProcessingTest.java From ari-proxy with GNU Affero General Public License v3.0 | 4 votes |
@AfterEach void teardown() { TestKit.shutdownActorSystem(system); system.terminate(); }
Example 18
Source File: MessageMappingProcessorTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@AfterClass public static void tearDown() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem); } }
Example 19
Source File: MongoSearchUpdaterFlowTest.java From ditto with Eclipse Public License 2.0 | 4 votes |
@After public void shutdownActorSystem() { if (actorSystem != null) { TestKit.shutdownActorSystem(actorSystem); } }
Example 20
Source File: AmqpConnectorsTest.java From rabbitmq-mock with Apache License 2.0 | 4 votes |
@AfterAll public static void tearDown() { TestKit.shutdownActorSystem(system); }