Fixed test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158885 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f754bf7dda
commit
d1fe6daa64
|
@ -35,26 +35,26 @@ public class ContextManagementTest extends ScopedTest {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(ContextManagementTest.class);
|
private static Logger logger = LoggerFactory.getLogger(ContextManagementTest.class);
|
||||||
|
|
||||||
// @Test
|
@Test
|
||||||
public void testJava() throws Exception {
|
public void testJava() throws Exception {
|
||||||
Context gcube = new ContextImpl("gcube");
|
Context gcube = new ContextImpl("gcube");
|
||||||
logger.debug("gcube : {}", ISMapper.marshal(gcube));
|
logger.debug("gcube : {}", ISMapper.marshal(ISMapper.unmarshal(Context.class, ISMapper.marshal(gcube))));
|
||||||
|
|
||||||
Context devsec = new ContextImpl("devsec");
|
Context devsec = new ContextImpl("devsec");
|
||||||
gcube.addChild(devsec);
|
gcube.addChild(devsec);
|
||||||
logger.debug("devsec : {}", ISMapper.marshal(devsec));
|
logger.debug("devsec : {}", ISMapper.marshal(ISMapper.unmarshal(Context.class, ISMapper.marshal(devsec))));
|
||||||
|
|
||||||
Context devVRE = new ContextImpl("devVRE");
|
Context devVRE = new ContextImpl("devVRE");
|
||||||
devsec.addChild(devVRE);
|
devsec.addChild(devVRE);
|
||||||
logger.debug("devVRE : {}", ISMapper.marshal(devVRE));
|
logger.debug("devVRE : {}", ISMapper.marshal(ISMapper.unmarshal(Context.class, ISMapper.marshal(devVRE))));
|
||||||
|
|
||||||
Context devNext = new ContextImpl("devNext");
|
Context devNext = new ContextImpl("devNext");
|
||||||
gcube.addChild(devNext);
|
gcube.addChild(devNext);
|
||||||
logger.debug("devNext : {}", ISMapper.marshal(devNext));
|
logger.debug("devNext : {}", ISMapper.marshal(ISMapper.unmarshal(Context.class, ISMapper.marshal(devNext))));
|
||||||
|
|
||||||
Context NextNext = new ContextImpl("NextNext");
|
Context NextNext = new ContextImpl("NextNext");
|
||||||
devNext.addChild(NextNext);
|
devNext.addChild(NextNext);
|
||||||
logger.debug("NextNext : {}", ISMapper.marshal(NextNext));
|
logger.debug("NextNext : {}", ISMapper.marshal(ISMapper.unmarshal(Context.class, ISMapper.marshal(NextNext))));
|
||||||
|
|
||||||
logger.debug("------------------------------------");
|
logger.debug("------------------------------------");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue