doc/commands: remove default filter from tests
[nit.git] / src / doc / commands / tests / test_commands_json.nit
index 0713979..7f616b4 100644 (file)
@@ -30,13 +30,13 @@ class TestCommandsJson
        # CmdEntity
 
        fun test_cmd_entity is test do
-               var cmd = new CmdEntity(test_model, test_filter, mentity_name = "test_prog::Character")
+               var cmd = new CmdEntity(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_json cmd.to_json
        end
 
        fun test_cmd_comment is test do
-               var cmd = new CmdComment(test_model, test_filter, mentity_name = "test_prog::Character")
+               var cmd = new CmdComment(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_json cmd.to_json
        end
@@ -50,25 +50,25 @@ class TestCommandsJson
        # CmdInheritance
 
        fun test_cmd_parents is test do
-               var cmd = new CmdParents(test_model, test_main, test_filter, mentity_name = "test_prog::Warrior")
+               var cmd = new CmdParents(test_model, test_main, mentity_name = "test_prog::Warrior")
                cmd.init_command
                print_json cmd.to_json
        end
 
        fun test_cmd_ancestors is test do
-               var cmd = new CmdAncestors(test_model, test_main, test_filter, 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_json cmd.to_json
        end
 
        fun test_cmd_children is test do
-               var cmd = new CmdChildren(test_model, test_main, test_filter, mentity_name = "test_prog::Career")
+               var cmd = new CmdChildren(test_model, test_main, mentity_name = "test_prog::Career")
                cmd.init_command
                print_json cmd.to_json
        end
 
        fun test_cmd_descendants is test do
-               var cmd = new CmdDescendants(test_model, test_main, test_filter, mentity_name = "test_prog::Career")
+               var cmd = new CmdDescendants(test_model, test_main, mentity_name = "test_prog::Career")
                cmd.init_command
                print_json cmd.to_json
        end
@@ -76,7 +76,7 @@ class TestCommandsJson
        # CmdSearch
 
        fun test_cmd_search is test do
-               var cmd = new CmdSearch(test_model, test_filter, query = "Carer", limit = 10)
+               var cmd = new CmdSearch(test_model, query = "Carer", limit = 10)
                cmd.init_command
                print_json cmd.to_json
        end
@@ -84,7 +84,7 @@ class TestCommandsJson
        # CmdFeatures
 
        fun test_cmd_features is test do
-               var cmd = new CmdFeatures(test_model, test_filter, mentity_name = "test_prog::Career")
+               var cmd = new CmdFeatures(test_model, mentity_name = "test_prog::Career")
                cmd.init_command
                print_json cmd.to_json
        end
@@ -92,7 +92,7 @@ class TestCommandsJson
        # CmdLinearization
 
        fun test_cmd_lin is test do
-               var cmd = new CmdLinearization(test_model, test_main, test_filter, mentity_name = "init")
+               var cmd = new CmdLinearization(test_model, test_main, mentity_name = "init")
                cmd.init_command
                print_json cmd.to_json
        end
@@ -100,7 +100,7 @@ class TestCommandsJson
        # CmdModel
 
        fun test_cmd_mentities is test do
-               var cmd = new CmdModelEntities(test_model, test_filter, kind = "modules")
+               var cmd = new CmdModelEntities(test_model, kind = "modules")
                cmd.init_command
                print_json cmd.to_json
        end
@@ -108,25 +108,25 @@ class TestCommandsJson
        # CmdUsage
 
        fun test_cmd_new is test do
-               var cmd = new CmdNew(test_model, test_builder, test_filter, mentity_name = "test_prog::Character")
+               var cmd = new CmdNew(test_model, test_builder, mentity_name = "test_prog::Character")
                cmd.init_command
                print_json cmd.to_json
        end
 
        fun test_cmd_call is test do
-               var cmd = new CmdCall(test_model, test_builder, test_filter, mentity_name = "strength_bonus")
+               var cmd = new CmdCall(test_model, test_builder, mentity_name = "strength_bonus")
                cmd.init_command
                print_json cmd.to_json
        end
 
        fun test_cmd_return is test do
-               var cmd = new CmdReturn(test_model, test_filter, mentity_name = "test_prog::Character")
+               var cmd = new CmdReturn(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_json cmd.to_json
        end
 
        fun test_cmd_param is test do
-               var cmd = new CmdParam(test_model, test_filter, mentity_name = "test_prog::Character")
+               var cmd = new CmdParam(test_model, mentity_name = "test_prog::Character")
                cmd.init_command
                print_json cmd.to_json
        end