aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-22 10:11:46 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-24 11:32:09 -0400
commit758611576a4f6ceb7020e3cee1f70bbd1cc0b4d8 (patch)
tree63befde48bed261a1fbed42543206711818858a3 /test
parent3d321f42c19d2166204079ba7eece66b36037042 (diff)
downloadcbt-758611576a4f6ceb7020e3cee1f70bbd1cc0b4d8.tar.gz
cbt-758611576a4f6ceb7020e3cee1f70bbd1cc0b4d8.tar.bz2
cbt-758611576a4f6ceb7020e3cee1f70bbd1cc0b4d8.zip
ScalaPB plugin
Diffstat (limited to 'test')
-rw-r--r--test/test.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index 6004311..61e98df 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -269,6 +269,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)