1 package org
.argeo
.slc
.castor
;
3 import org
.argeo
.slc
.msg
.ExecutionAnswer
;
5 public class ExecutionAnswerCastorTest
extends AbstractCastorTestCase
{
6 public void testMarshUnmarshOk() throws Exception
{
7 ExecutionAnswer answer
= new ExecutionAnswer(ExecutionAnswer
.OK
,
9 ExecutionAnswer answerUnm
= marshUnmarsh(answer
);
10 assertExecutionAnswer(answer
, answerUnm
);
13 public void testMarshUnmarshError() throws Exception
{
14 ExecutionAnswer answer
= new ExecutionAnswer(ExecutionAnswer
.ERROR
,
16 ExecutionAnswer answerUnm
= marshUnmarsh(answer
);
17 assertExecutionAnswer(answer
, answerUnm
);
20 public static void assertExecutionAnswer(ExecutionAnswer expected
,
21 ExecutionAnswer reached
) {
22 assertEquals(expected
.getStatus(), reached
.getStatus());
23 assertEquals(expected
.getMessage(), reached
.getMessage());