You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@toree.apache.org by ch...@apache.org on 2016/09/27 14:28:11 UTC

[2/4] incubator-toree git commit: Fixed test that tried to initialize without a kernel.

Fixed test that tried to initialize without a kernel.


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/0dc67018
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/0dc67018
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/0dc67018

Branch: refs/heads/master
Commit: 0dc67018ca358e013d57acabd6ac5a795425ac8e
Parents: 7e947b4
Author: Marius Van Niekerk <mn...@vm179.corp.maxpointinteractive.com>
Authored: Wed Sep 21 13:36:40 2016 -0400
Committer: Marius van Niekerk <ma...@gmail.com>
Committed: Tue Sep 27 10:23:47 2016 -0400

----------------------------------------------------------------------
 .../scala/integration/PostProcessorSpecForIntegration.scala | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/0dc67018/kernel/src/test/scala/integration/PostProcessorSpecForIntegration.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/integration/PostProcessorSpecForIntegration.scala b/kernel/src/test/scala/integration/PostProcessorSpecForIntegration.scala
index 82223d3..8b392ad 100644
--- a/kernel/src/test/scala/integration/PostProcessorSpecForIntegration.scala
+++ b/kernel/src/test/scala/integration/PostProcessorSpecForIntegration.scala
@@ -19,10 +19,10 @@ package integration
 
 import java.io.OutputStream
 
-import org.apache.toree.kernel.api.KernelLike
+import org.apache.toree.kernel.api.Kernel
 import org.apache.toree.kernel.interpreter.scala.ScalaInterpreter
 import org.apache.toree.kernel.protocol.v5.magic.PostProcessor
-import org.apache.toree.utils.{MultiOutputStream, TaskManager}
+import org.apache.toree.utils.{MultiOutputStream}
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpec, Matchers}
 
@@ -37,12 +37,9 @@ class PostProcessorSpecForIntegration extends FunSpec with Matchers
     //       for performance improvements
     scalaInterpreter = new ScalaInterpreter {
       override protected val multiOutputStream = MultiOutputStream(List(mock[OutputStream], lastResultOut))
-
-      override protected def bindKernelVariable(kernel: KernelLike): Unit = { }
     }
 
-    // scalaInterpreter.start()
-    scalaInterpreter.init(mock[KernelLike])
+    scalaInterpreter.init(mock[Kernel])
 
     postProcessor = new PostProcessor(scalaInterpreter)
   }