Sha256: e51c8372c4ed2bad35e956300f63e9bf09bb172b547f7b5d30cb146a40e81a3d
Contents?: true
Size: 1008 Bytes
Versions: 3
Compression:
Stored size: 1008 Bytes
Contents
require 'test_helper' class ModelerTest < Minitest::Test def setup @modeler = org.jrubyactiviti.Modeler.new(Activiti::RepositoryService) end def create_model model = Activiti::RepositoryService.newModel model.setName('modeler_test') model.setMetaInfo('{}') Activiti::RepositoryService.saveModel(model) init_json = File.open(File.dirname(__FILE__)+'/resources/model_init_editor_source.json').read Activiti::RepositoryService.addModelEditorSource(model.getId(),init_json.bytes) model end def test_save hash = { 'name': 'aname', 'description': 'adescription', 'json_xml': File.open(File.dirname(__FILE__)+'/resources/model_json_xml.json').read, 'svg_xml': File.open(File.dirname(__FILE__)+'/resources/model_svg_xml.xml').read } map = Activiti::Utils.hash_to_map(hash) model = create_model @modeler.save(model.getId(), map) end def test_show model = create_model assert @modeler.show(model.getId()) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jruby_activiti-2.0.8 | test/modeler_test.rb |
jruby_activiti-2.0.7 | test/modeler_test.rb |
jruby_activiti-2.0.6 | test/modeler_test.rb |