Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2259

Create/Update Tests generates duplicate methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Next
    • None
    • java - JUnit
    • None

    Description

      Steps to reproduce:

      1. create a new java maven application
      2. add a new class with some methods
      3. press ctrl+alt+t to open the Create/Update Tests dialog
      4. Leave everything selected end press enter

      Expected:
      a working junit test class

      Actual:
      a junit test class with methods duplicated, once annotated with fqn and once with simple name

       
      Product Version: Apache NetBeans IDE Dev (Build 20190313-3f5ea2b646bb)

      Updates: Updates available

      Java: 12; OpenJDK 64-Bit Server VM 12+33

      Runtime: OpenJDK Runtime Environment 12+33

      System: Linux version 5.0.2-arch1-1-ARCH running on amd64; UTF-8; en_US (nb)

      User directory: /home/ralph/work/incubator-netbeans/nbbuild/testuserdir

      Cache directory: /home/ralph/work/incubator-netbeans/nbbuild/testuserdir/var/cache

      Attachments

        Activity

          People

            Unassigned Unassigned
            ralph.benjamin Ralph Benjamin Ruijs
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: