Bug 113091 [code manipulation] Generate constructor using should not use code body templates
As the constructor is ready-for-use after creation, TODOs and other additional strings from the code templates should not be inserted. This would also render the source actions more coherent (create delegate method and getter/setter generation do not use templates too).
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/source/GenerateConstructorUsingFieldsTest.java
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.IMethodBinding;
import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.IVariableBinding;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.VariableDeclarationFragment;
import org.eclipse.jdt.internal.corext.codemanipulation.AddCustomConstructorOperation;
import org.eclipse.jdt.internal.corext.dom.Bindings;
import org.eclipse.jdt.internal.corext.refactoring.structure.ASTNodeSearchUtil;
import org.eclipse.jdt.internal.corext.refactoring.util.RefactoringASTParser;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.ui.tests.core.ProjectTestSetup;
/**
 * Tests generation of constructors using fields
 * 
 * @see org.eclipse.jdt.internal.corext.codemanipulation.AddCustomConstructorOperation
 * 
 */
public class GenerateConstructorUsingFieldsTest extends SourceTestCase {
	static final Class THIS= GenerateConstructorUsingFieldsTest.class;
	public GenerateConstructorUsingFieldsTest(String name) {
		super(name);
	}
	public static Test allTests() {
		return new ProjectTestSetup(new TestSuite(THIS));
	}
	public static Test suite() {
		return allTests();