blob: 09b5a3d7ed26f56c88a50b4a2427a4ccf5d13c52 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2018 IBM Corporation and others.
*
* 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.pde.api.tools.builder.tests.tags;
import org.eclipse.core.runtime.IPath;
import junit.framework.Test;
/**
* Tests valid use of the @noreference tag on fields in classes
*
* @since 1.0
*/
public class ValidClassFieldTagTests extends ValidFieldTagTests {
public ValidClassFieldTagTests(String name) {
super(name);
}
/**
* @return the test suite for class fields
*/
public static Test suite() {
return buildTestSuite(ValidClassFieldTagTests.class);
}
@Override
protected IPath getTestSourcePath() {
return super.getTestSourcePath().append("class"); //$NON-NLS-1$
}
/**
* Tests a valid @noreference tag on three fields in a class
* using an incremental build
*/
public void testValidClassFieldTag1I() {
x1(true);
}
/**
* Tests a valid @noreference tag on three fields in a class
* using a full build
*/
public void testValidClassFieldTag1F() {
x1(false);
}
private void x1(boolean inc) {
deployTagTest("test1.java", inc, false); //$NON-NLS-1$
}
/**
* Tests a valid @noreference tag on three static fields in a class
* using an incremental build
*/
public void testValidClassFieldTag2I() {
x2(true);
}
/**
* Tests a valid @noreference tag on three static fields in a class
* using a full build
*/
public void testValidClassFieldTag2F() {
x2(false);
}
private void x2(boolean inc) {
deployTagTest("test2.java", inc, false); //$NON-NLS-1$
}
/**
* Tests a valid @noreference tag on three fields in an inner class
* using an incremental build
*/
public void testValidClassFieldTag5I() {
x5(true);
}
/**
* Tests a valid @noreference tag on three fields in an inner class
* using a full build
*/
public void testValidClassFieldTag5F() {
x5(false);
}
private void x5(boolean inc) {
deployTagTest("test5.java", inc, false); //$NON-NLS-1$
}
/**
* Tests a valid @noreference tag on three static fields in an inner class
* using an incremental build
*/
public void testValidClassFieldTag6I() {
x6(true);
}
/**
* Tests a valid @noreference tag on three static fields in an inner class
* using a full build
*/
public void testValidClassFieldTag6F() {
x6(false);
}
private void x6(boolean inc) {
deployTagTest("test6.java", inc, false); //$NON-NLS-1$
}
/**
* Tests a valid @noreference tag on a variety of fields in inner and outer classes
* using an incremental build
*/
public void testValidClassFieldTag7I() {
x7(true);
}
/**
* Tests a valid @noreference tag on a variety of fields in inner and outer classes
* using a full build
*/
public void testValidClassFieldTag7F() {
x7(false);
}
private void x7(boolean inc) {
deployTagTest("test7.java", inc, false); //$NON-NLS-1$
}
/**
* Tests a valid @noreference tag on three fields in a class in the default package
* using an incremental build
*/
public void testValidClassFieldTag8I() {
x8(true);
}
/**
* Tests a valid @noreference tag on three fields in a class in the default package
* using a full build
*/
public void testValidClassFieldTag8F() {
x8(false);
}
private void x8(boolean inc) {
deployTagTest("test8.java", inc, true); //$NON-NLS-1$
}
}