1 //=============================================================================
3 * @file Collocation_Tester.h
5 * This file contains the class that tests the TAO's collocation
8 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
10 //=============================================================================
13 // -- Custom App. Include --
14 #include "MultipleC.h"
16 #include "ace/Log_Msg.h"
20 static const char *top
;
21 static const char *left
;
22 static const char *right
;
23 static const char *bottom
;
27 class Collocation_Tester
31 // -- Constructor/Destructors --
32 Collocation_Tester (CORBA::Object_ptr object
);
34 ~Collocation_Tester ();
43 // -- Helper Methods --
45 /// Tests the method accessible thru the
49 /// Tests the method accessible thru the
51 int test_right (void);
53 /// Tests the method accessible thru the
57 /// Tests the method accessible thru the
59 int test_bottom (void);
62 * This method tests wether the answer obtained
63 * is the one expected. As strcmp, it returns zero
64 * if a match occurs and a non-zero value if there
65 * is no match (actually 1 is returned if there is
68 int match_answer (const char *actual_answer
,
69 const char *right_answer
,
70 const char *method_name
);
74 CORBA::Object_var object_
;