org.scalajs.junit.plugin.ScalaJSJUnitPlugin.ScalaJSJUnitPluginComponent
This method generates a method that invokes a test method in the class given its name.
This method generates a method that invokes a test method in the class given its name. These methods have no parameters.
Example:
class Foo { @Test def bar(): Unit @Test def baz(): Unit } object Foo$scalajs$junit$bootstrapper { // This is the method generated by mkInvokeJUnitMethodOnInstanceDef def invoke(instance: AnyRef, methodName: String): Unit = { if (methodName == "bar") instance.asInstanceOf[Foo].bar() else if (methodName == "baz") instance.asInstanceOf[Foo].baz() else throw new NoSuchMethodException(methodName + " not found") } }
This method generates a method that invokes a test method in the module given its name.
This method generates a method that invokes a test method in the module given its name. These methods have no parameters.
Example:
object Foo { @BeforeClass def bar(): Unit @AfterClass def baz(): Unit } object Foo$scalajs$junit$bootstrapper { // This is the method generated by mkInvokeJUnitMethodOnModuleDef def invoke(methodName: String): Unit = { if (methodName == "bar") Foo.bar() else if (methodName == "baz") Foo.baz() else throw new NoSuchMethodException(methodName + " not found") } }