Add LICENSE file and Refer to it from the source. Include license material
[metaproxy-moved-to-github.git] / src / test_package1.cpp
index ba652ea..d2adf0d 100644 (file)
@@ -1,3 +1,8 @@
+/* $Id: test_package1.cpp,v 1.6 2006-06-10 14:29:13 adam Exp $
+   Copyright (c) 2005-2006, Index Data.
+
+   See the LICENSE file for details
+ */
 
 #include "config.hpp"
 #include <iostream>
 #include <boost/test/auto_unit_test.hpp>
 
 using namespace boost::unit_test;
+namespace mp = metaproxy_1;
 
-BOOST_AUTO_TEST_CASE( test_package1_1 )
+BOOST_AUTO_UNIT_TEST( test_package1_1 )
 {
     try {
-        yp2::Origin origin;
-        yp2::Session session;
-        yp2::Package package1(session, origin);
+        mp::Package package1;
 
-        yp2::Package package2(package1.session(), origin);
+        mp::Origin origin;
+        mp::Session session;
+        mp::Package package2(package1.session(), origin);
 
         BOOST_CHECK_EQUAL(package1.session().id(), package2.session().id());
     }
@@ -30,6 +36,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
  */