Menu

#141 MoreUnit is removing contents of a JUnit class when the target class is moved in a different source folder of the same package.

Version 3.0.4
closed-fixed
None
5
2015-12-20
2015-12-02
Volts
No

MoreUnit is removing contents of a JUnit class when the target class is moved in a different source folder of the same package.

Steps to replicate:
1. Have an Eclipse Java project that has 3 source folders, say public, private, and junit
2. In all 3 source folders create a package say com.moreunit.utils
3. Configure MoreUnit to automatically generate your JUnits in source folder junit
3. Create a class say Employee in package com.moreunit.utils under source folder private
4. Using MoreUnit, create a JUnit for Employee, which should be created in source folder junit under package com.moreunit.utils. Add some JUnit methods to test Employee class.
5. Move class Employee from private source folder to public source folder. You can do this easily by dragging the Employee class and drop it to public source folde in the Package Explorer view.
6. Now check the contents of JUnit EmployeeTest class. It is empty.

Discussion

  • Nicolas Demengel

    Hi Volts,

    Thanks for your report! I can reproduce the bug, we'll fix that for the next release.

     
  • Volts

    Volts - 2015-12-03

    Hi Nicolas,

    Great! Looking forward for the next release.

    Many Thanks,
    Volts

     
  • Vera Henneberger

    I have implemented a local fix, will do some more testing and will push the commit then.

     
  • Vera Henneberger

    • assigned_to: Vera Henneberger
     
  • Vera Henneberger

    • status: open --> closed-fixed
     
  • Vera Henneberger

    pushed my fix to the github-repo

     

Log in to post a comment.