@@ -83,7 +83,8 @@ class MultiplicityTest extends FunSuite with BeforeAndAfterAll {
...
@@ -83,7 +83,8 @@ class MultiplicityTest extends FunSuite with BeforeAndAfterAll {
TypeSystem.getInstance().defineTypes(tDef)
TypeSystem.getInstance().defineTypes(tDef)
}
}
test("test1"){
@Test
deftest1{
valb=newInstanceBuilder
valb=newInstanceBuilder
importb._
importb._
...
@@ -108,7 +109,8 @@ class MultiplicityTest extends FunSuite with BeforeAndAfterAll {
...
@@ -108,7 +109,8 @@ class MultiplicityTest extends FunSuite with BeforeAndAfterAll {
}
}
}
}
test("WrongMultiplicity"){
@Test(expectedExceptions=Array(classOf[AtlasException]),expectedExceptionsMessageRegExp="A multiplicty of more than one requires a collection type for attribute 'stringSet'")
defWrongMultiplicity{
valb=newTypesBuilder
valb=newTypesBuilder
importb._
importb._
valtDef=types{
valtDef=types{
...
@@ -117,9 +119,6 @@ class MultiplicityTest extends FunSuite with BeforeAndAfterAll {
...
@@ -117,9 +119,6 @@ class MultiplicityTest extends FunSuite with BeforeAndAfterAll {