Skip to content

Commit

Permalink
Fixed regression from v1.0.6 in Scala module - glue code wasn't loade…
Browse files Browse the repository at this point in the history
…d at all. Closes #321
  • Loading branch information
aslakhellesoy committed May 17, 2012
1 parent 605210c commit 92150d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [Git master](https://github.com/cucumber/cucumber-jvm/compare/v1.0.7...master)

* [Scala] Fixed regression from v1.0.6 in Scala module - glue code wasn't loaded at all. ([#321](https://github.com/cucumber/cucumber-jvm/issues/321) Aslak Hellesøy)

## [1.0.8](https://github.com/cucumber/cucumber-jvm/compare/v1.0.7...v1.0.8)

* [Core] Ability to create `DataTable` objects from a List of objects while specifying what header columns (fields) to use (Aslak Hellesøy)
Expand Down
5 changes: 3 additions & 2 deletions scala/src/main/scala/cucumber/runtime/ScalaBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ class ScalaBackend(ignore:ResourceLoader) extends Backend {
//I don't believe scala has to do anything to clean out it's world
}

def loadGlue(glue: Glue, gluePaths: JList[String]) {
def loadGlue(glue: Glue, gluePaths: JList[String]) {
val cl = new ClasspathResourceLoader(Thread.currentThread().getContextClassLoader)
val dslClasses = gluePaths flatMap {cl.getDescendants(classOf[ScalaDsl], _) } filter { cls =>
val packages = gluePaths map { cucumber.io.MultiLoader.packageName(_) }
val dslClasses = packages flatMap { cl.getDescendants(classOf[ScalaDsl], _) } filter { cls =>
try {
cls.getDeclaredConstructor()
true
Expand Down
1 change: 1 addition & 0 deletions scala/src/test/scala/cucumber/runtime/RunCukesTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import org.junit.runner.RunWith
import cucumber.junit.Cucumber

@RunWith(classOf[Cucumber])
@Cucumber.Options(strict=true)
class RunCukesTest

0 comments on commit 92150d5

Please sign in to comment.