@@ -0,0 +1,1782 @@
+%0A/*%0A * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.%0A */%0A%0Apackage org.jsimpledb;%0A%0Aimport org.jsimpledb.annotation.JSimpleClass;%0Aimport org.jsimpledb.core.ObjId;%0Aimport org.jsimpledb.test.TestSupport;%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0Apublic class ConstructorTest extends TestSupport %7B%0A%0A    @Test%0A    public void testConstrutorWithParam() %7B%0A        final JSimpleDB jdb = BasicTest.getJSimpleDB(Person.class);%0A        final JTransaction jtx = jdb.createTransaction(true, ValidationMode.AUTOMATIC);%0A        JTransaction.setCurrent(jtx);%0A        try %7B%0A            jtx.create(Person.class);%0A            jtx.commit();%0A        %7D finally %7B%0A            JTransaction.setCurrent(null);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testPrivateConstrutor() %7B%0A        try %7B%0A            BasicTest.getJSimpleDB(Person2.class);%0A            assert false;%0A        %7D catch (IllegalArgumentException e) %7B%0A            // expected%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testMissingConstrutor() %7B%0A        try %7B%0A            BasicTest.getJSimpleDB(Person3.class);%0A            assert false;%0A        %7D catch (IllegalArgumentException e) %7B%0A            // expected%0A        %7D%0A    %7D%0A%0A// Model Classes%0A%0A    @JSimpleClass%0A    public abstract static class Person implements JObject %7B%0A        protected Person(JTransaction jtx, ObjId id) %7B%0A            Assert.assertEquals(jtx, this.getTransaction());%0A            Assert.assertEquals(id, this.getObjId());%0A        %7D%0A    %7D%0A%0A    @JSimpleClass%0A    public abstract static class Person2 implements JObject %7B%0A        Person2(JTransaction jtx, ObjId id) %7B        // package private%0A        %7D%0A    %7D%0A%0A    @JSimpleClass%0A    public abstract static class Person3 implements JObject %7B%0A        public Person3(int dummy) %7B%0A        %7D%0A    %7D%0A%7D%0A%0A

Add unit tests for model class constructors.