Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-410

creating a new Camel Test case should auto-default the source folder (picking src/test/java or src/test/scala if it can be found) and default the package to the first package found if there's one available

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.1.0
    • None
    • None
    • None

    Description

      users have to explicitly pick the src/test/java source folder (we should be able to deafult this if we can find a source folder with "test" in it - if we find multiple, pick the first one that doesn't end in "resources" or that ends in java/scala or something?

      Also it might be nice to not have blank as the package; maybe pick the first directory in the available source packages (or for extra bonus points, the deepest directory tree which has either no children or more than one child.

      e.g.

      src/test/java/com/acme/foo

      would be good to have "com.acme.foo" as the default test package.

      However if you had the code...

      src/test/java/com/acme/foo
      something/
      another/

      then picking "com.acme.foo" would be good as its hard to go deeper as there's more than one child.

      Attachments

        Activity

          People

            lheinema@redhat.com Lars Heinemann
            jastrachan_jira James Strachan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: