Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 41691 | Differences between
and this patch

Collapse All | Expand All

(-)test cases/org/eclipse/jdt/ui/tests/refactoring/MoveMembersTests.java (+12 lines)
Lines 281-286 Link Here
281
		fieldMethodHelper_passingTest(new String[0], new String[]{"m", "n"}, new String[][]{new String[0], new String[0]});
281
		fieldMethodHelper_passingTest(new String[0], new String[]{"m", "n"}, new String[][]{new String[0], new String[0]});
282
	}
282
	}
283
	
283
	
284
	public void test29() throws Exception{ //test for bug 41691
285
		fieldMethodHelper_passingTest(new String[0], new String[]{"m"}, new String[][]{new String[0]});
286
	}
287
288
	public void test30() throws Exception{ //test for bug 41691
289
		fieldMethodHelper_passingTest(new String[]{"id"}, new String[0], new String[0][0]);
290
	}
291
292
	public void test31() throws Exception{ //test for bug 41691
293
		fieldMethodHelper_passingTest(new String[]{"odd"}, new String[0], new String[0][0]);
294
	}
295
284
	//---
296
	//---
285
	public void testFail0() throws Exception{
297
	public void testFail0() throws Exception{
286
		fieldMethodHelper_failingTest(new String[0], 
298
		fieldMethodHelper_failingTest(new String[0], 
(-)resources/MoveMembers/test29/in/A.java (+6 lines)
Added Link Here
1
package p;
2
public class A {
3
	// Garbage code;
4
	static void m() {
5
	}
6
}
(-)resources/MoveMembers/test29/in/B.java (+3 lines)
Added Link Here
1
package p;
2
public class B {
3
}
(-)resources/MoveMembers/test29/out/A.java (+3 lines)
Added Link Here
1
package p;
2
public class A {
3
}
(-)resources/MoveMembers/test29/out/B.java (+7 lines)
Added Link Here
1
package p;
2
public class B {
3
4
	// Garbage code;
5
	static void m() {
6
	}
7
}
(-)resources/MoveMembers/test30/in/A.java (+5 lines)
Added Link Here
1
package p;
2
public class A {
3
	public final static String id= "Thing.id"; //$NON-NLS-1$
4
	public final static String odd= "Thing.odd"; //$NON-NLS-1$
5
}
(-)resources/MoveMembers/test30/in/B.java (+3 lines)
Added Link Here
1
package p;
2
public class B {
3
}
(-)resources/MoveMembers/test30/out/A.java (+4 lines)
Added Link Here
1
package p;
2
public class A {
3
	public final static String odd= "Thing.odd"; //$NON-NLS-1$
4
}
(-)resources/MoveMembers/test30/out/B.java (+6 lines)
Added Link Here
1
package p;
2
public class B {
3
4
	public final static String id= "Thing.id"; //$NON-NLS-1$
5
	
6
}
(-)resources/MoveMembers/test31/in/A.java (+5 lines)
Added Link Here
1
package p;
2
public class A {
3
	public final static String id= "Thing.id"; //$NON-NLS-1$
4
	public final static String odd= "Thing.odd"; //$NON-NLS-1$
5
}
(-)resources/MoveMembers/test31/in/B.java (+3 lines)
Added Link Here
1
package p;
2
public class B {
3
}
(-)resources/MoveMembers/test31/out/A.java (+4 lines)
Added Link Here
1
package p;
2
public class A {
3
	public final static String id= "Thing.id"; //$NON-NLS-1$
4
}
(-)resources/MoveMembers/test31/out/B.java (+6 lines)
Added Link Here
1
package p;
2
public class B {
3
4
	public final static String odd= "Thing.odd"; //$NON-NLS-1$
5
	
6
}

Return to bug 41691