Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

modified BasicWorkflow

  • Loading branch information...
VC1995 committed Jun 22, 2017
1 parent 33ae3b2 commit 0b36b421f210bfa418d27e4e627c6db66fa10f4d
Showing with 0 additions and 13 deletions.
  1. +0 −13 core/src/it/scala/org/ensime/intg/BasicWorkflow.scala
@@ -38,24 +38,11 @@ class BasicWorkflow extends EnsimeSpec
val blooSpecFile = testRoot / "org/example/BlooSpec.scala"

project ! TypecheckFilesReq(List(Left(blooSpecFile)))
expectMsg(VoidResponse)
var note = asyncHelper.expectMsgType[NewScalaNotesEvent]
asyncHelper.expectMsg(FullTypeCheckCompleteEvent)
note.notes.head.msg should be("not found: value Bloo")

project ! UnloadFileReq(SourceFileInfo(EnsimeFile(blooSpecFile)))
expectMsg(VoidResponse)

project ! TypecheckFilesReq(List(Left(fooFile))) // contains definition for case class Bloo()
expectMsg(VoidResponse)
asyncHelper.expectMsg(FullTypeCheckCompleteEvent)

project ! TypecheckFilesReq(List(Left(blooSpecFile))) // still get scala notes as Foo was loaded on a different PC
expectMsg(VoidResponse)
note = asyncHelper.expectMsgType[NewScalaNotesEvent]
asyncHelper.expectMsg(FullTypeCheckCompleteEvent)
note.notes.head.msg should be("not found: value Bloo")

project ! TypecheckModule(EnsimeProjectId("testing_simple", "compile"))
expectMsg(VoidResponse)
all(asyncHelper.receiveN(3)) should matchPattern {

0 comments on commit 0b36b42

Please sign in to comment.
You can’t perform that action at this time.