Skip to content
This repository
Browse code

Organized imports because we cannot build the project from Sbt

Is it caused by caching of the ScalaIDE? o.O
  • Loading branch information...
commit d985a2b9a6124e5ac6b87b7c5bacd093a768aaae 1 parent 2fd9979
Richard O. Legendi authored

Showing 1 changed file with 12 additions and 31 deletions. Show diff stats Hide diff stats

  1. +12 31 src/main/scala/org/scalatest/specs2/Spec2Runner.scala
43 src/main/scala/org/scalatest/specs2/Spec2Runner.scala
... ... @@ -1,41 +1,22 @@
1 1 package org.scalatest.specs2
2 2
  3 +import org.specs2.reporter.NotifierReporter
  4 +import org.specs2.reporter.DefaultSelection
3 5 import org.scalatest.Distributor
4   -import org.scalatest.Filter
5   -import org.scalatest.Reporter
  6 +import org.specs2.specification.SpecificationStructure
6 7 import org.scalatest.Stopper
7   -import org.scalatest.Style
  8 +import org.scalatest.Reporter
8 9 import org.scalatest.Suite
  10 +import org.specs2.main.Arguments
  11 +import org.scalatest.Style
  12 +import org.scalatest.Filter
9 13 import org.scalatest.Tracker
  14 +import org.scalatest.events.InfoProvided
  15 +import org.scalatest.specs2.notifiers.ScalaTestNotifier
10 16 import org.specs2.Specs2Bridge._
11   -import org.specs2.main.Arguments
12   -import org.specs2.mutable.Specification
13   -import org.specs2.specification.Action
14   -import org.specs2.specification.Example
15   -import org.specs2.specification.SpecificationStructure
16   -import org.specs2.specification.Step
17   -import org.specs2.text.MarkupString
18 17 import org.scalatest.Resources
19   -import org.specs2.specification.SpecStart
20   -import org.specs2.specification.Text
21   -import org.specs2.specification.SpecEnd
22   -import org.specs2.specification.SpecStart
23   -import org.specs2.specification.FragmentExecution
24   -import org.specs2.specification.ExecutedFragment
25   -import org.specs2.specification.ExecutingSpecification
26   -import org.specs2.main.Arguments
27   -import org.specs2.specification.ExecutedResult
28   -import scala.reflect.NameTransformer
29   -import org.specs2.specification.ExecutedResult
30   -import org.specs2.specification.ExecutedFragment
31   -import org.specs2.specification.Fragments._
32   -import org.specs2.runner.{ NotifierRunner, JUnitDescriptionsFragments }
33   -import org.specs2.execute.Details
34   -import org.specs2.reporter.{ NotifierReporter, Notifier, DefaultSelection }
35   -import org.scalatest.events._
36   -import org.specs2.specification.SpecificationStructure
37   -import org.specs2.reflect.Classes
38   -import org.scalatest.specs2.notifiers.ScalaTestNotifier
  18 +import org.scalatest.events.NameInfo
  19 +import org.specs2.specification.Fragments
39 20
40 21 /**
41 22 * The central concept in ScalaTest is the suite, a collection of zero to many tests.
@@ -102,7 +83,7 @@ class Spec2Runner(specs2Class: Class[_ <: SpecificationStructure]) extends Suite
102 83 val selection = new DefaultSelection {}
103 84
104 85 // There are methods in the Fragments object to filter specific fragments, like isAnExample
105   - selection.select(arguments)(spec2).fragments.collect(isAnExample).size
  86 + selection.select(arguments)(spec2).fragments.collect(Fragments.isAnExample).size
106 87 }
107 88
108 89 override def run(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter,

0 comments on commit d985a2b

Please sign in to comment.
Something went wrong with that request. Please try again.