Fix unit test errors in DocsHelper_AddTrackRowTest.java

DocsHelper_AddTrackRowTest is using a MockContext, which
cannot be used to call DateFormat.getDateFormat(context).

Refactor a getDisplayDate method in DocsHelper and allow the
test to override the method.

Also update .hgignore to AnnotationProcessor.log.
This commit is contained in:
Jimmy Shih
2011-10-25 15:02:03 -07:00
parent acfd522b57
commit fb036bfe4c
3 changed files with 34 additions and 15 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ syntax:glob
*/gen/**
*/proguard/**
.metadata
MyTracksTest/annotations.log
MyTracksTest/AnnotationProcessor.log
**/*.pyc
**/*.pyo
syntax: glob