Sha256: 8b7467fd2306ba63c5752cdd2f63cf775c82295cf298b4e5582b36a361413a32

Contents?: true

Size: 726 Bytes

Versions: 3

Compression:

Stored size: 726 Bytes

Contents

require 'test_helper'

class ModelDeployerTest < Minitest::Test
  def create_model
    model = Activiti::RepositoryService.newModel
    model.setName('model_test')
    model.setMetaInfo('{}')
    Activiti::RepositoryService.saveModel(model)
    init_json = File.open(File.dirname(__FILE__)+'/resources/model_example_editor_source.json').read
    Activiti::RepositoryService.addModelEditorSource(model.getId(),init_json.bytes)
    model
  end

  def test_deploy
    model = create_model
    deployer = org.jrubyactiviti.ModelDeployer.new(Activiti::RepositoryService, model.getId())

    assert_difference 'Activiti::RepositoryService.createProcessDefinitionQuery().count()', 1 do
      deployer.deployModel()
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jruby_activiti-2.0.8 test/model_deployer_test.rb
jruby_activiti-2.0.7 test/model_deployer_test.rb
jruby_activiti-2.0.6 test/model_deployer_test.rb