Drools Workbench - Test Scenario Editor - Backend 6.2.0.Beta3

org.drools.workbench.screens.testscenario.backend.server
Class ScenarioTestEditorServiceImpl

java.lang.Object
  extended by org.kie.workbench.common.services.backend.service.KieService
      extended by 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>, org.guvnor.common.services.shared.test.TestService

@ApplicationScoped
public class ScenarioTestEditorServiceImpl
extends org.kie.workbench.common.services.backend.service.KieService
implements ScenarioTestEditorService


Field Summary
 
Fields inherited from class org.kie.workbench.common.services.backend.service.KieService
identity, sessionInfo, sourceServices
 
Fields inherited from interface org.drools.workbench.screens.testscenario.service.ScenarioTestEditorService
TEST_SCENARIO_EDITOR_MAX_RULE_FIRINGS, TEST_SCENARIO_EDITOR_SETTINGS
 
Constructor Summary
ScenarioTestEditorServiceImpl()
           
 
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 runAllTests(org.uberfire.backend.vfs.Path testResourcePath)
           
 void runAllTests(org.uberfire.backend.vfs.Path testResourcePath, javax.enterprise.event.Event<org.guvnor.common.services.shared.test.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 org.kie.workbench.common.services.backend.service.KieService
getSource, loadOverview, makeCommentedOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioTestEditorServiceImpl

public ScenarioTestEditorServiceImpl()
Method Detail

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

runAllTests

public void runAllTests(org.uberfire.backend.vfs.Path testResourcePath)
Specified by:
runAllTests in interface ScenarioTestEditorService
Specified by:
runAllTests in interface org.guvnor.common.services.shared.test.TestService

runAllTests

public void runAllTests(org.uberfire.backend.vfs.Path testResourcePath,
                        javax.enterprise.event.Event<org.guvnor.common.services.shared.test.TestResultMessage> customTestResultEvent)
Specified by:
runAllTests in interface ScenarioTestEditorService
Specified by:
runAllTests in interface org.guvnor.common.services.shared.test.TestService

loadScenarioPaths

public List<org.uberfire.backend.vfs.Path> loadScenarioPaths(org.uberfire.backend.vfs.Path path)

Drools Workbench - Test Scenario Editor - Backend 6.2.0.Beta3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.