Exemplo n.º 1
0
 /**
  * Gets the name of the expected dataset file. The default name of this file is constructed as
  * follows: 'classname without packagename'.'testname'-result.xml.
  *
  * @param method The test method, not null
  * @param testClass The test class, not null
  * @param extension The configured extension of dataset files, not null
  * @return The expected dataset filename, not null
  */
 protected String getDefaultExpectedDataSetFileName(
     Method method, Class<?> testClass, String extension) {
   String className = testClass.getName();
   return className.substring(className.lastIndexOf(".") + 1)
       + "."
       + method.getName()
       + "-result."
       + extension;
 }
Exemplo n.º 2
0
 /**
  * Gets the name of the default testdata file at class level The default name is constructed as
  * follows: 'classname without packagename'.xml
  *
  * @param testClass The test class, not null
  * @param extension The configured extension of dataset files
  * @return The default filename, not null
  */
 protected String getDefaultDataSetFileName(Class<?> testClass, String extension) {
   String className = testClass.getName();
   return className.substring(className.lastIndexOf(".") + 1) + '.' + extension;
 }