fca4f13be6/org.scala-refactoring.library/src/test/scala/scala/tools/refactoring/tests/implementations/MoveClassTest.scala

799e54613b3a098cb99a0ecbbd544c44faebfe7afca4f13be6a79d9efa6228576a8d231680ac6346
707
  } applyRefactoring(moveTo("x.y"))
707
  } applyRefactoring(moveTo("x.y"))
708
708
709
  @Test
709
  @Test
710
  def moveMultipleClassesWithInterdependencies = new FileSet {
711
    """
712
    package xyz
713
    
714
    class A {
715
      val B = new {
716
        val y = 2
717
      }
718
    }
719
    
720
    object C {
721
      def m(x: A) {
722
        import x._
723
        println(B.y)
724
      }
725
    }
726
    """ becomes
727
    """
728
    package org.scala-refactoring
729
    
730
    class A {
731
      val B = new {
732
        val y = 2
733
      }
734
    }
735
    
736
    object C {
737
      def m(x: A) {
738
        import x._
739
        println(B.y)
740
      }
741
    }
742
    """
743
  } applyRefactoring(moveTo("org.scala-refactoring"))
744
745
  @Test
710
  def nestedPackageAndImports = new FileSet {
746
  def nestedPackageAndImports = new FileSet {
711
    """
747
    """
712
    package x
748
    package x