yes we did to run with Spring 2.5 Test Framework which is running on top of
JUnit 4.4.

On Jan 13, 2008 6:35 AM, Kevin Conaway <[EMAIL PROTECTED]> wrote:

> Did you modify the test case at all? I noticed the snippet you posted has
> the @Test annotation whereas the code in SVN trunk does not have that
> annotation.
>
> The test in the trunk runs fine.
>
>
> On Jan 13, 2008 1:36 AM, dev dev <[EMAIL PROTECTED]> wrote:
>
> > 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
> >
> >
> >
>

Reply via email to