public void checkStored() { check(); count(CATEGORY, 2); count(COUNTRY, 1); count(STATE, 1); count(CITY, 1); count(DISTRICT, 1); count(REGION, 1); count(MEDIA, 1); count(PERSON, 1); count(ORGANIZATION, 1); count(GROUP, 2); count(EXHIBITION, 1); count(CUSTOM, 1); count(PLACE, 1); count(VENUE, 1); count(LOCATION, 1); count(SUBUNIT, 1); count(EVENT, 1); count(DATE, 3); }
store("/circles/" + model + "-" + i + ".xml"); checkStored(); remove("/circles/" + model + "-delete.xml"); checkRemoved(); clear(); store("/circles/" + model + "-" + i + ".xml"); checkStored(); remove("/circles/" + model + "-1.xml"); checkRemoved(); clear(); store("/circles/" + model + "-" + i + ".xml"); checkStored(); remove("/circles/" + model + "-2.xml"); checkRemoved(); clear(); store("/circles/" + model + "-" + i + ".xml"); checkStored(); remove("/circles/" + model + "-3.xml"); checkRemoved(); clear(); store("/circles/" + model + "-" + i + ".xml"); checkStored(); remove("/circles/" + model + "-4.xml"); checkRemoved();
public void test(String model) throws Exception { for (int i = 1; i < 6; i++) test(model, i); }
@Transactional @Override public void testDetached() throws Exception { super.testDetached(); } }
@Transactional @Override public void testFlat() throws Exception { super.testFlat(); }
public void checkRemoved() { check(); count(CATEGORY, 0); count(COUNTRY, 0); count(STATE, 0); count(CITY, 0); count(DISTRICT, 0); count(REGION, 0); count(MEDIA, 0); count(PERSON, 0); count(ORGANIZATION, 0); count(GROUP, 0); count(EXHIBITION, 0); count(CUSTOM, 0); count(PLACE, 0); count(VENUE, 0); count(LOCATION, 0); count(SUBUNIT, 0); count(EVENT, 0); count(DATE, 0); }
@Test public void testDetached() throws Exception { test("detached"); } @Test public void testRef() throws Exception { test("ref"); }
@Test public void testRef() throws Exception { test("ref"); } @Test public void testFlat() throws Exception { test("flat"); }
@Test public void testFlat() throws Exception { test("flat"); }