package org.mockejb.test;
import org.mockejb.EntityBeanSubclass;
import org.mockejb.test.entity.AddressBean;
import junit.framework.TestCase;
public class EntityBeanSubclassTest extends TestCase {
protected void setUp() throws Exception {
super.setUp();
}
public EntityBeanSubclassTest(String testCaseName) {
super( testCaseName );
}
public void testSetGet() throws Exception {
EntityBeanSubclass addressSubclass = EntityBeanSubclass.newInstance( AddressBean.class );
AddressBean addressBean = (AddressBean)addressSubclass.create();
addressBean.setCity("test");
assertEquals( "test", addressBean.getCity());
}
}