Add LICENSE file and Refer to it from the source. Include license material
[metaproxy-moved-to-github.git] / src / test_package1.cpp
1 /* $Id: test_package1.cpp,v 1.6 2006-06-10 14:29:13 adam Exp $
2    Copyright (c) 2005-2006, Index Data.
3
4    See the LICENSE file for details
5  */
6
7 #include "config.hpp"
8 #include <iostream>
9 #include <stdexcept>
10
11 #include "package.hpp"
12
13 #define BOOST_AUTO_TEST_MAIN
14 #include <boost/test/auto_unit_test.hpp>
15
16 using namespace boost::unit_test;
17 namespace mp = metaproxy_1;
18
19 BOOST_AUTO_UNIT_TEST( test_package1_1 )
20 {
21     try {
22         mp::Package package1;
23
24         mp::Origin origin;
25         mp::Session session;
26         mp::Package package2(package1.session(), origin);
27
28         BOOST_CHECK_EQUAL(package1.session().id(), package2.session().id());
29     }
30     catch ( ... ) {
31         BOOST_CHECK (false);
32     }
33 }
34
35 /*
36  * Local variables:
37  * c-basic-offset: 4
38  * indent-tabs-mode: nil
39  * c-file-style: "stroustrup"
40  * End:
41  * vim: shiftwidth=4 tabstop=8 expandtab
42  */