/*
 * Created on Aug 2, 2005
 * 
 * $Log$
 * Revision 1.1  2005/08/03 00:35:29  dsowen
 * Initial commit.
 *
 */
package ws.fugue88.jpath;

import junit.framework.TestCase;

/**
 * @author dsowen
 */
public class PropertyAccessorTest extends TestCase {

	public void testFieldAccessor() throws Exception
	{
		class A {

			String b = "test";
		}
		A a = new A();

		PropertyAccessor accessor = new PropertyAccessor(a, new FieldProperty(
				"b", A.class, "b"));
		assertSame(a.b, accessor.getValue());
		accessor.setValue("done");
		assertEquals("done", a.b);
	}
}