Commit graph

52 commits

Author SHA1 Message Date
Patrik Nordwall
50e99e08d8 Use short configurable timeout for expectNoMessage #27212 (#27213)
* Use short configurable timeout for expectNoMessage #27212

* consistent with ActorTestKit in Typed

* fix config
2019-06-26 15:35:20 +01:00
Christopher Batey
1820b982bf Remove warnings in akka stream testkit module (#26751) 2019-04-16 15:13:21 +02:00
Auto Format
75579bed17 format source with scalafmt, #26511 2019-03-15 10:23:46 +01:00
Auto Format
ce404e4f53 format source with scalafmt 2019-03-11 16:58:55 +01:00
Patrik Nordwall
5c96a5f556 replace unicode arrows
* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
2019-03-11 16:58:51 +01:00
Arnout Engelen
d274e039f9
Various scala-2.13.0-M5 fixes
fix akka-actor-tests compile errors

some tests still fail though

Fix test failures in akka-actor-test

Manually work arround missing implicit Factory[Nothing, Seq[Nothing]]

see https://github.com/scala/scala-collection-compat/issues/137

akka-remote scalafix changes

Fix shutdownAll compile error

test:akka-remote scalafix changes

akka-multi-node-testkit scalafix

Fix akka-remote-tests multi-jvm compile errors

akka-stream-tests/test:scalafix

Fix test:akka-stream-tests

Crude implementation of ByteString.map

scalafix akka-actor-typed, akka-actor-typed-tests

akka-actor-typed-tests compile and succeed

scalafix akka-camel

scalafix akka-cluster

akka-cluster compile & test

scalafix akka-cluster-metrics

Fix akka-cluster-metrics

scalafix akka-cluster-tools

akka-cluster-tools compile and test

scalafix akka-distributed-data

akka-distributed-data fixes

scalafix akka-persistence

scalafix akka-cluster-sharding

fix akka-cluster-sharding

scalafix akka-contrib

Fix akka-cluster-sharding-typed test

scalafix akka-docs

Use scala-stm 0.9 (released for M5)

akka-docs

Remove dependency on collections-compat

Cherry-pick the relevant constructs to our own
private utils

Shorten 'scala.collections.immutable' by importing it

Duplicate 'immutable' imports

Use 'foreach' on futures

Replace MapLike with regular Map

Internal API markers

Simplify ccompat by moving PackageShared into object

Since we don't currently need to differentiate between 2.11 and

Avoid relying on 'union' (and ++) being left-biased

Fix akka-actor/doc by removing -Ywarn-unused

Make more things more private

Copyright headers

Use 'unsorted' to go from SortedSet to Set

Duplicate import

Use onComplete rather than failed.foreach

Clarify why we partly duplicate scala-collection-compat
2019-01-11 12:27:18 +01:00
Arnout Engelen
0cc8e20a2e
Various scala-2.13.0-M5 fixes
Clearer imports in TcpDnsClient

Accept SVG's when checking if diagrams were generated

Fix akka-actor MiMa issues

akka-testkit scalafix changes

Update scalatest to 2.13-released snapshot

akka-stream scalafix changes

Update ssl-config

To version that's released with -M5

Take elements directly out of buffer

Manually fix immutable.Seq / Doc link

Make sure the right Concat, Sink is imported

akka-stream binary compat

akka-stream-testkit scalafix

akka-actor-tests scalafix

Eta-expensions
2019-01-11 11:44:35 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
Josep Prat
a31964475e Add forgotten expectNoMessage method in StreamTestKit (#26070)
* Add forgotten `expectNoMessage` method in StreamTestKit

As discovered during https://github.com/akka/akka-http/pull/2292#discussion_r239473817 the parameterless version of `expectNoMessage` in StreamTestKit is missing.
2018-12-12 10:25:29 +01:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Kazuhiro Sera
482eaea122 Fix several minor typos detected by github.com/client9/misspell (#25448)
* Fix several minor typos detected by github.com/client9/misspell

* Revert s/erminater/erminator/ in /ActorSystemSpec
2018-08-21 11:02:37 +09:00
Guy Youansi
a4951e0ce7 Java time duration support for javadsl #24646
java.time.Duration support in all jdocs java file, the persistence module and the distributed-data
2018-06-26 15:41:30 +02:00
Jimin Hsieh
2c2b8ba001 Remove some of Unused import warning (#24650) 2018-03-16 12:08:29 +01:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Johannes Rudolph
9d7621150f =stk accept Throwable in stream probe's sendError methods (#23940) 2017-11-09 09:12:58 +01:00
Arnout Engelen
b8a18bcf30 Nicer message when expectCancellation() fails (#23847) 2017-10-25 09:14:21 +09:00
Patrik Nordwall
a10b00ed02 harden RestartSpec, less timing sensitive, #23593 (#23731) 2017-09-26 21:46:52 +09:00
Kirill Yankov
dfd94d3aea New implementation of expectNoMsg in TestKit #23224 2017-09-25 16:37:47 +02:00
Alexander Golubev
1ba5b27158 =str add latch to ManualProbe to popagate events only when subscription is done (#23365) 2017-08-21 11:26:29 +02:00
Endre Sándor Varga
ba63c7af8d New materializer and layout 2017-03-01 16:18:55 +01:00
Kirill Yankov
cf73ffd16a expectNextPF with timeout #21314 (#21825)
* expectNextPF with timeout #21314

improved scaladocs

* renamed functions with timeout, returned previous comments for the sake of unification
2017-02-23 13:46:00 +01:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Johannes Rudolph
a31e78b47f +stk expose within for both TestSubscriber and TestPublisher
This will allow us place limits on methods like `expectRequest` without
introducing other overloads.
2016-11-17 12:23:14 +01:00
Kirill Yankov
7eb660b497 Add expectNextChainingPF method to streams testkit #21614 (#21617)
Add expectNextChainingPF method to streams testkit #21614

Improved error messages on expectNextPf, expectNextPfChaining, expectEventPF
2016-10-17 18:08:09 +03:00
Endre Sándor Varga
e54d2933bd #19931 Track pending requests properly on expectRequest 2016-06-27 12:56:29 +02:00
Hawstein
6777e7f7d9 +doc #20466 example snippet for akka http java dsl: ParameterDirectives (#20823) 2016-06-23 23:29:01 +02:00
kbrowder
d6eebd22ef +htt #20815 Add expectNext(d: FiniteDuration) and requestNext(d: FiniteDuration) (#20819)
* Add expectNext(d: FiniteDuration) and requestNext(d: FiniteDuration) for issue 20815

* add some comments on requestNext
2016-06-22 21:27:09 +02:00
Wojciech Langiewicz
2cdf447f6e =doc fix scaladoc warnings #18500 2016-03-16 09:18:39 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
2beaucoup
f7a5151bbb #19447 remove compatibility fallbacks for Java < 8 2016-01-14 15:52:13 +01:00
Roland Kuhn
6fa6e39c22 #19326 do not call TestKit.remaining for Akka 2.4 compatibility 2016-01-13 16:39:52 +01:00
Konrad Malawski
86504ec4e2 =str #19377 improve expectNext() error reporting (if no element signaled) 2016-01-13 16:39:46 +01:00
Roland Kuhn
b0b03176ae #19238 add detach operator and fix Detach stage 2015-12-20 11:25:53 +01:00
Roland Kuhn
819c1ef504 Merge remote-tracking branch 'pr/18985' into release-2.3-dev 2015-12-12 16:59:05 +01:00
Roland Kuhn
1500d1f36d !str #19005 make groupBy et al return a SubFlow
A SubFlow (or SubSource) is not a Graph, it is an unfinished builder
that accepts transformations. This allows us to capture the substreams’
transformations before materializing the flow, which will be very
helpful in fully fusing all operators.

Another change is that groupBy now requires a maxSubstreams parameter in
order to bound its resource usage. In exchange the matching merge can be
unbounded. This trades silent deadlock for explicit stream failure.

This commit also changes all uses of Predef.identity to use `conforms`
and removes the HTTP impl.util.identityFunc.
2015-12-10 12:27:16 +01:00
Alexander Golubev
d5cae10a67 +str #18556 add delay combinator 2015-11-27 15:46:35 -05:00
Alexander Golubev
83d3143236 +str #18556 add delay combinator 2015-11-26 15:58:38 -05:00
Roland Kuhn
556012b7ee !str,htc replace and remove OneBoundedInterpreter
main work by @drewhk with contributions from @2m and @rkuhn

This work uncovered many well-hidden bugs in existing Stages, in
particular StatefulStage. These were hidden by the behavior of
OneBoundedInterpreter that normally behaves more orderly than it
guarantees in general, especially with respect to the timeliness of
delivery of upstream termination signals; the bugs were then that
internal state was not flushed when onComplete arrived “too early”.
2015-11-01 14:53:52 +01:00
Johannes Rudolph
3193eb8009 +stk add TestSubscriber/Publisher.Probe.ensureSubscription to allow manual initialization
Otherwise, it is not possible to use `expectNoMsg()` as the first operation.
2015-10-09 13:00:26 +02:00
Alexander Golubev
e51b2e4aeb +str #18111 SubscriberEvent in stream-testkit is not visible 2015-09-29 10:09:13 -04:00
Konrad Malawski
f416e89edb =str fix double-dilation in StreamTestKit 2015-09-29 10:26:18 +02:00
Konrad Malawski
dcfbaed206 =str #18501 make TestSink.probe consistent in style with Sink.head
Also known as, we do not use () for those
2015-09-28 18:44:54 +02:00
Konrad Malawski
ab96ebfca0 +str #18501 improvements and fixes in StreamTestKit (adds toStrict) 2015-09-25 17:19:00 +02:00
Johannes Rudolph
51f1d36852 +stk add missing TestSubscriber.requestNext() method 2015-08-26 13:39:20 +02:00
Endre Sándor Varga
dc7269e620 Rename OperationAttributes to Attributes 2015-06-23 18:45:04 +02:00
Roland Kuhn
097a10edfc fix FlowStageSpec (and some boyscouting) 2015-06-19 16:26:53 +02:00
Roland Kuhn
d462cdd1b4 =str fix sub-upstream cancellation in concatAll
- ActorProcessor terminated eagerly when ConcatAll had just taken up a
  new input stream but not yet received onSubscribe for it

- The ActorProcessor eagerly shuts itself down upon onError and that
  cannot be changed without completely reworking the Pump, so I opted
  for just tracking the outstanding substreamSubscribers that have not
  yet seen OnSubscribe and making them cancel properly when that arrives
  (possibly later).
2015-06-19 16:26:48 +02:00
Endre Sándor Varga
f4c83771bb !str #17393: Make stream-tests pass with serialize-messages=on 2015-06-02 12:32:27 +02:00