Presentation by Simon Vergauwen about Spek.
Spek is a BDD testing framework in Kotlin, written by Jetbrains. This talk also covers advanced testing with unMock, Mockito & PowerMock.
mocked. See http://g.co/androidstudio/not-mocked for details. at android.util.JsonWriter.beginObject(JsonWriter.java) at be.appfoundry.spekdemo.util.JsonUtil.writeToJson(JsonWriter.kt:12) at be.appfoundry.spekdemo.util.JsonWriterSpekTest $1$1$1$1.invoke(JsonWriterSpekTest.kt:21) at be.appfoundry.spekdemo.util.JsonWriterSpekTest $1$1$1$1.invoke(JsonWriterSpekTest.kt:14) at org.jetbrains.spek.engine.Scope$Test.execute(Scope.kt:110) at org.jetbrains.spek.engine.Scope$Test.execute(Scope.kt:83)
//spek test }) class URLItemTCKTest : ItemTCK(URLItem("www.appfoundry.be")) class TwitterItemTCKTest : ItemTCK(TwitterItem("@AppFoundryBE")) class MailItemTCKTest : ItemTCK(MailItem("[email protected]")) class PhoneItemTCKTest : ItemTCK(PhoneItem("003238719966"))
at be.appfoundry.spekdemo.util.RxTest$1$1$2.invoke(RxTest.kt:22) at be.appfoundry.spekdemo.util.RxTest$1$1$2.invoke(RxTest.kt:16) at org.jetbrains.spek.engine.Scope$Test.execute(Scope.kt:110) at org.jetbrains.spek.engine.Scope$Test.execute(Scope.kt:83) ... Caused by: java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked. See http://g.co/androidstudio/not-mocked for details. at android.os.Looper.getMainLooper(Looper.java) at rx.android.schedulers.AndroidSchedulers $MainThreadSchedulerHolder.<clinit>(AndroidSchedulers.java:31) ... 32 more
@Rule public RxJavaResetRule rxJavaResetRule = new RxJavaResetRule(); TestSubscriber<Long> testSubscriber; @Before public void setUp() { testSubscriber = new TestSubscriber<>(); } }