aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 08:25:31 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 08:25:31 -0500
commit4561db0a58053ffebaf2830fbed13f5b9eb8fb1f (patch)
tree1ea304bd85bcb082800120fb182823c988a1de29 /test
parent27fd0f346b901d8f86ff71d408c4b8cf16dc91f7 (diff)
downloadcbt-4561db0a58053ffebaf2830fbed13f5b9eb8fb1f.tar.gz
cbt-4561db0a58053ffebaf2830fbed13f5b9eb8fb1f.tar.bz2
cbt-4561db0a58053ffebaf2830fbed13f5b9eb8fb1f.zip
support for flat classloader and enhanced resources example
Diffstat (limited to 'test')
-rw-r--r--test/test.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index e9da8bf..ecc44ca 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -327,6 +327,18 @@ object Main{
assert(res.out.contains("All tests passed"), res.out)
}
+ {
+ val res = runCbt("../examples/resources-example", Seq("run"))
+ assert(res.exit0)
+ assert(res.out.contains("via parent.parent: false 0"), res.out)
+ }
+
+ {
+ val res = runCbt("../examples/resources-example", Seq("runFlat"))
+ assert(res.exit0)
+ assert(res.out.contains("via parent.parent: true 2"), res.out)
+ }
+
System.err.println(" DONE!")
System.err.println( successes.toString ++ " succeeded, "++ failures.toString ++ " failed" )
if(failures > 0) System.exit(1) else System.exit(0)