aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2017-03-24 14:42:46 -0400
committerGitHub <noreply@github.com>2017-03-24 14:42:46 -0400
commitb1da71bdb69b01feb4ce7bd90a39ffef4e8dc1b1 (patch)
treec97032dd1026334a57fdf16a5c1ff2ecd947d397 /test
parent376abfa34a53b1bb0ffd546650429fff52ba90a0 (diff)
parent01855e0ed4eae2b1ab11b854176da940347f6131 (diff)
downloadcbt-b1da71bdb69b01feb4ce7bd90a39ffef4e8dc1b1.tar.gz
cbt-b1da71bdb69b01feb4ce7bd90a39ffef4e8dc1b1.tar.bz2
cbt-b1da71bdb69b01feb4ce7bd90a39ffef4e8dc1b1.zip
Merge pull request #452 from cvogt/scalapb-plugin
ScalaPB plugin
Diffstat (limited to 'test')
-rw-r--r--test/test.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index 9bb3f6b..dbf4f9e 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -270,6 +270,12 @@ object Main{
}
{
+ val res = runCbt("../examples/scalapb-example", Seq("run"))
+ assert(res.exit0)
+ assert(res.out contains "age: 123", res.out ++ "\n--\n" ++ res.err)
+ }
+
+ {
val res = runCbt("broken-build/build-class-with-wrong-arguments", Seq("run"))
assert(!res.exit0)
assert(res.err contains s"Expected class ${lib.buildClassName}(val context: Context), but found different constructor", res.err)
@@ -388,6 +394,7 @@ object Main{
{
val sourceFile = cbtHome / "examples" / "scalafix-example" / "Main.scala"
val sourceBefore = sourceFile.readAsString
+ runCbt("../examples/scalafix-example", Seq("clean","force"))
val res = runCbt("../examples/scalafix-example", Seq("compile"))
assert(res.exit0)
val sourceAfter = sourceFile.readAsString