org.drools.workbench.screens.testscenario.backend.server
Class ScenarioTestEditorServiceImpl
java.lang.Object
org.drools.workbench.screens.testscenario.backend.server.ScenarioTestEditorServiceImpl
- All Implemented Interfaces:
- ScenarioTestEditorService, org.guvnor.common.services.shared.file.SupportsCopy, org.guvnor.common.services.shared.file.SupportsCreate<org.drools.workbench.models.testscenarios.shared.Scenario>, org.guvnor.common.services.shared.file.SupportsDelete, org.guvnor.common.services.shared.file.SupportsRead<org.drools.workbench.models.testscenarios.shared.Scenario>, org.guvnor.common.services.shared.file.SupportsRename, org.guvnor.common.services.shared.file.SupportsUpdate<org.drools.workbench.models.testscenarios.shared.Scenario>
@ApplicationScoped
public class ScenarioTestEditorServiceImpl
- extends Object
- implements ScenarioTestEditorService
Method Summary |
org.uberfire.backend.vfs.Path |
copy(org.uberfire.backend.vfs.Path path,
String newName,
String comment)
|
org.uberfire.backend.vfs.Path |
create(org.uberfire.backend.vfs.Path context,
String fileName,
org.drools.workbench.models.testscenarios.shared.Scenario content,
String comment)
|
void |
delete(org.uberfire.backend.vfs.Path path,
String comment)
|
org.drools.workbench.models.testscenarios.shared.Scenario |
load(org.uberfire.backend.vfs.Path path)
|
TestScenarioModelContent |
loadContent(org.uberfire.backend.vfs.Path path)
|
List<org.uberfire.backend.vfs.Path> |
loadScenarioPaths(org.uberfire.backend.vfs.Path path)
|
org.uberfire.backend.vfs.Path |
rename(org.uberfire.backend.vfs.Path path,
String newName,
String comment)
|
void |
runAllScenarios(org.uberfire.backend.vfs.Path testResourcePath)
|
void |
runAllScenarios(org.uberfire.backend.vfs.Path testResourcePath,
javax.enterprise.event.Event<TestResultMessage> customTestResultEvent)
|
void |
runScenario(org.uberfire.backend.vfs.Path path,
org.drools.workbench.models.testscenarios.shared.Scenario scenario)
|
org.uberfire.backend.vfs.Path |
save(org.uberfire.backend.vfs.Path resource,
org.drools.workbench.models.testscenarios.shared.Scenario content,
org.guvnor.common.services.shared.metadata.model.Metadata metadata,
String comment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScenarioTestEditorServiceImpl
public ScenarioTestEditorServiceImpl()
create
public org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context,
String fileName,
org.drools.workbench.models.testscenarios.shared.Scenario content,
String comment)
- Specified by:
create
in interface org.guvnor.common.services.shared.file.SupportsCreate<org.drools.workbench.models.testscenarios.shared.Scenario>
load
public org.drools.workbench.models.testscenarios.shared.Scenario load(org.uberfire.backend.vfs.Path path)
- Specified by:
load
in interface org.guvnor.common.services.shared.file.SupportsRead<org.drools.workbench.models.testscenarios.shared.Scenario>
save
public org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path resource,
org.drools.workbench.models.testscenarios.shared.Scenario content,
org.guvnor.common.services.shared.metadata.model.Metadata metadata,
String comment)
- Specified by:
save
in interface org.guvnor.common.services.shared.file.SupportsUpdate<org.drools.workbench.models.testscenarios.shared.Scenario>
delete
public void delete(org.uberfire.backend.vfs.Path path,
String comment)
- Specified by:
delete
in interface org.guvnor.common.services.shared.file.SupportsDelete
rename
public org.uberfire.backend.vfs.Path rename(org.uberfire.backend.vfs.Path path,
String newName,
String comment)
- Specified by:
rename
in interface org.guvnor.common.services.shared.file.SupportsRename
copy
public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path,
String newName,
String comment)
- Specified by:
copy
in interface org.guvnor.common.services.shared.file.SupportsCopy
loadContent
public TestScenarioModelContent loadContent(org.uberfire.backend.vfs.Path path)
- Specified by:
loadContent
in interface ScenarioTestEditorService
runScenario
public void runScenario(org.uberfire.backend.vfs.Path path,
org.drools.workbench.models.testscenarios.shared.Scenario scenario)
- Specified by:
runScenario
in interface ScenarioTestEditorService
runAllScenarios
public void runAllScenarios(org.uberfire.backend.vfs.Path testResourcePath)
- Specified by:
runAllScenarios
in interface ScenarioTestEditorService
runAllScenarios
public void runAllScenarios(org.uberfire.backend.vfs.Path testResourcePath,
javax.enterprise.event.Event<TestResultMessage> customTestResultEvent)
- Specified by:
runAllScenarios
in interface ScenarioTestEditorService
loadScenarioPaths
public List<org.uberfire.backend.vfs.Path> loadScenarioPaths(org.uberfire.backend.vfs.Path path)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.