public void testListenerBinding() throws Exception
{
Log log = newMock(Log.class);
SpecificationParser parser = new SpecificationParser(new DefaultErrorHandler(), log,
new DefaultClassResolver(), new SpecFactory());
parser.setBindingSource(newBindingSource());
Resource location = getSpecificationResourceLocation("ListenerBinding.page");
log
.warn("The <listener-binding> element is no longer supported (at classpath:/org/apache/tapestry/junit/parse/ListenerBinding.page, line 25, column 56).");
replay();
IComponentSpecification spec = parser.parsePageSpecification(location);
verify();
IContainedComponent cc = spec.getComponent("c");