01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.workflow.util;
06:
07: import com.opensymphony.module.propertyset.PropertySet;
08:
09: import com.opensymphony.workflow.FunctionProvider;
10: import com.opensymphony.workflow.WorkflowException;
11:
12: import junit.framework.TestCase;
13:
14: import java.util.Map;
15:
16: /**
17: * @author hani Date: Apr 4, 2005 Time: 8:56:36 PM
18: */
19: public class VerifyArg implements FunctionProvider {
20: //~ Methods ////////////////////////////////////////////////////////////////
21:
22: public void execute(Map transientVars, Map args, PropertySet ps)
23: throws WorkflowException {
24: Object expected = args.get("expected");
25: Object actual = args.get("actual");
26: TestCase.assertEquals(expected, actual);
27: }
28: }
|