[Groonga-commit] droonga/fluent-plugin-droonga at 482d63f [master] Update test for the basic collector plugin

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 27 20:18:46 JST 2013


YUKI Hiroshi	2013-11-27 20:18:46 +0900 (Wed, 27 Nov 2013)

  New Revision: 482d63f9f858aa1a3844c4a2b53baa8cc83d683e
  https://github.com/droonga/fluent-plugin-droonga/commit/482d63f9f858aa1a3844c4a2b53baa8cc83d683e

  Message:
    Update test for the basic collector plugin

  Modified files:
    test/unit/plugin/handler/test_collector.rb

  Modified: test/unit/plugin/handler/test_collector.rb (+5 -8)
===================================================================
--- test/unit/plugin/handler/test_collector.rb    2013-11-27 20:18:06 +0900 (1139be0)
+++ test/unit/plugin/handler/test_collector.rb    2013-11-27 20:18:46 +0900 (911ded0)
@@ -13,14 +13,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/plugin/handler/collector"
+require "droonga/plugin/collector/basic"
 
 class BasicCollectorHandlerTest < Test::Unit::TestCase
   include HandlerHelper
 
   def setup
     setup_database
-    setup_handler(Droonga::BasicCollectorHandler)
+    setup_handler(Droonga::BasicCollector)
   end
 
   def teardown
@@ -28,9 +28,6 @@ class BasicCollectorHandlerTest < Test::Unit::TestCase
     teardown_database
   end
 
-  private
-
-  public
   class GatherTest < self
     def test_gather
       input_name = "input_#{Time.now.to_i}"
@@ -48,7 +45,7 @@ class BasicCollectorHandlerTest < Test::Unit::TestCase
         "name" => input_name,
         "descendants" => nil,
       }
-      @handler.handle("collector_gather", request)
+      @handler.process("collector_gather", request)
       assert_equal([input_value, input_name], @messages.last)
     end
   end
@@ -101,7 +98,7 @@ class BasicCollectorHandlerTest < Test::Unit::TestCase
         "name" => input_name,
         "descendants" => nil,
       }
-      @handler.handle("collector_reduce", request)
+      @handler.process("collector_reduce", request)
       assert_equal([
                      {
                        "numeric_key_records" => [
@@ -179,7 +176,7 @@ class BasicCollectorHandlerTest < Test::Unit::TestCase
         "name" => input_name,
         "descendants" => nil,
       }
-      @handler.handle("collector_reduce", request)
+      @handler.process("collector_reduce", request)
       assert_equal([
                      {
                        "numeric_key_records" => [
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index