Sha256: 34eb9dd06400b856e3892dbe96aaf6ad7a1287d75c65bc58a438586c197fe9f3

Contents?: true

Size: 1.08 KB

Versions: 224

Compression:

Stored size: 1.08 KB

Contents

$:.unshift File.join(File.dirname(__FILE__),"..","lib")

require 'test/unit'
require 'rgen/environment'
require 'metamodels/uml13_metamodel'
require 'ea_support/ea_support'
require 'transformers/uml13_to_ecore'
require 'testmodel/class_model_checker'
require 'testmodel/object_model_checker'
require 'testmodel/ecore_model_checker'

class EAInstantiatorTest < Test::Unit::TestCase

    include Testmodel::ClassModelChecker
    include Testmodel::ObjectModelChecker
    include Testmodel::ECoreModelChecker
    
	MODEL_DIR = File.join(File.dirname(__FILE__),"testmodel")
		
	def test_instantiator
		envUML = RGen::Environment.new
    EASupport.instantiateUML13FromXMI11(envUML, MODEL_DIR+"/ea_testmodel.xml") 
    checkClassModel(envUML)
    checkObjectModel(envUML)
    envECore = RGen::Environment.new
    UML13ToECore.new(envUML, envECore).transform
    checkECoreModel(envECore)
	end
	
	def test_partial
		envUML = RGen::Environment.new
    EASupport.instantiateUML13FromXMI11(envUML, MODEL_DIR+"/ea_testmodel_partial.xml") 
		checkClassModelPartial(envUML)
	end
end

Version data entries

224 entries across 224 versions & 3 rubygems

Version Path
puppet-4.10.12 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.12-x86-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.12-x64-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.12-universal-darwin lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.11 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.11-x86-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.11-x64-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.11-universal-darwin lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.10 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.10-x86-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.10-x64-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.10-universal-darwin lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.9 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.9-x86-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.9-x64-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.9-universal-darwin lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-retrospec-1.5.0 vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.8 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.8-x86-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb
puppet-4.10.8-x64-mingw32 lib/puppet/vendor/rgen/test/ea_instantiator_test.rb