MoveRefactoring ref= new MoveRefactoring(elems, JavaPreferencesSettings.getCodeGenerationSettings(), null, null);
MoveRefactoring ref= new MoveRefactoring(elems, JavaPreferencesSettings.getCodeGenerationSettings(), null);
	public void test0() throws Exception{				final String p1Name= "p1";		final String inDir= "/in/";		final String outDir= "/out/";				IPackageFragment 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";		IPackageFragment packP2= createPackage(p2Name);		ICompilationUnit p2C= createCu(packP2, getName() + inDir + p2Name + "/C.java", "C.java");				List elems= new ArrayList();		elems.add(p1A);		elems.add(p1B);		MoveRefactoring ref= new MoveRefactoring(elems, JavaPreferencesSettings.getCodeGenerationSettings(), null, null);		ref.setDestination(packP2);		ref.setUpdateReferences(true);		RefactoringStatus status= performRefactoring(ref);				//-- 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");		assertEquals("incorrect update of A", expectedSource, packP2.getCompilationUnit("A.java").getSource());						expectedSource= getFileContents(getRefactoringPath() + getName() + outDir + p2Name + "/B.java");		assertEquals("incorrect update of B", expectedSource, packP2.getCompilationUnit("B.java").getSource());				expectedSource= getFileContents(getRefactoringPath() + getName() + outDir + p2Name + "/C.java");		assertEquals("incorrect update of C", expectedSource ,p2C.getSource());				delete(packP1);		delete(packP2);	}