|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager
public class CreateMASCaseManager
Project: beast File: es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.java Main class that generates the CaseManager.java File to run the MAS tests. Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)
Constructor Summary | |
---|---|
CreateMASCaseManager()
|
Method Summary | |
---|---|
static void |
addStory(File caseManager,
String storyName,
String testPath,
String user,
String feature,
String benefit)
The third method to write caseManager. |
static void |
closeMASCaseManager(File caseManager)
Method to close the file caseManager. |
static void |
createTest(File caseManager,
String test_name,
String test_path,
String scenario,
String given,
String when,
String then)
The second method to write caseManager. |
static File |
startMASCaseManager(String package_path,
String dest_dir)
This method creates CaseManager file and writes on it: the package, the imports, its comments and the class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateMASCaseManager()
Method Detail |
---|
public static File startMASCaseManager(String package_path, String dest_dir) throws BeastException
package_path
- as es.upm.dit...dest_dir
- as src/main/java
BeastException
public static void createTest(File caseManager, String test_name, String test_path, String scenario, String given, String when, String then)
caseManager
- the file where the test must be addedtest_name
- the name of the test to be writtentest_path
- the path where the test can be foundedscenario
- the name of the scenario of the testgiven
- the GIVEN part of the plain text given by the clientwhen
- the WHEN part of the plain text given by the clientthen
- the THEN part of the plain text given by the clientpublic static void addStory(File caseManager, String storyName, String testPath, String user, String feature, String benefit) throws BeastException
caseManager
- the file where the test must be writtenstoryName
- the name of the storytest_path
- the path where the story can be founduser
- the user requesting the storyfeature
- the feature requested by the userbenefit
- the benefit provided by the feature
BeastException
public static void closeMASCaseManager(File caseManager)
caseManager
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |