Comments (1)
> Task :reactor-scala-extensions:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.parboiled.transform.AsmUtils (file:/Users/thanhbv/.gradle/caches/modules-2/files-2.1/org.parboiled/parboiled-java/1.1.7/2298c64ce8ee8e2fb37e97e16d7be52f0c7cf61f/parboiled-java-1.1.7.jar) to method java.lang.ClassLoader.findLoadedClass(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.parboiled.transform.AsmUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Discovery starting.
00:59:56.942 [ScalaTest-main] DEBUG reactor.util.Loggers$LoggerFactory - Using Slf4j logging framework
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
Discovery completed in 1 second, 929 milliseconds.
Run starting. Expected test count is: 150ons:test
00:59:58.691 [ScalaTest-1-running-SMonoTest] DEBUG reactor.core.publisher.MonoCacheTime - expired onNext(1)
SMonoAsyncTest:
SMono
- .toFuture should convert this mono to future (70 milliseconds)
- .toFuture should convert this mono to future with void return (3 milliseconds)
SMonoTest:
SMono
- .create should create a Mono (20 milliseconds)
- .defer should create a Mono with deferred Mono (2 milliseconds)
.delay should create a Mono with the first element delayed according to the provided
- duration (15 milliseconds)
- duration in millis with given TimeScheduler (1 millisecond)
.empty
- without source should create an empty Mono (0 milliseconds)
.firstEmitter
- with varargs should create mono that emit the first item (3 milliseconds)
.from
- a publisher should ensure that the publisher will emit 0 or 1 item. (2 milliseconds)
- a callable should ensure that Mono will return a value from the Callable (2 milliseconds)
- source direct should return mono of the source (1 millisecond)
- a future should result Mono that will return the value from the future object (9 milliseconds)
a Try should result SMono that when it is a
- Success will emit the value of the Try (2 milliseconds)
- Failure will emit onError with the exception (2 milliseconds)
- .ignoreElements should ignore all elements from a publisher and just react on completion signal (1 millisecond)
- .just should emit the specified item (1 millisecond)
.justOrEmpty
with Option should
- emit the specified item if the option is not empty (1 millisecond)
- just react on completion signal if the option is empty (0 milliseconds)
with data should
- emit the specified item if it is not null (0 milliseconds)
- just react on completion signal if it is null (0 milliseconds)
- .never will never signal any data, error or completion signal (1 millisecond)
- .name should give name to this sequence (12 milliseconds)
.sequenceEqual should
- emit Boolean.TRUE when both publisher emit the same value (5 milliseconds)
- emit true when both publisher emit the same value according to the isEqual function (2 milliseconds)
- emit true when both publisher emit the same value according to the isEqual function with bufferSize (1 millisecond)
- .raiseError should create Mono that emit error (1 millisecond)
.when
with iterable
- of publisher of unit should return when all of the sources has fulfilled (13 milliseconds)
- with varargs of publisher should return when all of the resources has fulfilled (3 milliseconds)
.zipDelayError
- with p1 and p2 should merge when both Monos are fulfilled (2 milliseconds)
- with p1, p2 and p3 should merge when all Monos are fulfilled (2 milliseconds)
- with p1, p2, p3 and p4 should merge when all Monos are fulfilled (1 millisecond)
- with p1, p2, p3, p4 and p5 should merge when all Monos are fulfilled (1 millisecond)
- with p1, p2, p3, p4, p5 and p6 should merge when all Monos are fulfilled (2 milliseconds)
with iterable
- of publisher of unit should return when all of the sources has fulfilled (1 millisecond)
- of combinator function and monos should emit the value after combined by combinator function (3 milliseconds)
.zip
- with combinator function and varargs of mono should fullfill when all Monos are fulfilled (2 milliseconds)
- with combinator function and Iterable of mono should fulfill when all Monos are fulfilled (3 milliseconds)
.and
- should combine this mono and the other (2 milliseconds)
- .as should transform the Mono to whatever the transformer function is provided (1 millisecond)
- .asJava should convert to java (2 milliseconds)
- .asScala should transform Mono to SMono (1 millisecond)
.block
- should block the mono to get the value (1 millisecond)
- with duration should block the mono up to the duration (0 milliseconds)
.blockOption
without duration
- should block the mono to get value (1 millisecond)
- should return None if mono is empty (1 millisecond)
with duration
- should block the mono up to the duration (0 milliseconds)
- shouldBlock the mono up to the duration and return None (0 milliseconds)
- .cast (deprecated) should cast the underlying value (3 milliseconds)
- .cast should cast the underlying value (0 milliseconds)
.cache
- should cache the value (2 milliseconds)
- with ttl cache the value up to specific time (5 milliseconds)
- .cancelOn should cancel the subscriber on a particular scheduler *** FAILED *** (271 milliseconds)
org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class reactor.core.publisher.MonoJust.
Can not mock final classes with the following settings :
- explicit serialization (e.g. withSettings().serializable())
- extra interfaces (e.g. withSettings().extraInterfaces(...))
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class reactor.core.publisher.MonoJust, class reactor.core.publisher.Mono, interface java.util.concurrent.Callable, interface reactor.core.Scannable, class java.lang.Object, interface reactor.core.Fuseable, interface reactor.core.publisher.SourceProducer, interface reactor.core.Fuseable$ScalarCallable, interface reactor.core.CorePublisher, interface org.reactivestreams.Publisher]
at reactor.core.scala.publisher.SMonoTest.$anonfun$new$92(SMonoTest.scala:412)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.FreeSpecLike$$anon$1.apply(FreeSpecLike.scala:407)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.FreeSpec.withFixture(FreeSpec.scala:1739)
...
Cause: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class reactor.core.publisher.MonoJust, class reactor.core.publisher.Mono, interface java.util.concurrent.Callable, interface reactor.core.Scannable, class java.lang.Object, interface reactor.core.Fuseable, interface reactor.core.publisher.SourceProducer, interface reactor.core.Fuseable$ScalarCallable, interface reactor.core.CorePublisher, interface org.reactivestreams.Publisher]
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:152)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:365)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:174)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:376)
at reactor.core.scala.publisher.SMonoTest.$anonfun$new$92(SMonoTest.scala:412)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
...
Cause: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:176)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:152)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:37)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:34)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:152)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:365)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:174)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:376)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:32)
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMockType(InlineByteBuddyMockMaker.java:199)
...
Cause: java.lang.IllegalArgumentException: Unsupported class file major version 57
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:184)
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:166)
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:152)
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:82)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3390)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1930)
at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:217)
at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:120)
at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3396)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:253)
...
- .compose should defer creating the target mono type (3 milliseconds)
- .transformDeferred should defer creating the target mono type (1 millisecond)
- .concatWith should concatenate mono with another source (2 milliseconds)
- ++ should concatenate mono with another source (1 millisecond)
- .defaultIfEmpty should use the provided default value if the mono is empty (0 milliseconds)
.delayElement
- should delay the element (2 milliseconds)
- with timer should delay using timer (1 millisecond)
.delaySubscription
- with delay duration should delay subscription as long as the provided duration (1 millisecond)
- with delay duration and scheduler should delay subscription as long as the provided duration (2 milliseconds)
- with another publisher should delay the current subscription until the other publisher completes (1 millisecond)
- .delayUntil should delay until the other provider terminate (5 milliseconds)
- .dematerialize should dematerialize the underlying mono (1 millisecond)
- .doAfterSuccessOrError should call the callback function after the mono is terminated (16 milliseconds)
- .doAfterTerminate should call the callback function after the mono is terminated (2 milliseconds)
- .doFinally should call the callback (2 milliseconds)
- .doOnCancel should call the callback function when the subscription is cancelled (3 milliseconds)
- .doOnNext should call the callback function when the mono emit data successfully (2 milliseconds)
- .doOnSuccess should call the callback function when the mono completes successfully (1 millisecond)
.doOnError
- with callback function should call the callback function when the mono encounter error (1 millisecond)
- .doOnRequest should call the callback function when subscriber request data (1 millisecond)
- .doOnSubscribe should call the callback function when the mono is subscribed (1 millisecond)
- .doOnTerminate should do something on terminate (1 millisecond)
.elapsed
- should provide the time elapse when this mono emit value (3 milliseconds)
- with TimedScheduler should provide the time elapsed using the provided scheduler when this mono emit value (1 millisecond)
.expandDeep
- should expand the mono (3 milliseconds)
- with capacity hint should expand the mono (1 millisecond)
.expand
- should expand the mono (2 milliseconds)
- with capacity hint should expand the mono (2 milliseconds)
- .filter should filter the value of mono where it pass the provided predicate (2 milliseconds)
- .filterWhen should replay the value of mono if the first item emitted by the test is true (3 milliseconds)
- .flatMap should flatmap the provided mono (1 millisecond)
.flatMapMany
- with a single mapper should flatmap the value mapped by the provided mapper (1 millisecond)
- with mapperOnNext, mapperOnError and mapperOnComplete should mapped each individual event into values emitted by flux (7 milliseconds)
- .flatMapIterable should flatmap the value mapped by the provided mapper (4 milliseconds)
- .flux should convert this mono into a flux (1 millisecond)
.hasElement should convert to another Mono that emit
- true if it has element (2 milliseconds)
- false if it is empty (0 milliseconds)
- .handle should handle onNext, onError and onComplete (2 milliseconds)
- .ignoreElement should only emit termination event (1 millisecond)
- .map should map the type of Mono from T to R (1 millisecond)
.mapError
- with mapper should map the error to another error (9 milliseconds)
with an error type and mapper should
- map the error to another type if the exception is according to the provided type (1 millisecond)
- not map the error if the exception is not the type of provided exception class (1 millisecond)
with a predicate and mapper should
- map the error to another type if the predicate returns true (0 milliseconds)
- not map the error to another type if the predicate returns false (1 millisecond)
- .materialize should convert the mono into a mono that emit its signal (1 millisecond)
- .mergeWith should convert this mono to flux with value emitted from this mono followed by the other (1 millisecond)
.ofType (deprecated) should
- convert the Mono value type to the provided type if it can be casted (2 milliseconds)
- ignore the Mono value if it can't be casted (1 millisecond)
.ofType should
- convert the Mono value type to the provided type if it can be casted (0 milliseconds)
- ignore the Mono value if it can't be casted (1 millisecond)
.onErrorRecover
- should recover with a Mono of element that has been recovered (9 milliseconds)
.onErrorResume
- will fallback to the provided value when error happens (2 milliseconds)
- with class type and fallback function will fallback to the provided value when the exception is of provided type (3 milliseconds)
- with predicate and fallback function will fallback to the provided value when the predicate returns true (1 millisecond)
- .or should return Mono that emit the value between the two Monos that is emited first (1 millisecond)
- .publish should share and may transform it and consume it as many times as necessary without causingmultiple subscription (3 milliseconds)
.repeat
- should return flux that repeat the value from this mono (3 milliseconds)
- with boolean predicate should repeat the value from this mono as long as the predicate returns true (5 milliseconds)
- with number of repeat should repeat value from this value as many as the provided parameter (4 milliseconds)
- with number of repeat and predicate should repeat value from this value as many as provided parameter and aslong as the predicate returns true (0 milliseconds)
- .repeatWhen should emit the value of this mono accompanied by the publisher (7 milliseconds)
- .repeatWhenEmpty should emit resubscribe to this mono when the companion is empty (12 milliseconds)
.single
- should enforce the existence of element (2 milliseconds)
- should throw exception if it is empty (1 millisecond)
.subscribe
- without parameter should return Disposable (1 millisecond)
- with consumer should invoke the consumer (1 millisecond)
- with consumer and error consumer should invoke the error consumer when error happen (1 millisecond)
- with consumer, error consumer and completeConsumer should invoke the completeConsumer when it's complete (2 milliseconds)
- with consumer, error consumer, completeConsumer and subscriptionConsumer should invoke the subscriptionConsumer when there is subscription (2 milliseconds)
- .subscribeContext should pass context properly (10 milliseconds)
- .switchIfEmpty with alternative will emit the value from alternative Mono when this mono is empty (0 milliseconds)
- .tag should tag the Mono and accessible from Scannable (26 milliseconds)
.take
- should complete after duration elapse (2 milliseconds)
- with duration and scheduler should complete after duration elapse (1 millisecond)
- .takeUntilOther should complete if the companion publisher emit any signal first (1 millisecond)
.then
- without parameter should only replays complete and error signals from this mono (0 milliseconds)
- with other mono should ignore element from this mono and transform its completion signal into emission and completion signal of the provided mono (3 milliseconds)
- .thenEmpty should complete this mono then for a supplied publisher to also complete (1 millisecond)
.thenMany should ignore the element from this mono and transform the completion signal into a Flux that will emit from the provided publisher when the publisher is provided
- directly (0 milliseconds)
.timeout
- should raise TimeoutException after duration elapse (7 milliseconds)
- should fallback to the provided mono if the value doesn't arrive in given duration (2 milliseconds)
- with timeout and timer should signal TimeoutException if the item does not arrive before a given period (1 millisecond)
- should raise TimeoutException if this mono has not emit value when the provided publisher has emit value (2 milliseconds)
- should fallback to the provided fallback mono if this mono does not emit value when the provided publisher emits value (2 milliseconds)
- with timeout, fallback and timer should fallback to the given mono if the item does not arrive before a given period (2 milliseconds)
- .transform should transform this mono in order to generate a target mono (1 millisecond)
- .apply should convert to scala (0 milliseconds)
SParallelFluxTest:
SParallelFlux
- .asJava should convert as Java ParallelFlux (0 milliseconds)
- .apply should convert Java ParallelFlux into SParallelFlux (1 millisecond)
- .filter should filter elements (4 milliseconds)
- .map should map from T to U (2 milliseconds)
.reduce should aggregate the values
- without initial supplier (3 milliseconds)
- with initial value should aggregate the values with initial one !!! IGNORED !!!
- .sequential should merge the rails (2 milliseconds)
- .runOn should run on different thread *** FAILED *** (58 milliseconds)
org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class reactor.core.scheduler.Schedulers$CachedScheduler.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 13
JVM vendor name : AdoptOpenJDK
JVM vendor version : 13.0.1+9
JVM name : OpenJDK 64-Bit Server VM
JVM version : 13.0.1+9
JVM info : mixed mode, sharing
OS name : Mac OS X
OS version : 10.15.1
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface reactor.core.Scannable, class java.lang.Object, class reactor.core.scheduler.Schedulers$CachedScheduler, interface reactor.core.scheduler.Scheduler, interface java.util.function.Supplier, interface reactor.core.Disposable]
at reactor.core.scala.publisher.SParallelFluxTest.$anonfun$new$24(SParallelFluxTest.scala:77)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.FreeSpecLike$$anon$1.apply(FreeSpecLike.scala:407)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.FreeSpec.withFixture(FreeSpec.scala:1739)
...
Cause: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface reactor.core.Scannable, class java.lang.Object, class reactor.core.scheduler.Schedulers$CachedScheduler, interface reactor.core.scheduler.Scheduler, interface java.util.function.Supplier, interface reactor.core.Disposable]
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:152)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:365)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:174)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:376)
at reactor.core.scala.publisher.SParallelFluxTest.$anonfun$new$24(SParallelFluxTest.scala:77)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
...
Cause: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:176)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:152)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:37)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:34)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:152)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:365)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:174)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:376)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:32)
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMockType(InlineByteBuddyMockMaker.java:199)
...
Cause: java.lang.IllegalArgumentException: Unsupported class file major version 57
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:184)
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:166)
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:152)
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:82)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3390)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1930)
at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:217)
at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:120)
at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3396)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:253)
...
ScannableTest:
Scannable
- .stepName shoulr return a meaningful String representation of this Scannable in its chain of Scannable.parents and Scannable.actuals (1 millisecond)
ExecutionContextSchedulerTest:[29s]
ExecutionContextScheduler
should create a Scheduler using provided ExecutionContext
- on Mono (8 milliseconds)
- on SMono (1 millisecond)
SFluxTest:
reactor.core.scala.publisher.SFluxTest *** ABORTED *** (0 milliseconds)
java.lang.RuntimeException: Unable to load a Suite class that was discovered in the runpath: reactor.core.scala.publisher.SFluxTest
at org.scalatest.tools.DiscoverySuite$.getSuiteInstance(DiscoverySuite.scala:81)
at org.scalatest.tools.DiscoverySuite.$anonfun$nestedSuites$1(DiscoverySuite.scala:38)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at scala.collection.IterableLike.foreach(IterableLike.scala:74)
at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
at scala.collection.TraversableLike.map(TraversableLike.scala:238)
...
Cause: org.scalatest.exceptions.NotAllowedException: org.scalatest.exceptions.NotAllowedException was thrown inside "SFlux" -, construction cannot continue: "org.mockito.exceptions.base.MockitoException was thrown inside ".onBackpressureDrop" -, construction cannot continue: "
Mockito cannot mock this class: class reactor.core.publisher.FluxArray.
Can not mock final classes with the following settings :
- explicit serialization (e.g. withSettings().serializable())
- extra interfaces (e.g. withSettings().extraInterfaces(...))
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface reactor.core.Scannable, class java.lang.Object, interface reactor.core.Fuseable, interface reactor.core.publisher.SourceProducer, class reactor.core.publisher.FluxArray, class reactor.core.publisher.Flux, interface reactor.core.CorePublisher, interface org.reactivestreams.Publisher]""
...
at reactor.core.scala.publisher.SFluxTest.<init>(SFluxTest.scala:36)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:166)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:404)
...
Cause: org.scalatest.exceptions.NotAllowedException: org.mockito.exceptions.base.MockitoException was thrown inside ".onBackpressureDrop" -, construction cannot continue: "
Mockito cannot mock this class: class reactor.core.publisher.FluxArray.
Can not mock final classes with the following settings :
- explicit serialization (e.g. withSettings().serializable())
- extra interfaces (e.g. withSettings().extraInterfaces(...))
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface reactor.core.Scannable, class java.lang.Object, interface reactor.core.Fuseable, interface reactor.core.publisher.SourceProducer, class reactor.core.publisher.FluxArray, class reactor.core.publisher.Flux, interface reactor.core.CorePublisher, interface org.reactivestreams.Publisher]"
...
at reactor.core.scala.publisher.SFluxTest.$anonfun$new$1(SFluxTest.scala:1572)
at org.scalatest.SuperEngine.registerNestedBranch(Engine.scala:595)
at org.scalatest.FreeSpecLike$FreeSpecStringWrapper.$minus(FreeSpecLike.scala:266)
at reactor.core.scala.publisher.SFluxTest.<init>(SFluxTest.scala:36)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
...
Cause: org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class reactor.core.publisher.FluxArray.
Can not mock final classes with the following settings :
- explicit serialization (e.g. withSettings().serializable())
- extra interfaces (e.g. withSettings().extraInterfaces(...))
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface reactor.core.Scannable, class java.lang.Object, interface reactor.core.Fuseable, interface reactor.core.publisher.SourceProducer, class reactor.core.publisher.FluxArray, class reactor.core.publisher.Flux, interface reactor.core.CorePublisher, interface org.reactivestreams.Publisher]
at reactor.core.scala.publisher.SFluxTest.$anonfun$new$387(SFluxTest.scala:1573)
at org.scalatest.SuperEngine.registerNestedBranch(Engine.scala:595)
at org.scalatest.FreeSpecLike$FreeSpecStringWrapper.$minus(FreeSpecLike.scala:266)
at reactor.core.scala.publisher.SFluxTest.$anonfun$new$1(SFluxTest.scala:1572)
at org.scalatest.SuperEngine.registerNestedBranch(Engine.scala:595)
at org.scalatest.FreeSpecLike$FreeSpecStringWrapper.$minus(FreeSpecLike.scala:266)
at reactor.core.scala.publisher.SFluxTest.<init>(SFluxTest.scala:36)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
...
Cause: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface reactor.core.Scannable, class java.lang.Object, interface reactor.core.Fuseable, interface reactor.core.publisher.SourceProducer, class reactor.core.publisher.FluxArray, class reactor.core.publisher.Flux, interface reactor.core.CorePublisher, interface org.reactivestreams.Publisher]
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:152)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:365)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:174)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:376)
at reactor.core.scala.publisher.SFluxTest.$anonfun$new$387(SFluxTest.scala:1573)
at org.scalatest.SuperEngine.registerNestedBranch(Engine.scala:595)
at org.scalatest.FreeSpecLike$FreeSpecStringWrapper.$minus(FreeSpecLike.scala:266)
at reactor.core.scala.publisher.SFluxTest.$anonfun$new$1(SFluxTest.scala:1572)
at org.scalatest.SuperEngine.registerNestedBranch(Engine.scala:595)
at org.scalatest.FreeSpecLike$FreeSpecStringWrapper.$minus(FreeSpecLike.scala:266)
...
Cause: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:176)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:152)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:37)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:34)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:152)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:365)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:174)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:376)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:32)
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMockType(InlineByteBuddyMockMaker.java:199)
...
Cause: java.lang.IllegalArgumentException: Unsupported class file major version 57
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:184)
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:166)
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:152)
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:82)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3390)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1930)
at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:217)
at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:120)
at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3396)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:253)
...
Run completed in 2 seconds, 904 milliseconds.
Total number of tests run: 150
Suites: completed 6, aborted 1
Tests: succeeded 148, failed 2, canceled 0, ignored 1, pending 0
*** 1 SUITE ABORTED ***
*** 2 TESTS FAILED ***
> Task :reactor-scala-extensions:test FAILED
> Task :build_2.12.10 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':reactor-scala-extensions:test'.
> There were failing tests. See the report at: file:///Users/thanhbv/ohze/oss/reactor-scala-extensions/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 30s
2 actionable tasks: 2 executed
from reactor-scala-extensions.
Related Issues (20)
- Flux.name does not work with Scannable
- Upgrade reactor-core to 3.1.8.RELEASE
- Emtpy implementation for reactor.core.scala.publisher.ParallelFlux HOT 6
- Upgrade reactor-core to 3.2.x HOT 2
- Target Scala release 2.13 HOT 5
- Remove Deprecated Flux and Mono HOT 9
- SFlux does not have apply(JFlux) HOT 8
- Convert the build using sbt HOT 1
- SFlux.mergeSequentialPublisher(SFlux[SFlux[T]]) has compilation error HOT 1
- Operator merge is missed in SFlux. (It was available in Flux) HOT 1
- Travis CI keeps hanging with gradle 5.x
- Uploading to bintray stop working with gradle > 4.x HOT 1
- FindBugs dependency is causing a Black Duck 'High Risk' assessment for the library HOT 4
- Usage of idomatic scala operators for scan, reduce, fold etc. HOT 2
- SFlux Element Type Should be Declared as Covariant Type HOT 4
- Align fold, reduce and scan ops with scala idoms
- Drop support for 2.11
- Remove Cats Effect HOT 1
- Switch to Github Actions for CI HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactor-scala-extensions.