Class com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest

18

tests

0

failures

0

ignored

0.441s

duration

100%

successful

Tests

Test Duration Result
receive_callsObserveWithCorrectParams 0.003s passed
receive_codecEncodeThrows_returnsNull 0.003s passed
receive_whenDecodeReturnsNull_returnsNull 0.003s passed
receive_whenEnvironmentOk_returnsEnvironmentConfig 0.005s passed
receive_whenNonOk_returnsNull 0.003s passed
receive_whenOkButNoData_returnsNull 0.003s passed
receive_whenOk_returnsBaseDataGroup 0.003s passed
receive_whenTimeout_returnsNull 0.106s passed
receive_whenTransactionIdMismatch_returnsNull 0.003s passed
receive_writeToDeviceThrows_returnsNull 0.003s passed
send_callsWriteToDeviceWithEncodedBytes 0.011s passed
send_codecDecodeThrows_returnsFalse 0.005s passed
send_observeFromDeviceThrows_returnsFalse 0.009s passed
send_whenDecodeReturnsNull_returnsFalse 0.160s passed
send_whenEnvironmentOk_returnsTrue 0.005s passed
send_whenNonOk_returnsFalse 0.003s passed
send_whenOk_returnsTrue 0.002s passed
send_whenTimeout_returnsFalse 0.111s passed

Standard output

Error: (test) Error while sending message to HAD device: 
Warn: (test) Timeout when waiting for a response with id 1 from HAD device: 
Error: (test) Error while sending message to HAD device: 
Warn: (test) Response has no data from HAD device: 
Error: (test) Error while sending message to HAD device: 
Error: (test) HAD device  returned a result with a non-OK status code
Warn: (test) Timeout when waiting for a response with id 1 from HAD device: 
Warn: (test) Response has no data from HAD device: 
Error: (test) HAD device  returned a result with a non-OK status code

Standard error

java.util.NoSuchElementException: Expected at least one element matching the predicate
	at kotlinx.coroutines.flow.FlowKt__ReduceKt.first(Reduce.kt:110)
	at kotlinx.coroutines.flow.FlowKt.first(Unknown Source)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invokeSuspend(BleDataTransmitImpl.kt:109)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:50)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:149)
	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
	at kotlinx.coroutines.TimeoutKt.withTimeout-KLykuaI(Timeout.kt:72)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1.invokeSuspend(BleDataTransmitImpl.kt:101)
	at _COROUTINE._BOUNDARY._(CoroutineDebugging.kt:42)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1.invokeSuspend(BleDataTransmitImpl.kt:101)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2.invokeSuspend(BleDataTransmitImpl.kt:98)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl.send-dWUq8MI(BleDataTransmitImpl.kt:66)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_whenDecodeReturnsNull_returnsFalse$1.invokeSuspend(BleDataTransmitTest.kt:490)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:317)
Caused by: java.util.NoSuchElementException: Expected at least one element matching the predicate
	at kotlinx.coroutines.flow.FlowKt__ReduceKt.first(Reduce.kt:110)
	at kotlinx.coroutines.flow.FlowKt.first(Unknown Source)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invokeSuspend(BleDataTransmitImpl.kt:109)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:50)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:149)
	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
	at kotlinx.coroutines.TimeoutKt.withTimeout-KLykuaI(Timeout.kt:72)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1.invokeSuspend(BleDataTransmitImpl.kt:101)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
java.util.NoSuchElementException: Expected at least one element matching the predicate
	at kotlinx.coroutines.flow.FlowKt__ReduceKt.first(Reduce.kt:110)
	at kotlinx.coroutines.flow.FlowKt.first(Unknown Source)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invokeSuspend(BleDataTransmitImpl.kt:109)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:50)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:149)
	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
	at kotlinx.coroutines.TimeoutKt.withTimeout-KLykuaI(Timeout.kt:72)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1.invokeSuspend(BleDataTransmitImpl.kt:101)
	at _COROUTINE._BOUNDARY._(CoroutineDebugging.kt:42)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1.invokeSuspend(BleDataTransmitImpl.kt:101)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2.invokeSuspend(BleDataTransmitImpl.kt:98)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl.send-dWUq8MI(BleDataTransmitImpl.kt:66)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_codecDecodeThrows_returnsFalse$1.invokeSuspend(BleDataTransmitTest.kt:562)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:317)
Caused by: java.util.NoSuchElementException: Expected at least one element matching the predicate
	at kotlinx.coroutines.flow.FlowKt__ReduceKt.first(Reduce.kt:110)
	at kotlinx.coroutines.flow.FlowKt.first(Unknown Source)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invokeSuspend(BleDataTransmitImpl.kt:109)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1$1.invoke(BleDataTransmitImpl.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:50)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:149)
	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
	at kotlinx.coroutines.TimeoutKt.withTimeout-KLykuaI(Timeout.kt:72)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1.invokeSuspend(BleDataTransmitImpl.kt:101)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
java.lang.RuntimeException: observe fail
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_observeFromDeviceThrows_returnsFalse$1.invokeSuspend(BleDataTransmitTest.kt:620)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_observeFromDeviceThrows_returnsFalse$1.invoke(BleDataTransmitTest.kt)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_observeFromDeviceThrows_returnsFalse$1.invoke(BleDataTransmitTest.kt)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:317)
	at _COROUTINE._BOUNDARY._(CoroutineDebugging.kt:42)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2$1$response$1.invokeSuspend(BleDataTransmitImpl.kt:101)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl$sendAndReceive$2.invokeSuspend(BleDataTransmitImpl.kt:98)
	at com.nikted.had.bluetooth.data.transmit.BleDataTransmitImpl.send-dWUq8MI(BleDataTransmitImpl.kt:66)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_observeFromDeviceThrows_returnsFalse$1.invokeSuspend(BleDataTransmitTest.kt:625)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:317)
Caused by: java.lang.RuntimeException: observe fail
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_observeFromDeviceThrows_returnsFalse$1.invokeSuspend(BleDataTransmitTest.kt:620)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_observeFromDeviceThrows_returnsFalse$1.invoke(BleDataTransmitTest.kt)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest$send_observeFromDeviceThrows_returnsFalse$1.invoke(BleDataTransmitTest.kt)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:317)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.test.TestDispatcher.processEvent$kotlinx_coroutines_test(TestDispatcher.kt:24)
	at kotlinx.coroutines.test.TestCoroutineScheduler.tryRunNextTaskUnless$kotlinx_coroutines_test(TestCoroutineScheduler.kt:99)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$workRunner$1.invokeSuspend(TestBuilders.kt:326)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at kotlinx.coroutines.test.TestBuildersJvmKt.createTestResult(TestBuildersJvm.kt:10)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:309)
	at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:167)
	at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0$default(TestBuilders.kt:159)
	at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0$default(Unknown Source)
	at com.nikted.had.bluetooth.unit.data.transmit.BleDataTransmitImplTest.send_observeFromDeviceThrows_returnsFalse(BleDataTransmitTest.kt:604)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:54)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:53)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:92)
	at jdk.proxy1/jdk.proxy1.$Proxy4.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:183)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:132)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:103)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:63)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:121)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:71)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)