import org.argeo.slc.test.context.ContextAware;\r
import org.argeo.slc.test.context.ParentContextAware;\r
\r
+/** Utilities for comparing and synchronising contexts. */\r
public class ContextUtils {\r
private final static Log log = LogFactory.getLog(ContextUtils.class);\r
\r
// same keys\r
Map<String, Object> expectedValuesCommonChild = new TreeMap<String, Object>(\r
expectedValuesCommon);\r
- putNotContained(expectedValuesCommonChild, child\r
- .getExpectedValues());\r
+ putNotContained(expectedValuesCommonChild,\r
+ child.getExpectedValues());\r
\r
if (child instanceof ParentContextAware) {\r
// Recursive sync\r
\r
import java.util.Map;\r
\r
+/** Access to an SLC test context that is, maps of reached and expected values. */\r
public interface ContextAware {\r
public final static String DEFAULT_SKIP_FLAG = "!";\r
public final static String DEFAULT_ANY_FLAG = "*";\r
\r
+ /** Retrieves reached values. */\r
public Map<String, Object> getValues();\r
\r
+ /** Set reached values. */\r
public void setValues(Map<String, Object> values);\r
\r
+ /** Retrieves expected values. */\r
public Map<String, Object> getExpectedValues();\r
\r
public String getContextSkipFlag();\r