@@ -0,0 +1,796 @@
+/**%0A *%09MovieHelperTest.java%0A *%0A *%09@author Johan Brook%0A *%09@copyright (c) 2012 Johan Brook%0A *%09@license MIT%0A */%0A%0Apackage se.chalmers.watchmetest.utiltest;%0A%0Aimport se.chalmers.watchme.utils.MovieHelper;%0Aimport android.test.AndroidTestCase;%0Aimport android.test.suitebuilder.annotation.SmallTest;%0A%0A%0Apublic class MovieHelperTest extends AndroidTestCase %7B%0A%09%0A%09public MovieHelperTest() %7B%0A%09%09super();%0A%09%7D%0A%09%0A%09public void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%7D%0A%09%0A%09@SmallTest%0A%09public void testParseYearFromDate() %7B%0A%09%09String correctDate = %222012-03-03%22;%0A%09%09assertEquals(MovieHelper.parseYearFromDate(correctDate), %222012%22);%0A%09%09%0A%09%09String incorrectDate = %222012/03/03%22;%0A%09%09assertEquals(MovieHelper.parseYearFromDate(incorrectDate), incorrectDate);%0A%09%09%0A%09%09assertNull(MovieHelper.parseYearFromDate(null), null);%0A%09%7D%0A%7D%0A

Add test for MovieHelper