Fix typos, add clarifications
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/663e4bf0 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/663e4bf0 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/663e4bf0 Branch: refs/heads/master Commit: 663e4bf0aaf131b010df1c6173f7fdeb0227f4d9 Parents: 97afaeb Author: Svetlin Zarev <svetlin.za...@sap.com> Authored: Tue Jul 11 13:45:38 2017 +0300 Committer: Svetlin Zarev <svetlin.za...@sap.com> Committed: Tue Jul 11 13:45:38 2017 +0300 ---------------------------------------------------------------------- .../java/org/apache/openejb/ivm/naming/IvmContextTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/663e4bf0/container/openejb-core/src/test/java/org/apache/openejb/ivm/naming/IvmContextTest.java ---------------------------------------------------------------------- diff --git a/container/openejb-core/src/test/java/org/apache/openejb/ivm/naming/IvmContextTest.java b/container/openejb-core/src/test/java/org/apache/openejb/ivm/naming/IvmContextTest.java index e694791..a0c629a 100644 --- a/container/openejb-core/src/test/java/org/apache/openejb/ivm/naming/IvmContextTest.java +++ b/container/openejb-core/src/test/java/org/apache/openejb/ivm/naming/IvmContextTest.java @@ -195,7 +195,8 @@ public class IvmContextTest { /* * verify that list() will return the correct number of contexts and properties - * Some of the contexts appear twice -> i.e there is a federated and ordinary "configurations" + * Some of the contexts have two internal instances -> i.e there is a federated + * and ordinary "configurations" */ @Test public void testContextList_moduleEnv() throws NamingException { @@ -232,7 +233,7 @@ public class IvmContextTest { } if (numberOfListedItems != expected.size()) { - fail("IvmContext.list() returned fifferent number of elements than expected. " + + fail("IvmContext.list() returned different number of elements than expected. " + "Expected=" + expected.size() + "\tActual=" + numberOfListedItems); } } @@ -308,6 +309,7 @@ public class IvmContextTest { writer.print("\t[looking up: " + (ctxName + "/" + name) + "]"); try { + //Intentionally lookup from the "current" context object using the relative name: TOMEE-2087 final Object object = context.lookup(name); if (object instanceof Context) { subContexts.put((Context) object, ctxName + "/" + name);