276277278279280281282
else { if (log.isTraceEnabled()) log.trace("Link contexts"); cntx = new ComboContext(context, this.context); } return new IocMaking(this, mirrors, cntx, maker, vpms, name); }
99100101102103104105106
@Test public void test_constants_name() { String s = "@Name.substring(0, 6)"; ChainNode cn = N(s); assertEquals(s, cn.toString()); IocMaking ing = new IocMaking(null, null, null, null, null, "123456789"); assertEquals("123456", cn.eval(ing)); }
108109110111112113114115116117118
@Test public void test_constants_context() { String s = "@Context.save('xx', 'tt', null)"; ChainNode cn = N(s); assertEquals(s, cn.toString()); IocMaking ing = new IocMaking(null, null, new ScopeContext("app"), null, null, null);