MoveRefactoring moveRef= new MoveRefactoring(elements, JavaPreferencesSettings.getCodeGenerationSettings(), null, null);
MoveRefactoring moveRef= new MoveRefactoring(elements, JavaPreferencesSettings.getCodeGenerationSettings(), null);
	public void testDestination3() throws Exception{		ICompilationUnit cu= null;		ICompilationUnit cu2= null;		IFile file= null;		IFolder folder= null;		IPackageFragment p1= null;		try{			List elements= new ArrayList();			cu= getCu("A.java", getPackageP(), "A.java");			cu2= getCu("B.java", getPackageP(), "B.java");			file= createFile("launcher.gif");			elements.add(cu);			elements.add(cu2);			elements.add(file);			folder= createFolder("f");						p1= getRoot().createPackageFragment("p1", false, null);			CopyRefactoring copyRef= new CopyRefactoring(elements, new MockCopyQueries(), null);			assertEquals("copy0", true, copyRef.isValidDestination(cu));			assertEquals("copy0a", true, copyRef.isValidDestination(cu2));			assertEquals("copy1", true, copyRef.isValidDestination(p1));			assertEquals("copy2", true, copyRef.isValidDestination(getPackageP()));			assertEquals("copy3", true, copyRef.isValidDestination(getRoot()));			assertEquals("copy4", true, copyRef.isValidDestination(getRoot().getJavaProject()));			assertEquals("copy5", false, copyRef.isValidDestination(getRtJar()));			assertEquals("copy6", true, copyRef.isValidDestination(folder));			assertEquals("copy7", true, copyRef.isValidDestination(file));						MoveRefactoring moveRef= new MoveRefactoring(elements, JavaPreferencesSettings.getCodeGenerationSettings(), null, null);			assertEquals("moveRef0", false, moveRef.isValidDestination(cu));			assertEquals("moveRef0a", false, moveRef.isValidDestination(cu2));			assertEquals("moveRef1", true, moveRef.isValidDestination(p1));			assertEquals("moveRef2", false, moveRef.isValidDestination(getPackageP()));			assertEquals("moveRef3", true, moveRef.isValidDestination(getRoot()));			assertEquals("moveRef4", true, moveRef.isValidDestination(getRoot().getJavaProject()));			assertEquals("moveRef5", false, moveRef.isValidDestination(getRtJar()));			assertEquals("moveRef6", true, moveRef.isValidDestination(folder));			assertEquals("moveRef7", false, moveRef.isValidDestination(file));		} finally{					performDummySearch();			file.delete(false, null);			folder.delete(false, null);				p1.delete(false, null);			cu.delete(false, null);			cu2.delete(false, null);		}	}