@@ -0,0 +1,1037 @@
+package com.alvazan.test;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0Aimport com.alvazan.orm.api.base.NoSqlEntityManager;%0Aimport com.alvazan.orm.api.base.NoSqlEntityManagerFactory;%0Aimport com.alvazan.test.db.Marker;%0A%0Apublic class TestMarker %7B%0A%0A%09private static NoSqlEntityManagerFactory factory;%0A%09private NoSqlEntityManager mgr;%0A%0A%09@BeforeClass%0A%09public static void setup() %7B%0A%09%09factory = FactorySingleton.createFactoryOnce();%0A%09%7D%0A%09%0A%09@Before%0A%09public void createEntityManager() %7B%0A%09%09mgr = factory.createEntityManager();%0A%09%7D%0A%09%0A%09@After%0A%09public void clearDatabase() %7B%0A%09%09NoSqlEntityManager other = factory.createEntityManager();%0A%09%09other.clearDatabase(true);%0A%09%7D%0A%09%0A%09@Test%0A%09public void testInsertAndLoadMarker() %7B%0A%09%09Marker m = new Marker();%0A%09%09m.setId(%22one%22);%0A%09%09%0A%09%09// persist marker%0A%09%09mgr.put(m);%0A%09%09mgr.flush();%0A%09%09%0A%09%09// check if marker was saved%0A%09%09mgr.clear();%0A%09%09assertNotNull(%22marker object not persisted into database%22, mgr.find(Marker.class, %22one%22));%0A%09%7D%0A%7D%0A

add unit test for marker