src/doc/templates: add template for the Person class from the nit catalog
[nit.git] / src / doc / commands / tests / test_commands_html.nit
index 4b2373b..bd28d91 100644 (file)
@@ -30,19 +30,19 @@ class TestCommandsHtml
        # CmdEntity
 
        fun test_cmd_entity is test do
-               var cmd = new CmdEntity(test_view, mentity_name = "test_prog::Character")
+               var cmd = new CmdEntity(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_comment is test do
-               var cmd = new CmdComment(test_view, mentity_name = "test_prog::Character")
+               var cmd = new CmdComment(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_link is test do
-               var cmd = new CmdEntityLink(test_view, mentity_name = "test_prog::Character")
+               var cmd = new CmdEntityLink(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_html cmd.to_html
        end
@@ -50,25 +50,25 @@ class TestCommandsHtml
        # CmdInheritance
 
        fun test_cmd_parents is test do
-               var cmd = new CmdParents(test_view, mentity_name = "test_prog::Warrior")
+               var cmd = new CmdParents(test_model, test_main, mentity_name = "test_prog::Warrior")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ancestors is test do
-               var cmd = new CmdAncestors(test_view, mentity_name = "test_prog::Warrior", parents = false)
+               var cmd = new CmdAncestors(test_model, test_main, mentity_name = "test_prog::Warrior", parents = false)
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_children is test do
-               var cmd = new CmdChildren(test_view, mentity_name = "test_prog::Career")
+               var cmd = new CmdChildren(test_model, test_main, mentity_name = "test_prog::Career")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_descendants is test do
-               var cmd = new CmdDescendants(test_view, mentity_name = "test_prog::Career")
+               var cmd = new CmdDescendants(test_model, test_main, mentity_name = "test_prog::Career")
                cmd.init_command
                print_html cmd.to_html
        end
@@ -76,7 +76,7 @@ class TestCommandsHtml
        # CmdSearch
 
        fun test_cmd_search is test do
-               var cmd = new CmdSearch(test_view, query = "Carer", limit = 10)
+               var cmd = new CmdSearch(test_model, query = "Carer", limit = 10)
                cmd.init_command
                print_html cmd.to_html
        end
@@ -84,7 +84,7 @@ class TestCommandsHtml
        # CmdFeatures
 
        fun test_cmd_features is test do
-               var cmd = new CmdFeatures(test_view, mentity_name = "test_prog::Career")
+               var cmd = new CmdFeatures(test_model, mentity_name = "test_prog::Career")
                cmd.init_command
                print_html cmd.to_html
        end
@@ -92,7 +92,7 @@ class TestCommandsHtml
        # CmdLinearization
 
        fun test_cmd_lin is test do
-               var cmd = new CmdLinearization(test_view, mentity_name = "init")
+               var cmd = new CmdLinearization(test_model, test_main, mentity_name = "init")
                cmd.init_command
                print_html cmd.to_html
        end
@@ -100,7 +100,7 @@ class TestCommandsHtml
        # CmdModel
 
        fun test_cmd_mentities is test do
-               var cmd = new CmdModelEntities(test_view, kind = "modules")
+               var cmd = new CmdModelEntities(test_model, kind = "modules")
                cmd.init_command
                print_html cmd.to_html
        end
@@ -108,25 +108,25 @@ class TestCommandsHtml
        # CmdUsage
 
        fun test_cmd_new is test do
-               var cmd = new CmdNew(test_view, test_builder, mentity_name = "test_prog::Character")
+               var cmd = new CmdNew(test_model, test_builder, mentity_name = "test_prog::Character")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_call is test do
-               var cmd = new CmdCall(test_view, test_builder, mentity_name = "strength_bonus")
+               var cmd = new CmdCall(test_model, test_builder, mentity_name = "strength_bonus")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_return is test do
-               var cmd = new CmdReturn(test_view, mentity_name = "test_prog::Character")
+               var cmd = new CmdReturn(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_param is test do
-               var cmd = new CmdParam(test_view, mentity_name = "test_prog::Character")
+               var cmd = new CmdParam(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_html cmd.to_html
        end
@@ -134,70 +134,70 @@ class TestCommandsHtml
        # CmdIni
 
        fun test_cmd_ini_desc is test do
-               var cmd = new CmdIniDescription(test_view, mentity_name = "test_prog")
+               var cmd = new CmdIniDescription(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_git is test do
-               var cmd = new CmdIniGitUrl(test_view, mentity_name = "test_prog")
+               var cmd = new CmdIniGitUrl(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_clone is test do
-               var cmd = new CmdIniCloneCommand(test_view, mentity_name = "test_prog")
+               var cmd = new CmdIniCloneCommand(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_issues is test do
-               var cmd = new CmdIniIssuesUrl(test_view, mentity_name = "test_prog")
+               var cmd = new CmdIniIssuesUrl(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_maintainer is test do
-               var cmd = new CmdIniMaintainer(test_view, mentity_name = "test_prog")
+               var cmd = new CmdIniMaintainer(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_contributors is test do
-               var cmd = new CmdIniContributors(test_view, mentity_name = "test_prog")
+               var cmd = new CmdIniContributors(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_license is test do
-               var cmd = new CmdIniLicense(test_view, mentity_name = "test_prog")
+               var cmd = new CmdIniLicense(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_license_file is test do
-               var cmd = new CmdLicenseFile(test_view, mentity_name = "test_prog")
+               var cmd = new CmdLicenseFile(test_model, mentity_name = "test_prog")
                cmd.init_command
                cmd.file = cmd.file.as(not null).basename # for testing path
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_license_file_content is test do
-               var cmd = new CmdLicenseFileContent(test_view, mentity_name = "test_prog")
+               var cmd = new CmdLicenseFileContent(test_model, mentity_name = "test_prog")
                cmd.init_command
                cmd.file = cmd.file.as(not null).basename # for testing path
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_contrib_file is test do
-               var cmd = new CmdContribFile(test_view, mentity_name = "test_prog")
+               var cmd = new CmdContribFile(test_model, mentity_name = "test_prog")
                cmd.init_command
                cmd.file = cmd.file.as(not null).basename # for testing path
                print_html cmd.to_html
        end
 
        fun test_cmd_ini_contrib_file_content is test do
-               var cmd = new CmdContribFileContent(test_view, mentity_name = "test_prog")
+               var cmd = new CmdContribFileContent(test_model, mentity_name = "test_prog")
                cmd.init_command
                cmd.file = cmd.file.as(not null).basename # for testing path
                print_html cmd.to_html
@@ -206,31 +206,31 @@ class TestCommandsHtml
        # CmdMain
 
        fun test_cmd_mains is test do
-               var cmd = new CmdMains(test_view, mentity_name = "test_prog")
+               var cmd = new CmdMains(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_main_compile is test do
-               var cmd = new CmdMainCompile(test_view, mentity_name = "test_prog::test_prog")
+               var cmd = new CmdMainCompile(test_model, mentity_name = "test_prog::test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_testing is test do
-               var cmd = new CmdTesting(test_view, mentity_name = "test_prog")
+               var cmd = new CmdTesting(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_man_synopsis is test do
-               var cmd = new CmdManSynopsis(test_view, mentity_name = "test_prog")
+               var cmd = new CmdManSynopsis(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end
 
        fun test_cmd_man_options is test do
-               var cmd = new CmdManOptions(test_view, mentity_name = "test_prog")
+               var cmd = new CmdManOptions(test_model, mentity_name = "test_prog")
                cmd.init_command
                print_html cmd.to_html
        end