Per-database authorisation done at search time.
[metaproxy-moved-to-github.git] / src / test_package1.cpp
index ba652ea..7b88adf 100644 (file)
@@ -1,3 +1,8 @@
+/* $Id: test_package1.cpp,v 1.4 2005-12-02 12:21:07 adam Exp $
+   Copyright (c) 2005, Index Data.
+
+%LICENSE%
+ */
 
 #include "config.hpp"
 #include <iostream>
 
 using namespace boost::unit_test;
 
-BOOST_AUTO_TEST_CASE( test_package1_1 )
+BOOST_AUTO_UNIT_TEST( test_package1_1 )
 {
     try {
+        yp2::Package package1;
+
         yp2::Origin origin;
         yp2::Session session;
-        yp2::Package package1(session, origin);
-
         yp2::Package package2(package1.session(), origin);
 
         BOOST_CHECK_EQUAL(package1.session().id(), package2.session().id());
@@ -30,6 +35,7 @@ BOOST_AUTO_TEST_CASE( test_package1_1 )
  * Local variables:
  * c-basic-offset: 4
  * indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab
  */