require 'test/unit' require 'ontomde-core' class TC_attr_reader < Test::Unit::TestCase def setup @@model=Crdf_Model.new @uns=UriNamespace.instance end def test_load_simple1 t1("abcd") end def test_load_simple2 t1("http://abcd") end def test_load_simple3 t1("http://abcd#xyz") end def test_load_simple4 t1("http://ab_cd#xyz") end def test_load_simple5 t1("ab_cd") end def t1(uri) ua=@uns.urialias(uri) puts "!! #{uri} --> #{ua}" uri2=@uns.unalias(ua) end end require 'test/unit/ui/console/testrunner' Test::Unit::UI::Console::TestRunner.run(TC_attr_reader)