File tree Expand file tree Collapse file tree 7 files changed +52
-6
lines changed
expected_output/basic/akka/actor/typed
input/basic/akka/actor/typed
scala/com/typesafe/genjavadoc Expand file tree Collapse file tree 7 files changed +52
-6
lines changed Original file line number Diff line number Diff line change 1+ package akka .actor .typed ;
2+ public class DispatcherSelector$ implements scala .Serializable {
3+ /**
4+ * Static reference to the singleton instance of this Scala object.
5+ */
6+ public static final DispatcherSelector$ MODULE$ = null ;
7+ public DispatcherSelector$ () { throw new RuntimeException (); }
8+ private java .lang .Object readResolve () { throw new RuntimeException (); }
9+ }
Original file line number Diff line number Diff line change 1+ package akka .actor .typed ;
2+ public abstract class DispatcherSelector extends akka .actor .typed .Props {
3+ static private java .lang .Object readResolve () { throw new RuntimeException (); }
4+ static public abstract boolean canEqual (Object that ) ;
5+ static public abstract boolean equals (Object that ) ;
6+ static public abstract Object productElement (int n ) ;
7+ static public abstract int productArity () ;
8+ static public scala .collection .Iterator <java .lang .Object > productIterator () { throw new RuntimeException (); }
9+ static public java .lang .String productPrefix () { throw new RuntimeException (); }
10+ static public java .lang .String productElementName (int n ) { throw new RuntimeException (); }
11+ static public scala .collection .Iterator <java .lang .String > productElementNames () { throw new RuntimeException (); }
12+ static public abstract akka .actor .typed .Props next () ;
13+ public DispatcherSelector () { throw new RuntimeException (); }
14+ }
Original file line number Diff line number Diff line change 1+ package akka .actor .typed ;
2+ public abstract class Props implements scala .Product , scala .Serializable {
3+ public Props () { throw new RuntimeException (); }
4+ public abstract akka .actor .typed .Props next () ;
5+ }
Original file line number Diff line number Diff line change 1+ package akka .actor .typed
2+
3+ abstract class Props private [akka] () extends Product with Serializable {
4+ private [akka] def next : Props
5+ }
6+
7+ sealed abstract class DispatcherSelector extends Props
8+
9+ object DispatcherSelector
Original file line number Diff line number Diff line change 11package com .typesafe .genjavadoc
22
3+ import java .io .File
4+
35import util ._
46
57import scala .sys .process ._
68
79object BasicSpec {
8- def sources : Seq [String ] = Seq (
9- " src/test/resources/input/basic/test.scala" ,
10- " src/test/resources/input/basic/root.scala" ,
11- " src/test/resources/input/basic/akka/Main.scala"
12- )
10+ def sources : Seq [String ] = CompilerSpec .traverseDirectory(new File (" src/test/resources/input/basic" )).map(_.getAbsolutePath)
1311}
1412
1513/** Test basic behaviour of genjavadoc with standard settings */
Original file line number Diff line number Diff line change 11package com .typesafe .genjavadoc
22
3+ import java .io .File
4+
35import util ._
46
57/** Test behaviour of genjavadoc with strict visibility enabled */
68class StrictVisibilitySpec extends CompilerSpec {
79
8- override def sources = Seq ( " src/test/resources/input/strict_visibility/test.scala " )
10+ override def sources = CompilerSpec .traverseDirectory( new File ( " src/test/resources/input/strict_visibility" )).map(_.getAbsolutePath )
911 override def expectedPath : String = " src/test/resources/expected_output/strict_visibility"
1012 override def extraSettings = Seq (" strictVisibility=true" )
1113
Original file line number Diff line number Diff line change @@ -50,3 +50,12 @@ trait CompilerSpec {
5050
5151
5252}
53+ object CompilerSpec {
54+ def traverseDirectory (dir : File ): Seq [File ] = {
55+ dir.listFiles.flatMap { file : File =>
56+ if (file.isFile) Seq (file)
57+ else if (file.isDirectory) traverseDirectory(file)
58+ else Seq .empty
59+ }
60+ }
61+ }
You can’t perform that action at this time.
0 commit comments