Class com.javiersc.network.either.logger.NetworkEitherLoggerTest

5

tests

0

failures

0

ignored

3.090s

duration

100%

successful

Tests

Test Method name Duration Result
Pretty print Http failure[jvm] Pretty print Http failure 0.322s passed
Pretty print Local failure[jvm] Pretty print Local failure 0.013s passed
Pretty print Remote failure[jvm] Pretty print Remote failure 2.590s passed
Pretty print Success[jvm] Pretty print Success 0.059s passed
Pretty print Unknown failure[jvm] Pretty print Unknown failure 0.106s passed

Standard output

?[91m ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ?[0m
?[91m │ Remote not available test │ ERROR.(NetworkEitherLoggerTest.kt:233) │ file NetworkEitherLoggerTest.kt │ class NetworkEitherLoggerTest │ fun Pretty print Remote failure │ line 233 │ ?[0m
?[91m ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ ?[0m
?[91m │ Remote not available                                                                                                                                                              │ ?[0m
?[91m └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ?[0m
?[93m ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ?[0m
?[93m │ Error test │ INFO.(NetworkEitherLoggerTest.kt:123) │ file NetworkEitherLoggerTest.kt │ class NetworkEitherLoggerTest │ fun Pretty print Http failure │ line 123 │ ?[0m
?[93m ├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ ?[0m
?[93m │ {                                                                                                                                                               │ ?[0m
?[93m │     "body": {                                                                                                                                                   │ ?[0m
?[93m │         "error": ":("                                                                                                                                           │ ?[0m
?[93m │     },                                                                                                                                                          │ ?[0m
?[93m │     "code": 404,                                                                                                                                                │ ?[0m
?[93m │     "headers": {                                                                                                                                                │ ?[0m
?[93m │         "ContentType": [                                                                                                                                        │ ?[0m
?[93m │             "application/json"                                                                                                                                  │ ?[0m
?[93m │         ]                                                                                                                                                       │ ?[0m
?[93m │     }                                                                                                                                                           │ ?[0m
?[93m │ }                                                                                                                                                               │ ?[0m
?[93m └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ?[0m
?[93m ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ?[0m
?[93m │ Success test │ INFO.(NetworkEitherLoggerTest.kt:107) │ file NetworkEitherLoggerTest.kt │ class NetworkEitherLoggerTest │ fun Pretty print Success │ line 107 │ ?[0m
?[93m ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ ?[0m
?[93m │ {                                                                                                                                                            │ ?[0m
?[93m │     "body": {                                                                                                                                                │ ?[0m
?[93m │         "name": "Auri"                                                                                                                                       │ ?[0m
?[93m │     },                                                                                                                                                       │ ?[0m
?[93m │     "code": 200,                                                                                                                                             │ ?[0m
?[93m │     "headers": {                                                                                                                                             │ ?[0m
?[93m │         "ContentType": [                                                                                                                                     │ ?[0m
?[93m │             "application/json"                                                                                                                               │ ?[0m
?[93m │         ]                                                                                                                                                    │ ?[0m
?[93m │     }                                                                                                                                                        │ ?[0m
?[93m │ }                                                                                                                                                            │ ?[0m
?[93m └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ?[0m
?[31m ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ?[0m
?[31m │ Unknown error test │ ASSERT.(NetworkEitherLoggerTest.kt:288) │ file NetworkEitherLoggerTest.kt │ class NetworkEitherLoggerTest │ fun Pretty print Unknown failure │ line 288 │ ?[0m
?[31m ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ ?[0m
?[31m │ java.lang.IllegalStateException: Unknown error                                                                                                                               │ ?[0m
?[31m │ 	at com.javiersc.network.either.logger.NetworkEitherLoggerTest.Pretty print Unknown failure(NetworkEitherLoggerTest.kt:54)                                                   │ ?[0m
?[31m │ 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                           │ ?[0m
?[31m │ 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                                                         │ ?[0m
?[31m │ 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                                                 │ ?[0m
?[31m │ 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)                                                                                                               │ ?[0m
?[31m │ 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)                                                                                     │ ?[0m
?[31m │ 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)                                                                                      │ ?[0m
?[31m │ 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)                                                                                       │ ?[0m
?[31m │ 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)                                                                                        │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)                                                                                                         │ ?[0m
?[31m │ 	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)                                                                                     │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)                                                                                                            │ ?[0m
?[31m │ 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)                                                                                       │ ?[0m
?[31m │ 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)                                                                                        │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)                                                                                                              │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)                                                                                                          │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)                                                                                                        │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)                                                                                                          │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)                                                                                                         │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)                                                                                                         │ ?[0m
?[31m │ 	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)                                                                                                                │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:108)                                                         │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)                                                               │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)                                                               │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)                                    │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)                                                          │ ?[0m
?[31m │ 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                           │ ?[0m
?[31m │ 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                                                         │ ?[0m
?[31m │ 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                                                 │ ?[0m
?[31m │ 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)                                                                                                               │ ?[0m
?[31m │ 	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)                                                                                     │ ?[0m
?[31m │ 	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)                                                                                     │ ?[0m
?[31m │ 	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)                                                                     │ ?[0m
?[31m │ 	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)                                                      │ ?[0m
?[31m │ 	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)                                                                                                                   │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)                                                                                       │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)                                                                │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)                                                                                     │ ?[0m
?[31m │ 	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)                                                                                      │ ?[0m
?[31m │ 	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)                                                                    │ ?[0m
?[31m │ 	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)                                            │ ?[0m
?[31m │ 	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)                                             │ ?[0m
?[31m │ 	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)                                                                                 │ ?[0m
?[31m │ 	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)                                                                                │ ?[0m
?[31m │                                                                                                                                                                              │ ?[0m
?[31m └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ?[0m
?[91m ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ?[0m
?[91m │ Internet not available test │ ERROR.(NetworkEitherLoggerTest.kt:178) │ file NetworkEitherLoggerTest.kt │ class NetworkEitherLoggerTest │ fun Pretty print Local failure │ line 178 │ ?[0m
?[91m ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ ?[0m
?[91m │ Internet not available                                                                                                                                                             │ ?[0m
?[91m └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ?[0m