Complete rb test server with testEnum and testTypedef
authorMark Slee <mcslee@apache.org>
Tue, 20 Nov 2007 05:54:13 +0000 (05:54 +0000)
committerMark Slee <mcslee@apache.org>
Tue, 20 Nov 2007 05:54:13 +0000 (05:54 +0000)
Reviewed by: mcslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665359 13f79535-47bb-0310-9956-ffa450edef68

test/rb/TestServer.rb

index 892037e..16fe5f6 100755 (executable)
@@ -48,7 +48,7 @@ class TestHandler
     print "testMap(#{thing})\n"
     return thing
   end
-    
+
   def testSet(thing)
     print "testSet(#{thing})\n"
     return thing
@@ -68,17 +68,7 @@ class TestHandler
     end
     return thing
   end
-  
-  def testNest(thing)
-    print "testNest(#{thing})\n"
-    puts "  i32_thing: #{thing.i32_thing}"
-    puts "  with struct: "
-    %w{ string_thing byte_thing i32_thing }.each do |t|
-      puts "    #{t}: #{thing.struct_thing.send(t)}"
-    end
-    return thing
-  end
-  
+
   def testInsanity(thing)
     puts "insanity:"
     puts "  #{thing.inspect}"
@@ -91,6 +81,16 @@ class TestHandler
     return {thing => {thing => thing}}
   end
 
+  def testEnum(thing)
+    puts "testEnum(#{thing})"
+    return thing
+  end
+
+  def testTypedef(thing)
+    puts "testTypedef(#{thing})"
+    return thing
+  end
+
 end
 
 handler = TestHandler.new()