// Path: test/src/com/orm/androrm/impl/migration/EmptyModel.java
// public class EmptyModel extends Model {
// 
// 	public static QuerySet<EmptyModel> objects(Context context) {
// 		return objects(context, EmptyModel.class);
// 	}
// 	
// 	protected ManyToManyField<EmptyModel, NewEmptyModel> mM2M;
// 	
// 	public EmptyModel() {
// 		super();
// 		
// 		mM2M = new ManyToManyField<EmptyModel, NewEmptyModel>(EmptyModel.class, NewEmptyModel.class);
// 	}
// 	
// }


import java.util.ArrayList;
import java.util.List;
import android.database.SQLException;
import android.test.AndroidTestCase;
import com.orm.androrm.DatabaseAdapter;
import com.orm.androrm.Model;
import com.orm.androrm.impl.migration.EmptyModel;
package com.orm.androrm.test.regression;




public class ModelRegression extends AndroidTestCase {

	@Override
	public void setUp() {
		List<Class<? extends Model>> models = new ArrayList<Class<? extends Model>>();
		models.add(EmptyModel.class);
		
		DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
		adapter.setModels(models);
	}
	
	public void testEmptyModel() {
		EmptyModel model = new EmptyModel();
		
		try {
			model.save(getContext());
		} catch (SQLException e) {
			fail();
		}
	}
	
	@Override
// Path: test/src/com/orm/androrm/impl/migration/EmptyModel.java
// public class EmptyModel extends Model {
// 
// 	public static QuerySet<EmptyModel> objects(Context context) {
// 		return objects(context, EmptyModel.class);
// 	}
// 	
// 	protected ManyToManyField<EmptyModel, NewEmptyModel> mM2M;
// 	
// 	public EmptyModel() {
// 		super();
// 		
// 		mM2M = new ManyToManyField<EmptyModel, NewEmptyModel>(EmptyModel.class, NewEmptyModel.class);
// 	}
// 	
// }


// Path: test/src/com/orm/androrm/test/regression/ModelRegression.java
import java.util.ArrayList;
import java.util.List;
import android.database.SQLException;
import android.test.AndroidTestCase;
import com.orm.androrm.DatabaseAdapter;
import com.orm.androrm.Model;
import com.orm.androrm.impl.migration.EmptyModel;

package com.orm.androrm.test.regression;




public class ModelRegression extends AndroidTestCase {

	@Override
	public void setUp() {
		List<Class<? extends Model>> models = new ArrayList<Class<? extends Model>>();
		models.add(EmptyModel.class);
		
		DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
		adapter.setModels(models);
	}
	
	public void testEmptyModel() {
		EmptyModel model = new EmptyModel();
		
		try {
			model.save(getContext());
		} catch (SQLException e) {
			fail();
		}
	}
	
	@Override
	public void tearDown() {