JavaMoveProcessor processor= JavaMoveProcessor.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings());
JavaMoveProcessor processor= JavaMoveProcessor.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings(p1A.getJavaProject()));
	public void test1() throws Exception{		ParticipantTesting.reset();		IPackageFragment packP1= null;		IPackageFragment packP2= null;		try {			final String p1Name= "p1";			final String inDir= "/in/";			final String outDir= "/out/";			packP1= createPackage(p1Name);			ICompilationUnit p1A= createCu(packP1, getName() + inDir + p1Name + "/A.java", "A.java");			ICompilationUnit p1B= createCu(packP1, getName() + inDir + p1Name + "/B.java", "B.java");			String p2Name= "p2";			packP2= createPackage(p2Name);			ICompilationUnit p2C= createCu(packP2, getName() + inDir + p2Name + "/C.java", "C.java");			String[] handles= ParticipantTesting.createHandles(new Object[] {				p1A, p1A.getTypes()[0], 				p1B, p1B.getTypes()[0], 				p1A.getResource(), p1B.getResource()});			IResource[] resources= {};			IJavaElement[] javaElements= {p1A, p1B};			JavaMoveProcessor processor= JavaMoveProcessor.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings());			processor.setReorgQueries(new MockReorgQueries());			processor.setDestination(packP2);			processor.setUpdateReferences(true);		    performDummySearch();			RefactoringStatus status= performRefactoring(processor, false);			//-- checks			assertEquals("status should be ok here", null, status);			assertEquals("p1 files", 0, packP1.getChildren().length);			assertEquals("p2 files", 3, packP2.getChildren().length);			String expectedSource= getFileContents(getRefactoringPath() + getName() + outDir + p2Name + "/A.java");			assertEqualLines("incorrect update of A", expectedSource, packP2.getCompilationUnit("A.java").getSource());			expectedSource= getFileContents(getRefactoringPath() + getName() + outDir + p2Name + "/B.java");			assertEqualLines("incorrect update of B", expectedSource, packP2.getCompilationUnit("B.java").getSource());			expectedSource= getFileContents(getRefactoringPath() + getName() + outDir + p2Name + "/C.java");			assertEqualLines("incorrect update of C", expectedSource, p2C.getSource());			ParticipantTesting.testMove(				handles,				new MoveArguments[] {					new MoveArguments(packP2, processor.getUpdateReferences()),					new MoveArguments(packP2, processor.getUpdateReferences()),					new MoveArguments(packP2, processor.getUpdateReferences()),					new MoveArguments(packP2, processor.getUpdateReferences()),					new MoveArguments(packP2.getResource(), processor.getUpdateReferences()),					new MoveArguments(packP2.getResource(), processor.getUpdateReferences())				});		} finally {			delete(packP1);			delete(packP2);		}			}