Sha256: 566fa2097afe78b6ef07369556b1ece3cfcb41008a483efbd03a84f8dffea692

Contents?: true

Size: 733 Bytes

Versions: 224

Compression:

Stored size: 733 Bytes

Contents

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

require 'test/unit'
require 'rgen/environment'
require 'metamodels/uml13_metamodel'
require 'ea_support/ea_support'
require 'rgen/serializer/xmi11_serializer'

class EASerializerTest < Test::Unit::TestCase

	MODEL_DIR = File.join(File.dirname(__FILE__),"testmodel")
	TEST_DIR = File.join(File.dirname(__FILE__),"ea_serializer_test")
  
	def test_serializer
		envUML = RGen::Environment.new
    EASupport.instantiateUML13FromXMI11(envUML, MODEL_DIR+"/ea_testmodel.xml") 
    models = envUML.find(:class => UML13::Model)
    assert_equal 1, models.size
    
    EASupport.serializeUML13ToXMI11(envUML, MODEL_DIR+"/ea_testmodel_regenerated.xml") 
	end
	
end

Version data entries

224 entries across 224 versions & 3 rubygems

Version Path
puppet-4.9.2-universal-darwin lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.1 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.1-x86-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.1-x64-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.1-universal-darwin lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-retrospec-1.3.0 vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.0 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.0-x86-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.0-x64-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.9.0-universal-darwin lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.8.2 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.8.2-x86-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.8.2-x64-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.8.2-universal-darwin lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.7.1 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.7.1-x86-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.7.1-x64-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.7.1-universal-darwin lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.8.1 lib/puppet/vendor/rgen/test/ea_serializer_test.rb
puppet-4.8.1-x86-mingw32 lib/puppet/vendor/rgen/test/ea_serializer_test.rb