scala - scalatest and SBT issue -- Class is not an accessible org.scalatest.Suite -



scala - scalatest and SBT issue -- Class is not an accessible org.scalatest.Suite -

revision 5 of code has error when running tests using sbt:

https://www.assembla.com/code/opyate-scala-graph-fork-sbt/subversion/changesets/5

i've searched interwebs "class not accessible org.scalatest.suite", but results message in scalatest framework code.

please help me figure out wrong , if it's dependency version issue, compatibility issue, or if tests coded incorrectly.

the details (one example):

suites

@runwith(classof[junitrunner]) class tdegreeroottest extends suites( new tdegree[immutable.graph](immutable.graph), new tdegree[ mutable.graph]( mutable.graph)) shouldmatchers { }

test class

class tdegree[+cc[n,e[x] <: edgelikein[x]] <: graph[n,e] graphlike[n,e,cc[n,e]]] (val factory: graphcompanion[cc]) extends suite shouldmatchers { ... }

the exception

[error] not run test scalax.collection.tdegree: java.lang.illegalargumentexception: class not accessible org.scalatest.suite: scalax.collection.tdegree

scalatest code throws exception

the next needs hold true clazz instance of tdegree:

classof[suite].isassignablefrom(clazz) && modifier.ispublic(clazz.getmodifiers) && !modifier.isabstract(clazz.getmodifiers) && modifier.ispublic(clazz.getconstructor(emptyclassarray: _*).getmodifiers)

it requires no-argument constructor, don't have.

i guess question becomes "how test classes run scalatest if classes not have non-argument constructor?".

what means sbt discovering , handing scalatest class not accessible suite. means bundle access. if public, create sure has public no-arg constructor. i'll @ diffs real quick see if can see culprit.

scala sbt scalatest

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -