Code example for RenamingDelegatingContext

0
	@Override 
	protected void setUp() throws Exception { 
		super.setUp(); 
 
		RenamingDelegatingContext context 
		= new RenamingDelegatingContext(getContext(), TEST_FILE_PREFIX);
 
		itemsAdapter = new ItemsDbAdapter(context);
		itemsAdapter.open();
		listAdapter = new ListsDbAdapter(context);
		listAdapter.open();
	} 
 
	@Override 
	protected void tearDown() throws Exception { 
		super.tearDown(); 
 
		itemsAdapter.close();
		itemsAdapter = null;
		listAdapter.close();
		listAdapter = null;