Uploaded image for project: 'Unitils'
  1. Unitils
  2. UNI-264

@Dataset on method level doesn't work

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: dataset
    • Labels:
      None

      Description

      If there isn't a filename specified in the annotation than the DataService looks for a default file.

      protected String getDefaultDataSetFileName(Class<?> testClass, DataSetFactory dataSetFactory) {
              String className = testClass.getName();
              String extension = dataSetFactory.getDataSetFileExtension();
              return className.substring(className.lastIndexOf(".") + 1) + '.' + extension;
          }
      This is only based on the class name, not the name of the method.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              WillemijnW Willemijn Wouters
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: