Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound')
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test1.java60
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test2.java14
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3a.java18
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3b.java24
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3c.java16
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3d.java16
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4a.java16
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4b.java28
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5_MethodMappingGeneral.java48
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5a.java34
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5b.java16
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5c.java54
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5d.java10
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5e.java10
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/torole/LayeredTeamsTests.java44
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test1.java66
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test2.java20
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3a.java18
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3b.java26
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3c.java16
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3d.java14
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4a.java20
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4b.java28
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5_MethodMappingGeneral.java46
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5a.java44
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5b.java14
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5c.java64
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5d.java12
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5e.java10
29 files changed, 403 insertions, 403 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test1.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test1.java
index 851da3466..f30784e9c 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test1.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test1.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -56,65 +56,65 @@ public class Test1 extends RetargetableFileBasedModelTest
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_1");
}
-
+
protected void setUp() throws Exception
{
super.setUp();
getTestSetting().setUp();
}
-
+
public void testExistenceOfTypesInJavaModel() throws JavaModelException
{
assertNotNull(getTestSetting().getTeamJavaElement());
assertTrue(getTestSetting().getTeamJavaElement().exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
}
-
+
public void testExistenceofTypeInOTModel() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
}
-
+
public void testRoleProperty() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
-
+
assertTrue(roleOTElem.isRole());
assertTrue(roleOTElem instanceof IRoleType);
}
-
+
public void testRelationTeamToRole() throws JavaModelException
{
assertNotNull(getTestSetting().getTeamJavaElement());
assertTrue(getTestSetting().getTeamJavaElement().exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType teamOTElem = OTModelManager.getOTElement(getTestSetting().getTeamJavaElement());
assertNotNull(teamOTElem);
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
//{OTModelUpdate
IJavaElement[] childrenOfTeam = teamOTElem.getRoleTypes();
-//haebor}
+//haebor}
assertNotNull(childrenOfTeam);
assertEquals(1, childrenOfTeam.length);
assertEquals(childrenOfTeam[0].getElementName(), roleOTElem.getElementName());
@@ -122,33 +122,33 @@ public class Test1 extends RetargetableFileBasedModelTest
// FIXME(SH): check whether there is any use in supporting getInnerTypes()
////{OTModelUpdate
// IType[] innerTypesOfTeam = teamOTElem.getInnerTypes();
-////haebor}
+////haebor}
// assertNotNull(innerTypesOfTeam);
// assertTrue(innerTypesOfTeam.length == 1);
// assertEquals(innerTypesOfTeam[0].getElementName(), roleOTElem.getElementName());
}
-
+
public void testRelationRoleToTeam() throws JavaModelException
{
assertNotNull(getTestSetting().getTeamJavaElement());
assertTrue(getTestSetting().getTeamJavaElement().exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType teamOTElem = OTModelManager.getOTElement(getTestSetting().getTeamJavaElement());
assertNotNull(teamOTElem);
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
assertEquals(roleRoleOTElem.getTeamJavaType(), teamOTElem.getCorrespondingJavaElement());
assertEquals(roleRoleOTElem.getTeam(), teamOTElem);
}
-
+
public void testRelationRoleToBase() throws JavaModelException
{
// TODO(jwl): Resource access hardcoded here!
@@ -157,13 +157,13 @@ public class Test1 extends RetargetableFileBasedModelTest
"boundtoordinary",
"boundtoordinary.basepkg",
"SampleBase.java");
-
+
IType baseJavaElem = baseUnit.getType("SampleBase");
assertNotNull(baseJavaElem);
- assertTrue(baseJavaElem.exists());
-
+ assertTrue(baseJavaElem.exists());
+
IType curRole = getTestSetting().getRoleJavaElement();
-
+
assertNotNull(curRole);
assertTrue(curRole.exists());
@@ -173,5 +173,5 @@ public class Test1 extends RetargetableFileBasedModelTest
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
assertEquals(baseJavaElem, roleRoleOTElem.getBaseClass());
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test2.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test2.java
index 8309dc009..ca4ab0186 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test2.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test2.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -36,7 +36,7 @@ import org.eclipse.jdt.core.JavaModelException;
public class Test2 extends Test1
{
private final String FIELD_NAME = "roleAttr";
-
+
public Test2(String name)
{
super(name);
@@ -52,13 +52,13 @@ public class Test2 extends Test1
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_2");
}
-
+
public void testContainmentOfAttributInRoleClass() throws JavaModelException
{
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3a.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3a.java
index 7c3e7081f..b8cd14d7d 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3a.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3a.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -36,8 +36,8 @@ import org.eclipse.jdt.core.JavaModelException;
*/
public class Test3a extends Test1
{
- protected final String METHOD_NAME = "roleMethod";
-
+ protected final String METHOD_NAME = "roleMethod";
+
public Test3a(String name)
{
super(name);
@@ -53,13 +53,13 @@ public class Test3a extends Test1
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_3a");
}
-
+
public void testContainmentOfMethodInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -67,6 +67,6 @@ public class Test3a extends Test1
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[0]);
assertNotNull(method);
- assertTrue(method.exists());
+ assertTrue(method.exists());
}
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3b.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3b.java
index 323b419c8..7709d26bc 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3b.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3b.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -37,8 +37,8 @@ import org.eclipse.jdt.core.JavaModelException;
public class Test3b extends Test3a
{
private final String PARA_NAME = "paraObj";
- private final String PARA_TYPE = "QString;";
-
+ private final String PARA_TYPE = "QString;";
+
public Test3b(String name)
{
super(name);
@@ -59,7 +59,7 @@ public class Test3b extends Test3a
super.setUpSuite();
getTestSetting().setTeamClass("Team_3b");
}
-
+
public void testInputParameterOfMethodInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -68,19 +68,19 @@ public class Test3b extends Test3a
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[] { PARA_TYPE });
assertNotNull(method);
assertTrue(method.exists());
-
+
int numOfParas = method.getNumberOfParameters();
assertTrue(numOfParas == 1);
-
+
String[] paraNames = method.getParameterNames();
assertTrue(paraNames.length == 1);
assertEquals(paraNames[0], PARA_NAME);
-
+
String[] paraTypes = method.getParameterTypes();
assertTrue(paraTypes.length == 1);
assertEquals(paraTypes[0], PARA_TYPE);
}
-
+
public void testContainmentOfMethodInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -88,6 +88,6 @@ public class Test3b extends Test3a
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[] { PARA_TYPE });
assertNotNull(method);
- assertTrue(method.exists());
+ assertTrue(method.exists());
}
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3c.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3c.java
index 83f302e31..96049401d 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3c.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3c.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -36,7 +36,7 @@ import org.eclipse.jdt.core.JavaModelException;
*/
public class Test3c extends Test3a
{
- private final String RETURN_TYPE = "QString;";
+ private final String RETURN_TYPE = "QString;";
public Test3c(String name)
{
@@ -53,13 +53,13 @@ public class Test3c extends Test3a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_3c");
}
-
+
public void testOutputParameterOfMethod() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -68,7 +68,7 @@ public class Test3c extends Test3a
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[0]);
assertNotNull(method);
assertTrue(method.exists());
-
+
String returnType = method.getReturnType();
assertEquals(returnType, RETURN_TYPE);
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3d.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3d.java
index 1252d852b..5b8ab2d63 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3d.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test3d.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -37,8 +37,8 @@ import org.eclipse.jdt.core.JavaModelException;
public class Test3d extends Test3a
{
private final String METHOD_NAME = "roleMethod";
- private final String EXC_TYPE = "QException;";
-
+ private final String EXC_TYPE = "QException;";
+
public Test3d(String name)
{
super(name);
@@ -54,7 +54,7 @@ public class Test3d extends Test3a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
@@ -69,7 +69,7 @@ public class Test3d extends Test3a
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[0]);
assertNotNull(method);
assertTrue(method.exists());
-
+
String[] exceptionTypes = method.getExceptionTypes();
assertTrue(exceptionTypes.length == 1);
assertEquals(exceptionTypes[0], EXC_TYPE);
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4a.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4a.java
index 138c56da3..2adb06217 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4a.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4a.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -40,7 +40,7 @@ public class Test4a extends Test1
{
return "AnInnerClass";
}
-
+
public Test4a(String name)
{
super(name);
@@ -56,7 +56,7 @@ public class Test4a extends Test1
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
@@ -67,9 +67,9 @@ public class Test4a extends Test1
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IType innerclass = getTestSetting().getRoleJavaElement().getType(getInnerclassName());
assertNotNull(innerclass);
assertTrue(innerclass.exists());
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4b.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4b.java
index d7295b51b..2b738423f 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4b.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test4b.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -58,38 +58,38 @@ public class Test4b extends Test4a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_4b");
}
-
+
public void testExistenceOfInnerclassInOTModel() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IType innerclass = getTestSetting().getRoleJavaElement().getType(getInnerclassName());
assertNotNull(innerclass);
assertTrue(innerclass.exists());
-
+
IOTType innerclassOTElem = OTModelManager.getOTElement(innerclass);
- assertNotNull(innerclassOTElem);
+ assertNotNull(innerclassOTElem);
}
-
+
public void testTeamPropertyOfInnerclass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IType innerclass = getTestSetting().getRoleJavaElement().getType(getInnerclassName());
assertNotNull(innerclass);
assertTrue(innerclass.exists());
-
+
IOTType innerclassOTElem = OTModelManager.getOTElement(innerclass);
assertNotNull(innerclassOTElem);
-
+
assertTrue(innerclassOTElem.isTeam());
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5_MethodMappingGeneral.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5_MethodMappingGeneral.java
index 28b6d92b2..af440f8da 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5_MethodMappingGeneral.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5_MethodMappingGeneral.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -40,35 +40,35 @@ import org.eclipse.objectteams.otdt.core.OTModelManager;
public abstract class Test5_MethodMappingGeneral extends Test1
{
private String _roleMethodName = "roleMethod";
- private String _baseMethodName = "baseMethod";
+ private String _baseMethodName = "baseMethod";
private String _mappingName;
-
+
public Test5_MethodMappingGeneral(String name)
{
super(name);
}
-
+
protected String getMappingName()
{
return _mappingName;
}
-
+
protected String getRoleMethodName()
{
return _roleMethodName;
}
-
+
protected String getBaseMethodName()
{
return _baseMethodName;
}
-
+
protected void setMappingName(String mappingName)
{
_mappingName = mappingName;
}
-
-
+
+
public void testContainmentOfMethodInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -76,46 +76,46 @@ public abstract class Test5_MethodMappingGeneral extends Test1
IMethod method = getTestSetting().getRoleJavaElement().getMethod(getRoleMethodName(), new String[0]);
assertNotNull(method);
- assertTrue(method.exists());
+ assertTrue(method.exists());
}
-
-
+
+
public void testExistenceOfMethodMapping() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertEquals(mappings[0].getElementName(), getMappingName());
}
-
+
public void testMappingPropertyBoundRoleMethod() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
-
+
IMethod roleMethod = getTestSetting().getRoleJavaElement().getMethod(getRoleMethodName(), new String[0]);
assertNotNull(roleMethod);
assertTrue(roleMethod.exists());
-
+
IMethod boundRoleMethod = mappings[0].getRoleMethod();
assertNotNull(boundRoleMethod);
assertTrue(roleMethod.exists());
-
+
assertEquals(boundRoleMethod, roleMethod);
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5a.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5a.java
index 9a659e272..bec741d81 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5a.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5a.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -66,25 +66,25 @@ public class Test5a extends Test5_MethodMappingGeneral
super.setUpSuite();
getTestSetting().setTeamClass("Team_5a");
}
-
+
public void testMappingCalloutProperty() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
-
+
assertTrue(mappings[0].getMappingKind() == IOTJavaElement.CALLOUT_MAPPING);
assertTrue(mappings[0] instanceof ICalloutMapping);
}
-
-
+
+
public void testMappingPropertyBoundBaseMethod() throws JavaModelException
{
// TODO(jwl): Resource access hardcoded here!
@@ -93,31 +93,31 @@ public class Test5a extends Test5_MethodMappingGeneral
"boundtoordinary",
"boundtoordinary.basepkg",
"SampleBase.java");
-
+
IType baseJavaElem = baseUnit.getType("SampleBase");
assertNotNull(baseJavaElem);
assertTrue(baseJavaElem.exists());
-
+
IMethod baseMethod = baseJavaElem.getMethod(getBaseMethodName(), new String[0]);
assertNotNull(baseMethod);
assertTrue(baseMethod.exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertTrue(mappings[0] instanceof ICalloutMapping);
-
+
ICalloutMapping calloutMapping = (ICalloutMapping) mappings[0];
assertNotNull(calloutMapping);
IMethod boundBaseMethod = calloutMapping.getBoundBaseMethod();
-
+
assertEquals(boundBaseMethod, baseMethod);
}
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5b.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5b.java
index 01a74e750..bd371f675 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5b.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5b.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -32,13 +32,13 @@ import junit.framework.Test;
* and the role class is bound to a baseclass
*/
-//TODO (kaschja) test special properties of "=>"-MethodMappings by the time there is a distinction between "->" and "=>" in the OT-model
+//TODO (kaschja) test special properties of "=>"-MethodMappings by the time there is a distinction between "->" and "=>" in the OT-model
public class Test5b extends Test5a
{
public Test5b(String name)
{
super(name);
-//TODO (kaschja) replace "->" by "=>" by the time there is a distinction between them in the OT-model
+//TODO (kaschja) replace "->" by "=>" by the time there is a distinction between them in the OT-model
setMappingName("roleMethod -> baseMethod");
}
@@ -52,13 +52,13 @@ public class Test5b extends Test5a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_5b");
}
-
+
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5c.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5c.java
index f20cc2158..c55416f13 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5c.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5c.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -45,7 +45,7 @@ import org.eclipse.objectteams.otdt.core.OTModelManager;
public class Test5c extends Test5_MethodMappingGeneral
{
private int _expectedCallinKind;
-
+
public Test5c(String name)
{
super(name);
@@ -69,38 +69,38 @@ public class Test5c extends Test5_MethodMappingGeneral
super.setUpSuite();
getTestSetting().setTeamClass("Team_5c");
}
-
-
+
+
protected int getExpectedCallinKind()
{
return _expectedCallinKind;
}
-
+
protected void setExpectedCallinKind(int kind)
{
_expectedCallinKind = kind;
}
-
+
public void testMappingCallinProperty() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertEquals(mappings[0].getElementName(), getMappingName());
-
+
assertTrue(mappings[0].getMappingKind() == IOTJavaElement.CALLIN_MAPPING);
assertTrue(mappings[0] instanceof ICallinMapping);
}
-
-
+
+
public void testMappingPropertyBoundBaseMethod() throws JavaModelException
{
// TODO(jwl): Resource access hardcoded here!
@@ -109,53 +109,53 @@ public class Test5c extends Test5_MethodMappingGeneral
"boundtoordinary",
"boundtoordinary.basepkg",
"SampleBase.java");
-
+
IType baseJavaElem = baseUnit.getType("SampleBase");
assertNotNull(baseJavaElem);
assertTrue(baseJavaElem.exists());
-
+
IMethod baseMethod = baseJavaElem.getMethod(getBaseMethodName(), new String[0]);
assertNotNull(baseMethod);
assertTrue(baseMethod.exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertTrue(mappings[0] instanceof ICallinMapping);
-
+
ICallinMapping callinMapping = (ICallinMapping) mappings[0];
assertNotNull(callinMapping);
IMethod[] boundBaseMethods = callinMapping.getBoundBaseMethods();
-
+
assertTrue(boundBaseMethods.length == 1);
assertEquals(boundBaseMethods[0], baseMethod);
}
-
+
public void testCallinKind() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertEquals(mappings[0].getElementName(), getMappingName());
-
+
assertTrue(mappings[0] instanceof ICallinMapping);
ICallinMapping callinMapping = (ICallinMapping) mappings[0];
-
+
assertTrue(callinMapping.getCallinKind() == getExpectedCallinKind());
}
-
+
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5d.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5d.java
index 329808f2b..bdea67507 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5d.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5d.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -51,7 +51,7 @@ public class Test5d extends Test5c
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5e.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5e.java
index 98bfa40c1..68472607a 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5e.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toordinary/Test5e.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -51,7 +51,7 @@ public class Test5e extends Test5c
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/torole/LayeredTeamsTests.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/torole/LayeredTeamsTests.java
index 25cd897b4..80aad0b49 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/torole/LayeredTeamsTests.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/torole/LayeredTeamsTests.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -59,19 +59,19 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
}
-
+
public void testFieldAnchor() throws Exception
{
getTestSetting().setTeamClass("Team_1");
getTestSetting().setUp();
performTest("TeamB.java", "TeamB", getTestSetting().getRoleJavaElement());
}
-
+
/** Same as above but using old path syntax. */
public void testFieldAnchorPath() throws Exception
{
@@ -79,15 +79,15 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
getTestSetting().setUp();
performTest("TeamB.java", "TeamB", getTestSetting().getRoleJavaElement());
}
-
-
+
+
public void testBaseAnchor() throws Exception
{
getTestSetting().setTeamClass("Team_2");
getTestSetting().setUp();
performTest("TeamB.java", "TeamB", getAndTestInnerRole());
}
-
+
/** Same as above but using old path syntax. */
public void testBaseAnchorPath() throws Exception
{
@@ -95,7 +95,7 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
getTestSetting().setUp();
performTest("TeamB.java", "TeamB", getAndTestInnerRole());
}
-
+
public void testQualifiedBaseAnchor() throws Exception
{
getTestSetting().setTeamClass("Team_3");
@@ -103,7 +103,7 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
performTest("TeamB.java", "TeamB", getAndTestInnerRole());
}
// no path variant of Team_3: path syntax "SampleRole.base.LowerRole" is illegal.
-
+
// witness for IllegalArgumentException in Signature.appendTypeSignature(char[], int, boolean, StringBuffer, boolean)
// requires capability to handle type anchors in char-encoded signatures
public void testAnchoredCalloutSignature() throws Exception
@@ -113,14 +113,14 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
performTest("TeamB.java", "TeamB", getTestSetting().getRoleJavaElement());
for (IJavaElement member : _roleOTElem.getChildren()) {
if (member.getElementType() == IOTJavaElement.CALLOUT_MAPPING) {
- assertEquals("Callout signature not as expected",
+ assertEquals("Callout signature not as expected",
"isEqual(LowerRole<@teamB>) -> isEqual(LowerRole<@teamB>)",
member.getElementName());
}
}
}
-
+
private IType getAndTestInnerRole() throws JavaModelException {
IType roleMid= getTestSetting().getRoleJavaElement();
assertTrue(roleMid.exists());
@@ -131,10 +131,10 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
assertEquals(type.getElementName(), "InnerRole");
return type;
}
-
-
-
- void performTest(String baseCU, String baseTeam, IType roleJavaElement)
+
+
+
+ void performTest(String baseCU, String baseTeam, IType roleJavaElement)
throws JavaModelException
{
ICompilationUnit baseUnit = getCompilationUnit(
@@ -149,9 +149,9 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
assertTrue("first child should be the role (IType)", baseChildren[0] instanceof IType);
IType baseJavaElem= (IType) baseChildren[0];
assertNotNull(baseJavaElem);
- assertTrue(baseJavaElem.exists());
+ assertTrue(baseJavaElem.exists());
assertEquals(baseJavaElem.getElementName(), "LowerRole");
-
+
assertNotNull(roleJavaElement);
assertTrue(roleJavaElement.exists());
@@ -164,9 +164,9 @@ public class LayeredTeamsTests extends RetargetableFileBasedModelTest
assertNotNull(baseClassJavaElem);
assertEquals("base class should be expected lower role", baseJavaElem, baseClassJavaElem);
-
+
IOTType baseClassOTElem = OTModelManager.getOTElement(baseClassJavaElem);
assertNotNull(baseClassOTElem);
assertTrue("base class should be role", baseClassOTElem.isRole());
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test1.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test1.java
index 0bf12daa9..de6cef869 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test1.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test1.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -56,66 +56,66 @@ public class Test1 extends RetargetableFileBasedModelTest
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
getTestSetting().setTeamClass("Team_1");
super.setUpSuite();
}
-
+
protected void setUp() throws Exception
{
super.setUp();
getTestSetting().setUp();
}
-
+
public void testExistenceOfTypesInJavaModel() throws JavaModelException
{
assertNotNull(getTestSetting().getTeamJavaElement());
assertTrue(getTestSetting().getTeamJavaElement().exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
}
-
+
public void testExistenceofTypeInOTModel() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
}
-
+
public void testRoleProperty() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
-
+
assertTrue(roleOTElem.isRole());
assertTrue(roleOTElem instanceof IRoleType);
}
-
+
public void testRelationTeamToRole() throws JavaModelException
{
assertNotNull(getTestSetting().getTeamJavaElement());
assertTrue(getTestSetting().getTeamJavaElement().exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType teamOTElem = OTModelManager.getOTElement(getTestSetting().getTeamJavaElement());
assertNotNull(teamOTElem);
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
//{OTModelUpdate
IJavaElement[] childrenOfTeam = teamOTElem.getRoleTypes();
-//haebor}
+//haebor}
assertNotNull(childrenOfTeam);
assertEquals(1, childrenOfTeam.length);
@@ -124,33 +124,33 @@ public class Test1 extends RetargetableFileBasedModelTest
// FIXME(SH): check whether there is any use in supporting getInnerTypes()
////{OTModelUpdate
// IType[] innerTypesOfTeam = teamOTElem.getInnerTypes();
-////haebor}
+////haebor}
// assertNotNull(innerTypesOfTeam);
// assertTrue(innerTypesOfTeam.length == 1);
// assertEquals(innerTypesOfTeam[0].getElementName(), roleOTElem.getElementName());
}
-
+
public void testRelationRoleToTeam() throws JavaModelException
{
assertNotNull(getTestSetting().getTeamJavaElement());
assertTrue(getTestSetting().getTeamJavaElement().exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType teamOTElem = OTModelManager.getOTElement(getTestSetting().getTeamJavaElement());
assertNotNull(teamOTElem);
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
assertEquals(roleRoleOTElem.getTeamJavaType(), teamOTElem.getCorrespondingJavaElement());
assertEquals(roleRoleOTElem.getTeam(), teamOTElem);
}
-
+
public void testRelationRoleToBase() throws JavaModelException
{
ICompilationUnit baseUnit = getCompilationUnit(
@@ -160,8 +160,8 @@ public class Test1 extends RetargetableFileBasedModelTest
"TeamB.java");
IType baseJavaElem = baseUnit.getType("TeamB");
assertNotNull(baseJavaElem);
- assertTrue(baseJavaElem.exists());
-
+ assertTrue(baseJavaElem.exists());
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
@@ -169,10 +169,10 @@ public class Test1 extends RetargetableFileBasedModelTest
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
assertEquals(baseJavaElem, roleRoleOTElem.getBaseClass());
- }
-
+ }
+
public void testTeamPropertyOfBaseClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -180,13 +180,13 @@ public class Test1 extends RetargetableFileBasedModelTest
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
-
+
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
IType baseClassJavaElem = roleRoleOTElem.getBaseClass();
assertNotNull(baseClassJavaElem);
-
+
IOTType baseClassOTElem = OTModelManager.getOTElement(baseClassJavaElem);
assertNotNull(baseClassOTElem);
assertTrue(baseClassOTElem.isTeam());
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test2.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test2.java
index e8ffb7999..c2221a878 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test2.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test2.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -35,11 +35,11 @@ import org.eclipse.jdt.core.JavaModelException;
*/
public class Test2 extends Test1
{
-
+
private final String FIELD_NAME = "roleAttr";
-
-
-
+
+
+
public Test2(String name)
{
super(name);
@@ -55,13 +55,13 @@ public class Test2 extends Test1
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_2");
}
-
+
public void testContainmentOfAttributInRoleClass() throws JavaModelException
{
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3a.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3a.java
index 05c508520..139cef04a 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3a.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3a.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -37,8 +37,8 @@ import org.eclipse.jdt.core.JavaModelException;
public class Test3a extends Test1
{
- protected final String METHOD_NAME = "roleMethod";
-
+ protected final String METHOD_NAME = "roleMethod";
+
public Test3a(String name)
{
super(name);
@@ -54,15 +54,15 @@ public class Test3a extends Test1
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_3a");
}
-
-
+
+
public void testContainmentOfMethodInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3b.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3b.java
index 794a3e108..406e50dd8 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3b.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3b.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -37,9 +37,9 @@ import org.eclipse.jdt.core.JavaModelException;
public class Test3b extends Test3a
{
private final String PARA_NAME = "paraObj";
- private final String PARA_TYPE = "QString;";
-
-
+ private final String PARA_TYPE = "QString;";
+
+
public Test3b(String name)
{
super(name);
@@ -55,13 +55,13 @@ public class Test3b extends Test3a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_3b");
}
-
+
public void testInputParameterOfMethodInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -70,19 +70,19 @@ public class Test3b extends Test3a
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[] { PARA_TYPE });
assertNotNull(method);
assertTrue(method.exists());
-
+
int numOfParas = method.getNumberOfParameters();
assertTrue(numOfParas == 1);
-
+
String[] paraNames = method.getParameterNames();
assertTrue(paraNames.length == 1);
assertEquals(paraNames[0], PARA_NAME);
-
+
String[] paraTypes = method.getParameterTypes();
assertTrue(paraTypes.length == 1);
assertEquals(paraTypes[0], PARA_TYPE);
}
-
+
public void testContainmentOfMethodInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3c.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3c.java
index 747d9c726..93793f17f 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3c.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3c.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -36,7 +36,7 @@ import org.eclipse.jdt.core.JavaModelException;
*/
public class Test3c extends Test3a
{
- private final String RETURN_TYPE = "QString;";
+ private final String RETURN_TYPE = "QString;";
public Test3c(String name)
@@ -54,13 +54,13 @@ public class Test3c extends Test3a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_3c");
}
-
+
public void testOutputParameterOfMethod() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
@@ -69,7 +69,7 @@ public class Test3c extends Test3a
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[0]);
assertNotNull(method);
assertTrue(method.exists());
-
+
String returnType = method.getReturnType();
assertEquals(returnType, RETURN_TYPE);
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3d.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3d.java
index fe7b8d84b..392c9e2ac 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3d.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test3d.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -37,9 +37,9 @@ import org.eclipse.jdt.core.JavaModelException;
public class Test3d extends Test3a
{
private final String METHOD_NAME = "roleMethod";
- private final String EXC_TYPE = "QException;";
+ private final String EXC_TYPE = "QException;";
+
-
public Test3d(String name)
{
super(name);
@@ -70,7 +70,7 @@ public class Test3d extends Test3a
IMethod method = getTestSetting().getRoleJavaElement().getMethod(METHOD_NAME, new String[0]);
assertNotNull(method);
assertTrue(method.exists());
-
+
String[] exceptionTypes = method.getExceptionTypes();
assertTrue(exceptionTypes.length == 1);
assertEquals(exceptionTypes[0], EXC_TYPE);
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4a.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4a.java
index ef3165709..50e89e62c 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4a.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4a.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -36,12 +36,12 @@ import org.eclipse.jdt.core.JavaModelException;
*/
public class Test4a extends Test1
{
-
+
protected String getInnerclassName()
{
return "AnInnerClass";
}
-
+
public Test4a(String name)
{
super(name);
@@ -57,20 +57,20 @@ public class Test4a extends Test1
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_4a");
}
-
+
public void testContainmentOfInnerclassInRoleClass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IType innerclass = getTestSetting().getRoleJavaElement().getType(getInnerclassName());
assertNotNull(innerclass);
assertTrue(innerclass.exists());
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4b.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4b.java
index 15726f796..79aec875e 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4b.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test4b.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -59,38 +59,38 @@ public class Test4b extends Test4a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_4b");
}
-
+
public void testExistenceOfInnerClassInOTModel() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IType innerclass = getTestSetting().getRoleJavaElement().getType(getInnerclassName());
assertNotNull(innerclass);
assertTrue(innerclass.exists());
-
+
IOTType innerclassOTElem = OTModelManager.getOTElement(innerclass);
- assertNotNull(innerclassOTElem);
+ assertNotNull(innerclassOTElem);
}
-
+
public void testTeamPropertyOfInnerclass() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IType innerclass = getTestSetting().getRoleJavaElement().getType(getInnerclassName());
assertNotNull(innerclass);
assertTrue(innerclass.exists());
-
+
IOTType innerclassOTElem = OTModelManager.getOTElement(innerclass);
assertNotNull(innerclassOTElem);
-
+
assertTrue(innerclassOTElem.isTeam());
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5_MethodMappingGeneral.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5_MethodMappingGeneral.java
index a9329b8dd..b3b45aedf 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5_MethodMappingGeneral.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5_MethodMappingGeneral.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -38,32 +38,32 @@ import org.eclipse.objectteams.otdt.core.OTModelManager;
*/
public abstract class Test5_MethodMappingGeneral extends Test1
{
-
+
private String _roleMethodName = "roleMethod";
- private String _baseMethodName = "baseMethod";
+ private String _baseMethodName = "baseMethod";
private String _mappingName;
-
-
+
+
public Test5_MethodMappingGeneral(String name)
{
super(name);
}
-
+
protected String getMappingName()
{
return _mappingName;
}
-
+
protected String getRoleMethodName()
{
return _roleMethodName;
}
-
+
protected String getBaseMethodName()
{
return _baseMethodName;
}
-
+
protected void setMappingName(String mappingName)
{
_mappingName = mappingName;
@@ -76,45 +76,45 @@ public abstract class Test5_MethodMappingGeneral extends Test1
IMethod method = getTestSetting().getRoleJavaElement().getMethod(getRoleMethodName(), new String[0]);
assertNotNull(method);
- assertTrue(method.exists());
+ assertTrue(method.exists());
}
-
+
public void testExistenceOfMethodMapping() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertEquals(mappings[0].getElementName(), getMappingName());
}
-
+
public void testMappingPropertyBoundRoleMethod() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
-
+
IMethod roleMethod = getTestSetting().getRoleJavaElement().getMethod(getRoleMethodName(), new String[0]);
assertNotNull(roleMethod);
assertTrue(roleMethod.exists());
-
+
IMethod boundRoleMethod = mappings[0].getRoleMethod();
assertNotNull(boundRoleMethod);
assertTrue(roleMethod.exists());
-
+
assertEquals(boundRoleMethod, roleMethod);
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5a.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5a.java
index 6ddfdb548..9a81ce443 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5a.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5a.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -61,7 +61,7 @@ public class Test5a extends Test5_MethodMappingGeneral
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
@@ -72,20 +72,20 @@ public class Test5a extends Test5_MethodMappingGeneral
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
-
+
assertTrue(mappings[0].getMappingKind() == IOTJavaElement.CALLOUT_MAPPING);
assertTrue(mappings[0] instanceof ICalloutMapping);
}
-
-
+
+
public void testMappingPropertyBoundBaseMethod() throws JavaModelException
{
ICompilationUnit baseUnit = getCompilationUnit(
@@ -93,34 +93,34 @@ public class Test5a extends Test5_MethodMappingGeneral
"boundtoteam",
"boundtoteam.teampkg",
"TeamC.java");
-
+
IType baseJavaElem = baseUnit.getType("TeamC");
assertNotNull(baseJavaElem);
assertTrue(baseJavaElem.exists());
-
+
IMethod baseMethod = baseJavaElem.getMethod(getBaseMethodName(), new String[0]);
assertNotNull(baseMethod);
assertTrue(baseMethod.exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertTrue(mappings[0] instanceof ICalloutMapping);
-
+
ICalloutMapping calloutMapping = (ICalloutMapping) mappings[0];
assertNotNull(calloutMapping);
IMethod boundBaseMethod = calloutMapping.getBoundBaseMethod();
-
+
assertEquals(boundBaseMethod, baseMethod);
}
-
+
public void testRelationRoleToBase() throws JavaModelException
{
ICompilationUnit baseUnit = getCompilationUnit(
@@ -130,8 +130,8 @@ public class Test5a extends Test5_MethodMappingGeneral
"TeamC.java");
IType baseJavaElem = baseUnit.getType("TeamC");
assertNotNull(baseJavaElem);
- assertTrue(baseJavaElem.exists());
-
+ assertTrue(baseJavaElem.exists());
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
@@ -139,7 +139,7 @@ public class Test5a extends Test5_MethodMappingGeneral
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
assertEquals(baseJavaElem, roleRoleOTElem.getBaseClass());
- }
+ }
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5b.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5b.java
index 1e147258e..461067db1 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5b.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5b.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -32,14 +32,14 @@ import junit.framework.Test;
* and the role class is bound to a baseclass which is a team class
*/
-//TODO (kaschja) test special properties of "=>"-MethodMappings by the time there is a distinction between "->" and "=>" in the OT-model
+//TODO (kaschja) test special properties of "=>"-MethodMappings by the time there is a distinction between "->" and "=>" in the OT-model
public class Test5b extends Test5a
{
public Test5b(String name)
{
super(name);
-//TODO (kaschja) replace "->" by "=>" by the time there is a distinction between them in the OT-model
+//TODO (kaschja) replace "->" by "=>" by the time there is a distinction between them in the OT-model
setMappingName("roleMethod -> baseMethod");
}
@@ -53,7 +53,7 @@ public class Test5b extends Test5a
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5c.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5c.java
index 708caa81c..cabfbb35f 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5c.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5c.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -46,7 +46,7 @@ public class Test5c extends Test5_MethodMappingGeneral
{
private int _expectedCallinKind;
-
+
public Test5c(String name)
{
super(name);
@@ -64,42 +64,42 @@ public class Test5c extends Test5_MethodMappingGeneral
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
getTestSetting().setTeamClass("Team_5c");
}
-
+
protected int getExpectedCallinKind()
{
return _expectedCallinKind;
}
-
+
protected void setExpectedCallinKind(int kind)
{
_expectedCallinKind = kind;
}
-
+
public void testMappingCallinProperty() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertEquals(mappings[0].getElementName(), getMappingName());
-
+
assertTrue(mappings[0].getMappingKind() == IOTJavaElement.CALLIN_MAPPING);
assertTrue(mappings[0] instanceof ICallinMapping);
}
-
-
+
+
public void testMappingPropertyBoundBaseMethod() throws JavaModelException
{
ICompilationUnit baseUnit = getCompilationUnit(
@@ -107,55 +107,55 @@ public class Test5c extends Test5_MethodMappingGeneral
"boundtoteam",
"boundtoteam.teampkg",
"TeamC.java");
-
+
IType baseJavaElem = baseUnit.getType("TeamC");
assertNotNull(baseJavaElem);
assertTrue(baseJavaElem.exists());
-
+
IMethod baseMethod = baseJavaElem.getMethod(getBaseMethodName(), new String[0]);
assertNotNull(baseMethod);
assertTrue(baseMethod.exists());
-
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertTrue(mappings[0] instanceof ICallinMapping);
-
+
ICallinMapping callinMapping = (ICallinMapping) mappings[0];
assertNotNull(callinMapping);
IMethod[] boundBaseMethods = callinMapping.getBoundBaseMethods();
-
+
assertTrue(boundBaseMethods.length == 1);
assertEquals(boundBaseMethods[0], baseMethod);
}
-
+
public void testCallinKind() throws JavaModelException
{
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
-
+
IOTType roleOTElem = OTModelManager.getOTElement(getTestSetting().getRoleJavaElement());
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
- IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
+ IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
IMethodMapping[] mappings = roleRoleOTElem.getMethodMappings();
assertTrue(mappings.length == 1);
assertEquals(mappings[0].getElementName(), getMappingName());
-
+
assertTrue(mappings[0] instanceof ICallinMapping);
ICallinMapping callinMapping = (ICallinMapping) mappings[0];
-
+
assertTrue(callinMapping.getCallinKind() == getExpectedCallinKind());
}
-
+
public void testRelationRoleToBase() throws JavaModelException
{
ICompilationUnit baseUnit = getCompilationUnit(
@@ -165,8 +165,8 @@ public class Test5c extends Test5_MethodMappingGeneral
"TeamC.java");
IType baseJavaElem = baseUnit.getType("TeamC");
assertNotNull(baseJavaElem);
- assertTrue(baseJavaElem.exists());
-
+ assertTrue(baseJavaElem.exists());
+
assertNotNull(getTestSetting().getRoleJavaElement());
assertTrue(getTestSetting().getRoleJavaElement().exists());
@@ -174,8 +174,8 @@ public class Test5c extends Test5_MethodMappingGeneral
assertNotNull(roleOTElem);
assertTrue(roleOTElem instanceof IRoleType);
IRoleType roleRoleOTElem = (IRoleType) roleOTElem;
-
+
assertEquals(baseJavaElem, roleRoleOTElem.getBaseClass());
- }
-
+ }
+
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5d.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5d.java
index e90ef3e90..e5926a63e 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5d.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5d.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -35,7 +35,7 @@ import org.eclipse.objectteams.otdt.core.ICallinMapping;
*/
public class Test5d extends Test5c
{
-
+
public Test5d(String name)
{
super(name);
@@ -52,7 +52,7 @@ public class Test5d extends Test5c
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5e.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5e.java
index 961b62c16..ece52cfd5 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5e.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/role/bound/toteam/Test5e.java
@@ -1,20 +1,20 @@
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
- *
+ *
* Copyright 2004, 2010 Fraunhofer Gesellschaft, Munich, Germany,
* for its Fraunhofer Institute and Computer Architecture and Software
* Technology (FIRST), Berlin, Germany and Technical University Berlin,
* Germany.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Please visit http://www.eclipse.org/objectteams for updates and contact.
- *
+ *
* Contributors:
* Fraunhofer FIRST - Initial API and implementation
* Technical University Berlin - Initial API and implementation
@@ -52,7 +52,7 @@ public class Test5e extends Test5c
.getName());
return suite;
}
-
+
public void setUpSuite() throws Exception
{
super.setUpSuite();

Back to the top