@@ -0,0 +1,1679 @@
+package org.flymine.xml.lite;%0A%0A/*%0A * Copyright (C) 2002-2003 FlyMine%0A *%0A * This code may be freely distributed and modified under the%0A * terms of the GNU Lesser General Public Licence.  This should%0A * be distributed with the code.  See the LICENSE file for more%0A * information or http://www.gnu.org/copyleft/lesser.html.%0A *%0A */%0A%0Aimport junit.framework.*;%0A%0Aimport java.lang.reflect.Field;%0A%0Aimport org.flymine.util.TypeUtil;%0Aimport org.flymine.model.testmodel.*;%0A%0Apublic class LiteRendererTest extends TestCase%0A%7B%0A    public void testRender() throws Exception %7B%0A        Employee e = new Employee();%0A        Department d = new Department();%0A        Field field = TypeUtil.getField(e.getClass(), %22id%22);%0A        field.setAccessible(true);%0A        field.set(e, new Integer(1234));%0A        e.setName(%22Employee1%22);%0A%0A        field = TypeUtil.getField(d.getClass(), %22id%22);%0A        field.setAccessible(true);%0A        field.set(d, new Integer(5678));%0A        e.setDepartment(d);%0A%0A        String expected = %22%3Cobject id=%5C%221234%5C%22 implements=%5C%22org.flymine.model.testmodel.Employee org.flymine.model.testmodel.Employable%5C%22%3E%22%0A            + %22%3Cfield name=%5C%22fullTime%5C%22 value=%5C%22false%5C%22/%3E%22%0A            + %22%3Cfield name=%5C%22name%5C%22 value=%5C%22Employee1%5C%22/%3E%22%0A            // Take the following line out when OJB ditched%0A            + %22%3Cfield name=%5C%22ojbConcreteClass%5C%22 value=%5C%22org.flymine.model.testmodel.Employee%5C%22/%3E%22%0A            + %22%3Cfield name=%5C%22department%5C%22 value=%5C%225678%5C%22/%3E%22%0A            + %22%3Cfield name=%5C%22age%5C%22 value=%5C%220%5C%22/%3E%22%0A            + %22%3C/object%3E%22;%0A%0A        System.out.println(expected);%0A        System.out.println( LiteRenderer.render(e));%0A%0A        assertEquals(expected, LiteRenderer.render(e));%0A    %7D%0A%0A%0A%7D%0A

Test class for LiteRenderer