Correct import and other build configuration to use assertions.

Sat, 14 Feb 2015 21:21:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 14 Feb 2015 21:21:19 +0100
changeset 30
842945e5b782
parent 29
99a573076548
child 31
fa9cb0e70440

Correct import and other build configuration to use assertions.

build.gradle file | annotate | diff | comparison | revisions
src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java file | annotate | diff | comparison | revisions
     1.1 --- a/build.gradle	Sat Feb 14 19:20:40 2015 +0100
     1.2 +++ b/build.gradle	Sat Feb 14 21:21:19 2015 +0100
     1.3 @@ -43,7 +43,7 @@
     1.4  }
     1.5  
     1.6  dependencies {
     1.7 -    compile 'junit:junit:4.+'
     1.8 +    androidTestCompile 'junit:junit:4.+'
     1.9      compile 'com.android.support:support-v4:19.1.0'
    1.10      compile 'backport-util-concurrent:backport-util-concurrent:3.1'
    1.11      compile 'org.apache.commons:commons-lang3:3.2'
     2.1 --- a/src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java	Sat Feb 14 19:20:40 2015 +0100
     2.2 +++ b/src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java	Sat Feb 14 21:21:19 2015 +0100
     2.3 @@ -72,7 +72,7 @@
     2.4  import java.net.URISyntaxException;
     2.5  import java.text.ParseException;
     2.6  
     2.7 -import static org.junit.Assert.*;
     2.8 +import static junit.framework.Assert.*;
     2.9  
    2.10  //import android.accounts.Account;
    2.11  //import android.content.ContentProviderClient;
    2.12 @@ -319,6 +319,7 @@
    2.13      public boolean createIcs(String strUid) {
    2.14          boolean Result = false;
    2.15          TimeZone timeZone = null;
    2.16 +        //if (obj == null) throw new AssertionError("Null object");
    2.17          assertNotNull(Thread.currentThread().getContextClassLoader());
    2.18          TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
    2.19  //TODO: do not simply create the ics-file new. take into account the RAWDATA if available

mercurial