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/anonymousinnerclass/rolelevel/internal/Test2.java')
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/anonymousinnerclass/rolelevel/internal/Test2.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/anonymousinnerclass/rolelevel/internal/Test2.java b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/anonymousinnerclass/rolelevel/internal/Test2.java
index 2e7e3153e..6f4f82458 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/anonymousinnerclass/rolelevel/internal/Test2.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/model/org/eclipse/objectteams/otdt/tests/otmodel/anonymousinnerclass/rolelevel/internal/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
@@ -28,7 +28,7 @@ import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
/**
- *
+ *
* testcase:
* a role class (defined insight the file of its team class) with a method
* instantiation of an anonymous class inside the method
@@ -37,9 +37,9 @@ import org.eclipse.jdt.core.JavaModelException;
public class Test2 extends LocalClassTest
{
- private final String ANONYMOUS_METHOD_NAME = "additionalMethod";
-
-
+ private final String ANONYMOUS_METHOD_NAME = "additionalMethod";
+
+
public static Test suite()
{
if (true)
@@ -50,7 +50,7 @@ public class Test2 extends LocalClassTest
.getName());
return suite;
}
-
+
public Test2(String name)
{
super(name);
@@ -60,19 +60,19 @@ public class Test2 extends LocalClassTest
{
return "Test2_SampleTeam";
}
-
+
protected String getRoleName()
{
- return "SampleRole";
+ return "SampleRole";
}
-
+
public void testContainmentOfMethodInAnonymousType() throws JavaModelException
{
IType anonymousType = getAnonymousType();
assertNotNull(anonymousType);
-
+
IMethod method = anonymousType.getMethod(ANONYMOUS_METHOD_NAME, new String[0]);
assertNotNull(method);
assertTrue(method.exists());

Back to the top