Code example for RenamingDelegatingContext

0
        TouchUtils.clickView(this, a.getConfirmDeleteMeetingDialog().getButton(AlertDialog.BUTTON_NEGATIVE));
        assertNotNull(meetingDao.findById(meetingToDelete.getId()));
    } 
 
    private void createTestData() { 
        Context context = new RenamingDelegatingContext(getInstrumentation().getTargetContext(), "test_");
        TeamDAO teamFixturesDao = daoFactory.getTeamDAO(context);
        MeetingDAO meetingFixturesDao = daoFactory.getMeetingDAO(context);
 
        Team team = teamFixturesDao.save(new Team("Test Team"));
        meetingFixturesDao.save(new Meeting(team, new GregorianCalendar(2010, 0, 5, 10, 15, 0).getTime(), 5, 301, 343, 30, 65));
        meetingFixturesDao.save(new Meeting(team, new GregorianCalendar(2010, 0, 6, 10, 17, 0).getTime(), 8, 534, 550, 32, 120));
        meetingToDelete = meetingFixturesDao.save(new Meeting(team, new GregorianCalendar(2010, 0, 7, 10, 16, 0).getTime(), 2, 234, 300, 23, 122));
        meetingFixturesDao.save(new Meeting(team, new GregorianCalendar(2010, 0, 8, 10, 14, 0).getTime(), 3, 765, 765, 15, 78));
        meetingFixturesDao.save(new Meeting(team, new GregorianCalendar(2010, 0, 9, 10, 12, 0).getTime(), 9, 444, 445, 10, 93));        
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java