net.thucydides.core.model
Class ReportNamer

Package class diagram package ReportNamer
java.lang.Object
  extended by net.thucydides.core.model.ReportNamer

public class ReportNamer
extends Object

Determies the correct default name for test reports.

Author:
johnsmart

Method Summary
static ReportNamer forReportType(ReportType type)
           
 String getNormalizedTestNameFor(Story userStory)
           
 String getNormalizedTestNameFor(String name)
           
 String getNormalizedTestNameFor(TestOutcome testOutcome)
          Return a filesystem-friendly version of the test case name.
 String getSimpleTestNameFor(TestOutcome testOutcome)
          Return a filesystem-friendly version of the test case name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forReportType

public static ReportNamer forReportType(ReportType type)

getNormalizedTestNameFor

public String getNormalizedTestNameFor(TestOutcome testOutcome)
Return a filesystem-friendly version of the test case name. The file system version should have no spaces and have the XML file suffix.


getSimpleTestNameFor

public String getSimpleTestNameFor(TestOutcome testOutcome)
Return a filesystem-friendly version of the test case name. The filesytem version should have no spaces and have the XML file suffix.


getNormalizedTestNameFor

public String getNormalizedTestNameFor(Story userStory)

getNormalizedTestNameFor

public String getNormalizedTestNameFor(String name)


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.