// NOTE: This requires you to run testGeneratedClassCreateUpdate beforehand
@Test(alwaysRun = true, dataProvider = "objectsToDeleteProvider", dependsOnMethods = "testGeneratedClassCreateUpdate")
public void testGeneratedClassDelete(Class<?> generatedClass, Object object) {
if (object instanceof BaseForceObject) {
BaseForceObject forceObj = (BaseForceObject) object;
if (forceObj.getId() != null) {
delete(em, generatedClass, " o where o.id = '" + forceObj.getId() + "'");
insertedObjects.remove(generatedClass);
}
}
}