| /******************************************************************************* |
| * Copyright (c) 2008 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.pde.api.tools.builder.tests.tags; |
| |
| import junit.framework.Test; |
| |
| import org.eclipse.core.resources.IncrementalProjectBuilder; |
| import org.eclipse.core.runtime.IPath; |
| |
| /** |
| * Tests valid javadoc tags on interface methods |
| * |
| * @since 1.0 |
| */ |
| public class ValidInterfaceMethodTagTests extends ValidMethodTagTests { |
| |
| /** |
| * Constructor |
| * @param name |
| */ |
| public ValidInterfaceMethodTagTests(String name) { |
| super(name); |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.pde.api.tools.builder.tests.ApiBuilderTests#getTestSourcePath() |
| */ |
| protected IPath getTestSourcePath() { |
| return super.getTestSourcePath().append("interface"); |
| } |
| |
| /** |
| * @return the test for this class |
| */ |
| public static Test suite() { |
| return buildTestSuite(ValidInterfaceMethodTagTests.class); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on interface methods |
| * using an incremental build |
| */ |
| public void testValidInterfaceMethodTag1I() { |
| deployTagTest(TESTING_PACKAGE, "test1", true, IncrementalProjectBuilder.INCREMENTAL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on interface methods |
| * using a full build |
| */ |
| public void testValidInterfaceMethodTag1F() { |
| deployTagTest(TESTING_PACKAGE, "test1", true, IncrementalProjectBuilder.FULL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on outer interface methods |
| * using an incremental build |
| */ |
| public void testValidInterfaceMethodTag2I() { |
| deployTagTest(TESTING_PACKAGE, "test2", true, IncrementalProjectBuilder.INCREMENTAL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on outer interface methods |
| * using a full build |
| */ |
| public void testValidInterfaceMethodTag2F() { |
| deployTagTest(TESTING_PACKAGE, "test2", true, IncrementalProjectBuilder.FULL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on inner interface methods |
| * using an incremental build |
| */ |
| public void testValidInterfaceMethodTag3I() { |
| deployTagTest(TESTING_PACKAGE, "test3", true, IncrementalProjectBuilder.INCREMENTAL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on inner interface methods |
| * using a full build |
| */ |
| public void testValidInterfaceMethodTag3F() { |
| deployTagTest(TESTING_PACKAGE, "test3", true, IncrementalProjectBuilder.FULL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on a variety of inner / outer interface methods |
| * using an incremental build |
| */ |
| public void testValidInterfaceMethodTag4I() { |
| deployTagTest(TESTING_PACKAGE, "test4", true, IncrementalProjectBuilder.INCREMENTAL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on a variety of inner / outer interface methods |
| * using a full build |
| */ |
| public void testValidInterfaceMethodTag4F() { |
| deployTagTest(TESTING_PACKAGE, "test4", true, IncrementalProjectBuilder.FULL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on interface methods in the default package |
| * using an incremental build |
| */ |
| public void testValidInterfaceMethodTag5I() { |
| deployTagTest("", "test5", true, IncrementalProjectBuilder.INCREMENTAL_BUILD, true); |
| } |
| |
| /** |
| * Tests the supported @noreference tag on interface methods in the default package |
| * using a full build |
| */ |
| public void testValidInterfaceMethodTag5F() { |
| deployTagTest("", "test5", true, IncrementalProjectBuilder.FULL_BUILD, true); |
| } |
| } |