3031323334353637383940
ComponentResources resources = mockComponentResources(); RenderSupport support = mockRenderSupport(); MarkupWriter writer = new MarkupWriterImpl(new DefaultMarkupModel()); resources.renderInformalParameters(writer); replay(); Any component = new Any(); component.inject(support, resources, "span", "foo");
5455565758596061626364
ComponentResources resources = mockComponentResources(); RenderSupport support = mockRenderSupport(); MarkupWriter writer = new MarkupWriterImpl(new DefaultMarkupModel()); resources.renderInformalParameters(writer); String clientId = "bar"; String uniqueId = "bar_0"; expect(support.allocateClientId(clientId)).andReturn(uniqueId);
4445464748495051525354
map.store(link, invocation); train_toURI(link, LINK_URI); resources.renderInformalParameters(writer); replay(); linkFixture.inject(null, map, resources);
7677787980818283848586
map.store(link, invocation); train_toURI(link, LINK_URI); resources.renderInformalParameters(writer); replay(); linkFixture.inject("wilma", map, resources);
6869707172737475767778
replay(); InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null, elementResources, null, null, ins, false); resources.renderInformalParameters(writer); verify(); } @Test
9596979899100101102103104105
InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null, elementResources, null, null, ins, false); resources.bindParameter("fred", binding); resources.renderInformalParameters(writer); verify(); } @Test
126127128129130131132133134135136
InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null, elementResources, "Foo.bar", null, ins, false); resources.bindParameter("fred", binding); resources.renderInformalParameters(writer); verify(); } @Test