
package com.exedio.cope.lib.hierarchy;

import com.exedio.cope.lib.DatabaseLibTest;
import com.exedio.cope.lib.IntegrityViolationException;

public class HierarchyTest extends DatabaseLibTest
{
	public void testHierarchy()
			throws IntegrityViolationException
	{
		final FirstSub firstItem = new FirstSub(0);
		assertEquals(0, firstItem.getSuperInt());
		assertEquals(null, firstItem.getFirstSubString());
		
		firstItem.setSuperInt(2);
		assertEquals(2, firstItem.getSuperInt());
		assertEquals(null, firstItem.getFirstSubString());
		
		firstItem.delete();
	}

}

@@ -524,32 +524,193 @@
 ubString());%0A%09%09%0A
+%09%09firstItem.setFirstSubString(%22firstSubString%22);%0A%09%09assertEquals(2, firstItem.getSuperInt());%0A%09%09assertEquals(%22firstSubString%22, firstItem.getFirstSubString());%0A%09%09%0A
 %09%09firstItem.dele

test hierarchical setter on subclass