From: Mathieu Baudier Date: Thu, 6 Sep 2012 08:41:37 +0000 (+0000) Subject: IMmprove documentation X-Git-Tag: argeo-slc-2.1.7~624 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=9ed79a1930f41ad2872e4fad8a8c1866a1e5c211;p=gpl%2Fargeo-slc.git IMmprove documentation git-svn-id: https://svn.argeo.org/slc/trunk@5560 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/context/ContextUtils.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/context/ContextUtils.java index ce1b000f3..04281c21b 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/context/ContextUtils.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/context/ContextUtils.java @@ -26,6 +26,7 @@ import org.argeo.slc.test.TestStatus; import org.argeo.slc.test.context.ContextAware; import org.argeo.slc.test.context.ParentContextAware; +/** Utilities for comparing and synchronising contexts. */ public class ContextUtils { private final static Log log = LogFactory.getLog(ContextUtils.class); @@ -97,8 +98,8 @@ public class ContextUtils { // same keys Map expectedValuesCommonChild = new TreeMap( expectedValuesCommon); - putNotContained(expectedValuesCommonChild, child - .getExpectedValues()); + putNotContained(expectedValuesCommonChild, + child.getExpectedValues()); if (child instanceof ParentContextAware) { // Recursive sync diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/test/context/ContextAware.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/test/context/ContextAware.java index 7ae88c59f..2b8270b13 100644 --- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/test/context/ContextAware.java +++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/test/context/ContextAware.java @@ -17,14 +17,18 @@ package org.argeo.slc.test.context; import java.util.Map; +/** Access to an SLC test context that is, maps of reached and expected values. */ public interface ContextAware { public final static String DEFAULT_SKIP_FLAG = "!"; public final static String DEFAULT_ANY_FLAG = "*"; + /** Retrieves reached values. */ public Map getValues(); + /** Set reached values. */ public void setValues(Map values); + /** Retrieves expected values. */ public Map getExpectedValues(); public String getContextSkipFlag();