blob: 8d68736dbf5c2d696006a03723669c6a9444cc5b [file] [log] [blame]
/*******************************************************************************
* 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 uses of @noreference on interface fields
*
* @since 1.0
*/
public class ValidInterfaceFieldTagTests extends ValidFieldTagTests {
/**
* Constructor
* @param name
*/
public ValidInterfaceFieldTagTests(String name) {
super(name);
}
/* (non-Javadoc)
* @see org.eclipse.pde.api.tools.builder.tests.tags.ValidJavadocTagFieldTests#getTestSourcePath()
*/
protected IPath getTestSourcePath() {
return super.getTestSourcePath().append("interface");
}
/**
* @return the test for this class
*/
public static Test suite() {
return buildTestSuite(ValidInterfaceFieldTagTests.class);
}
/**
* Tests the valid use of an @noreference tag on a field in an interface
* using an incremental build
*/
public void testValidInterfaceFieldTag1I() {
deployTagTest(TESTING_PACKAGE, "test1", false, IncrementalProjectBuilder.INCREMENTAL_BUILD, true);
}
/**
* Tests the valid use of an @noreference tag on a field in an interface
* using a full build
*/
public void testValidInterfaceFieldTag1F() {
deployTagTest(TESTING_PACKAGE, "test1", false, IncrementalProjectBuilder.FULL_BUILD, true);
}
/**
* Tests the valid use of an @noreference tag on a field in an outer interface
* using an incremental build
*/
public void testValidInterfaceFieldTag2I() {
deployTagTest(TESTING_PACKAGE, "test2", false, IncrementalProjectBuilder.INCREMENTAL_BUILD, true);
}
/**
* Tests the valid use of an @noreference tag on a field in an outer interface
* using a full build
*/
public void testValidInterfaceFieldTag2F() {
deployTagTest(TESTING_PACKAGE, "test2", false, IncrementalProjectBuilder.FULL_BUILD, true);
}
/**
* Tests the valid use of an @noreference tag on a field in an inner interface
* using an incremental build
*/
public void testValidInterfaceFieldTag3I() {
deployTagTest(TESTING_PACKAGE, "test3", false, IncrementalProjectBuilder.INCREMENTAL_BUILD, true);
}
/**
* Tests the valid use of an @noreference tag on a field in an inner interface
* using a full build
*/
public void testValidInterfaceFieldTag3F() {
deployTagTest(TESTING_PACKAGE, "test3", false, IncrementalProjectBuilder.FULL_BUILD, true);
}
/**
* Tests the valid use of an @noreference tag on fields in inner / outer interfaces
* using an incremental build
*/
public void testValidInterfaceFieldTag4I() {
deployTagTest(TESTING_PACKAGE, "test4", false, IncrementalProjectBuilder.INCREMENTAL_BUILD, true);
}
/**
* Tests the valid use of an @noreference tag on fields in inner / outer interfaces
* using a full build
*/
public void testValidInterfaceFieldTag4F() {
deployTagTest(TESTING_PACKAGE, "test4", false, IncrementalProjectBuilder.FULL_BUILD, true);
}
}