blob: 518d42f298c99c80ff041426e56d6102c1607837 [file] [log] [blame]
/**********************************************************************
* 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
**********************************************************************/
package org.eclipse.objectteams.otdt.tests.selection;
import junit.framework.Test;
import org.eclipse.jdt.core.tests.compiler.parser.SelectionJavadocTest;
/**
* Testing selection of OT-specific javadoc.
*
* @author stephan
* @since 1.2.5
*/
public class OTSelectionJavadocTest extends SelectionJavadocTest {
public OTSelectionJavadocTest(String testName) {
super(testName);
}
public static Test suite() {
return buildAllCompliancesTestSuite(OTSelectionJavadocTest.class);
}
/**
* Select role file name after @role javadoc tag
*/
public void testRoleTag1()
{
setUnit("T1.java",
"/**\n" +
" * @role MyRoFi\n" +
" */\n" +
"public team class T1 {\n" +
"}\n");
findJavadoc("MyRoFi");
assertValid("/**<SelectOnType:MyRoFi>*/\n");
}
}