@Override protected void tearDown() throws Exception { mLocaleTestUtils.restoreLocale(); mNameView = null; mViews = null; mHelper = null; super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); mContext = getContext(); Resources resources = mContext.getResources(); mPhoneUtils = new TestTelecomCallLogCache(mContext, TEST_VOICEMAIL_NUMBER); final TestTelecomCallLogCache phoneUtils = new TestTelecomCallLogCache(mContext, TEST_VOICEMAIL_NUMBER); mHelper = new PhoneCallDetailsHelper(mContext, resources, phoneUtils); mHelper.setCurrentTimeForTest(new GregorianCalendar(2011, 5, 4, 13, 0, 0).getTimeInMillis()); mViews = PhoneCallDetailsViews.createForTest(mContext); mNameView = new TextView(mContext); mLocaleTestUtils = new LocaleTestUtils(mContext); mLocaleTestUtils.setLocale(Locale.US); }