-/* $Id: test_filter_z3950_client.cpp,v 1.2 2005-10-16 16:09:58 adam Exp $
+/* $Id: test_filter_z3950_client.cpp,v 1.5 2005-10-26 10:55:26 marc Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
#include "filter_z3950_client.hpp"
-#include "router.hpp"
+#include "router_chain.hpp"
#include "session.hpp"
#include "package.hpp"
{
try
{
- {
- yp2::filter::Z3950Client zc;
- }
+ yp2::filter::Z3950Client zc; // can we construct OK?
}
catch ( ... ) {
BOOST_CHECK (false);
yp2::filter::Z3950Client zc;
- router.rule(zc);
+ router.append(zc);
// Create package with Z39.50 init request in it
yp2::Package pack;
// Put it in router
pack.router(router).move();
- // Inspect that we got Z39.50 init Response - a Z39.50 session
+ // Inspect that we got Z39.50 init Response - a Z39.50 session MUST
// specify a virtual host
yazpp_1::GDU *gdu = &pack.response();
yp2::filter::Z3950Client zc;
- router.rule(zc);
+ router.append(zc);
// Create package with Z39.50 present request in it
yp2::Package pack;
yp2::filter::Z3950Client zc;
- router.rule(zc);
+ router.append(zc);
// Create package with Z39.50 init request in it
yp2::Package pack;