use of org.activityinfo.store.mysql.metadata.ActivityLoader in project activityinfo by bedatadriven.
the class MySqlCatalogTest method testActivitySerialization.
@Test
public void testActivitySerialization() throws SQLException, IOException {
ActivityLoader loader = new ActivityLoader(dbunit.getExecutor());
Map<Integer, Activity> map = loader.load(Collections.singleton(1));
Activity activity = map.get(1);
ObjectOutputStream oos = new ObjectOutputStream(new ByteArrayOutputStream());
oos.writeObject(activity);
}
Aggregations