ca52f554a1/org.scala-refactoring.library/src/test/scala/scala/tools/refactoring/tests/implementations/MoveClassTest.scala
| 28048e468f2f0a7b1479d2975df94b27e284e73e | ca52f554a13ca631512f929d8a0e10ab0cb65831 | ||
|---|---|---|---|
826 | def moveManyClassesAdaptReferences = new FileSet { | 826 | def moveManyClassesAdaptReferences = new FileSet { |
827 | """ | 827 | """ |
828 | package a.b.c | 828 | package a.b.c |
829 | trait A | 829 | trait Aa |
830 | trait B | 830 | trait Bb |
831 | trait C | 831 | trait Cc |
832 | """ becomes | 832 | """ becomes |
833 | """ | 833 | """ |
834 | package x.y | 834 | package x.y |
835 | trait A | 835 | trait Aa |
836 | trait B | 836 | trait Bb |
837 | trait C | 837 | trait Cc |
838 | """ | 838 | """ |
839 | ; | 839 | ; |
840 | """ | 840 | """ |
... | ... | ||
842 | 842 | ||
843 | import a.b.c._ | 843 | import a.b.c._ |
844 | 844 | ||
845 | class User(what: ToMove) extends A with B | 845 | class User(what: ToMove) extends Aa with Bb |
846 | """ becomes | 846 | """ becomes |
847 | """ | 847 | """ |
848 | package different | 848 | package different |
849 | 849 | ||
850 | import a.b.c._ | 850 | import a.b.c._ |
851 | import x.y.A | 851 | import x.y.Aa |
852 | import x.y.B | 852 | import x.y.Bb |
853 | 853 | ||
854 | class User(what: ToMove) extends A with B | 854 | class User(what: ToMove) extends Aa with Bb |
855 | """ | 855 | """ |
856 | ; | 856 | ; |
857 | """ | 857 | """ |
858 | package third | 858 | package third |
859 | 859 | ||
860 | import a.b.c.C | 860 | import a.b.c.Cc |
861 | 861 | ||
862 | class X extends C with a.b.c.B | 862 | class X extends Cc with a.b.c.Bb |
863 | """ becomes | 863 | """ becomes |
864 | """ | 864 | """ |
865 | package third | 865 | package third |
866 | 866 | ||
867 | import x.y.C | 867 | import x.y.Cc |
868 | 868 | ||
869 | class X extends C with x.y.B | 869 | class X extends Cc with x.y.Bb |
870 | """ | 870 | """ |
871 | } applyRefactoring(moveTo("x.y")) | 871 | } applyRefactoring(moveTo("x.y")) |
872 | } | 872 | } |
Download diff