Without looking at the Restlet code, i'm having problems with this simple
configuration. I'm using Spring 2.5.
<bean id="server" class="org.restlet.ext.spring.SpringServer">
<constructor-arg value="http" />
<constructor-arg value="8182" />
<property name="parameters">
<props>
<prop key="key1">value1</prop>
<prop key="key2">value2</prop>
</props>
</property>
</bean>
and run the corresponding Spring test case.
@Test
public void testSpringServerProperties() {
log.debug("parameters size is :::" + server.getContext
().getParameters().size());
assertEquals("value1", server.getContext
().getParameters().getFirstValue("key1"));
assertEquals("value2", server.getContext
().getParameters().getFirstValue("key2"));
log.debug("parameters size is :::" + server.getContext
().getParameters().size());
}
The log shows that getParameters().size() = 0 and the test case failed
because the properties are not loaded it seems like. Is this a bug in the
code?
Thanks
dev