]> git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/ObjectListCastorTest.java
b01d9a7de7df2b8e645c1b1d0afeba2731a9785c
[gpl/argeo-slc.git] / legacy / runtime / org.argeo.slc.support.castor / src / test / java / org / argeo / slc / castor / ObjectListCastorTest.java
1 /*
2 * Copyright (C) 2007-2012 Mathieu Baudier
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.argeo.slc.castor;
17
18 import org.argeo.slc.msg.ObjectList;
19 import org.argeo.slc.runtime.SlcAgentDescriptor;
20
21 public class ObjectListCastorTest extends AbstractCastorTestCase {
22
23 public void testAgentDescriptorList() throws Exception {
24 SlcAgentDescriptor agentDescriptor = SlcAgentDescriptorCastorTest
25 .createMiniAgentDescriptor();
26 ObjectList lst = new ObjectList();
27 lst.getObjects().add(agentDescriptor);
28 ObjectList lstUnm = (ObjectList) marshUnmarsh(lst, false);
29 assertEquals(1, lstUnm.getObjects().size());
30 }
31 }