# HG changeset patch # User Michael Schloh von Bennewitz # Date 1423945279 -3600 # Node ID 842945e5b78222b97ffd2b8fe22bdc58915ac032 # Parent 99a5730765482bea5b9edd85be9f8cea31cab74a Correct import and other build configuration to use assertions. diff -r 99a573076548 -r 842945e5b782 build.gradle --- a/build.gradle Sat Feb 14 19:20:40 2015 +0100 +++ b/build.gradle Sat Feb 14 21:21:19 2015 +0100 @@ -43,7 +43,7 @@ } dependencies { - compile 'junit:junit:4.+' + androidTestCompile 'junit:junit:4.+' compile 'com.android.support:support-v4:19.1.0' compile 'backport-util-concurrent:backport-util-concurrent:3.1' compile 'org.apache.commons:commons-lang3:3.2' diff -r 99a573076548 -r 842945e5b782 src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java --- a/src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java Sat Feb 14 19:20:40 2015 +0100 +++ b/src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java Sat Feb 14 21:21:19 2015 +0100 @@ -72,7 +72,7 @@ import java.net.URISyntaxException; import java.text.ParseException; -import static org.junit.Assert.*; +import static junit.framework.Assert.*; //import android.accounts.Account; //import android.content.ContentProviderClient; @@ -319,6 +319,7 @@ public boolean createIcs(String strUid) { boolean Result = false; TimeZone timeZone = null; + //if (obj == null) throw new AssertionError("Null object"); assertNotNull(Thread.currentThread().getContextClassLoader()); TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry(); //TODO: do not simply create the ics-file new. take into account the RAWDATA if available