Skip to content

Commit

Permalink
Fix AndroidJUnit actual on JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Sep 23, 2019
1 parent 241a91f commit 34b20d2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package splitties.internal.test

import org.junit.runner.Description
import org.junit.runner.notification.RunNotifier

actual typealias AndroidJUnit4 = JUnit4

class JUnit4(klass: Class<*>) : Runner() {

private val actualRunner = org.junit.runners.JUnit4(klass)

override fun run(notifier: RunNotifier?) {
actualRunner.run(notifier)
}

override fun getDescription(): Description = actualRunner.description
}

0 comments on commit 34b20d2

Please sign in to comment.