Juha Alatalo wrote:
> Johan Compagner wrote:
>> Yes you have :). private final static IGetAndSet getGetAndSetter(String
>> exp, Class clz) has changed quite a lot.
>>
>> > Do you have a unit test that fails now that shouldn't that i can
>> add to
>> > the PropertyResolverTest ?
>>
>> No I don't.
>>
>>
Anything happened in this case? It's kind of a show stopper for us. Test
case is pasted in the end of the mail.
- Juha
package org.apache.wicket.model;
import java.util.Properties;
import java.util.Vector;
import org.apache.wicket.Component;
import org.apache.wicket.WicketTestCase;
import org.apache.wicket.markup.html.basic.Label;
/**
* Tests the toString() method on the models in the
org.apache.wicket.model package.
*/
public class VectorModelTest extends WicketTestCase
{
/**
* Used for models in testing.
*/
private static class InnerVectorPOJO extends Vector
{
public String testValue = "vector";
}
/**
* Construct.
*
* @param name
*/
public VectorModelTest(String name)
{
super(name);
}
/**
* Tests the PropertyModel with vector.
*/
public void testPropertyModel()
{
PropertyModel vecModel = new PropertyModel(new
InnerVectorPOJO(),
"testValue");
String expected = "vector";
assertEquals(expected, vecModel.getObject());
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user