void load();
void contains();
void contains_base();
- void contains_future();
+ void contains_loadable();
void names();
void names_base();
- void names_future();
+ void names_loadable();
void fetch();
void nonexistent();
void type_mismatch();
void create();
- void list_future();
+ void list_loadable();
void name_collision();
};
add(&CollectionTests::load, "Load objects");
add(&CollectionTests::contains, "Containment test");
add(&CollectionTests::contains_base, "Base class containment test");
- add(&CollectionTests::contains_future, "Future containment test");
+ add(&CollectionTests::contains_loadable, "Loadable containment test");
add(&CollectionTests::names, "List object names");
add(&CollectionTests::names_base, "List base class object names");
- add(&CollectionTests::names_future, "List future object names");
+ add(&CollectionTests::names_loadable, "List loadable object names");
add(&CollectionTests::fetch, "Fetch objects");
add(&CollectionTests::nonexistent, "Nonexistent object").expect_throw<key_error>();
add(&CollectionTests::type_mismatch, "Type mismatch").expect_throw<Msp::type_mismatch>();
add(&CollectionTests::create, "Create object");
- add(&CollectionTests::list_future, "List future objects");
+ add(&CollectionTests::list_loadable, "List loadable objects");
add(&CollectionTests::name_collision, "Name collision").expect_throw<Msp::key_error>();
collection = new TestCollection;
EXPECT(ccoll->contains<Sub>("d"));
}
-void CollectionTests::contains_future()
+void CollectionTests::contains_loadable()
{
const TestCollection *ccoll = collection;
EXPECT(!ccoll->contains<Foo>("f"));
EXPECT_EQUAL(nm_set.count("e"), 1);
}
-void CollectionTests::names_future()
+void CollectionTests::names_loadable()
{
list<string> nm = collection->get_names<Foo>();
EXPECT_EQUAL(nm.size(), 3);
EXPECT(Foo::get_create_count()>foo_count);
}
-void CollectionTests::list_future()
+void CollectionTests::list_loadable()
{
list<Foo *> nm = collection->get_list<Foo>();
EXPECT_EQUAL(nm.size(), 3);