Skip to content

Commit f67b3b7

Browse files
committed
code cleanup.
1 parent 398e8a1 commit f67b3b7

File tree

5 files changed

+22
-31
lines changed

5 files changed

+22
-31
lines changed

mobile/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,3 @@ dependencies {
172172
// androidTestImplementation "androidx.test.espresso:espresso-idling-resource:$espresso_version"
173173

174174
}
175-
176-
// task :assemble finalized by :lint
177-
tasks.whenTaskAdded { task ->
178-
if (task.name == "assembleDebug" || task.name == "bundleDebug") {
179-
task.finalizedBy "lintDebug"
180-
} else if (task.name == "assembleRelease" || task.name == "bundleRelease") {
181-
task.finalizedBy "lintRelease"
182-
}
183-
}

mobile/src/androidTest/java/io/syslogic/github/TestProfile.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package io.syslogic.github;
22

3+
import static org.hamcrest.CoreMatchers.equalTo;
4+
import static org.hamcrest.CoreMatchers.is;
5+
36
import androidx.test.ext.junit.runners.AndroidJUnit4;
47
import androidx.test.platform.app.InstrumentationRegistry;
58
import androidx.test.uiautomator.By;
69
import androidx.test.uiautomator.UiObject2;
710

811
import org.junit.Assert;
9-
import org.junit.runner.RunWith;
1012
import org.junit.Before;
1113
import org.junit.Test;
12-
13-
import static org.hamcrest.CoreMatchers.equalTo;
14-
import static org.hamcrest.CoreMatchers.is;
14+
import org.junit.runner.RunWith;
1515

1616
/**
1717
* Profile Test Case

mobile/src/androidTest/java/io/syslogic/github/TestRepositories.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package io.syslogic.github;
22

3-
import androidx.test.platform.app.InstrumentationRegistry;
3+
import static org.hamcrest.CoreMatchers.equalTo;
4+
import static org.hamcrest.CoreMatchers.is;
5+
46
import androidx.test.ext.junit.runners.AndroidJUnit4;
5-
import androidx.test.uiautomator.UiObject2;
7+
import androidx.test.platform.app.InstrumentationRegistry;
68
import androidx.test.uiautomator.By;
9+
import androidx.test.uiautomator.UiObject2;
710

811
import org.junit.Assert;
9-
import org.junit.runner.RunWith;
1012
import org.junit.Before;
1113
import org.junit.Test;
12-
13-
import static org.hamcrest.CoreMatchers.equalTo;
14-
import static org.hamcrest.CoreMatchers.is;
14+
import org.junit.runner.RunWith;
1515

1616
/**
1717
* Repositories Test Case

mobile/src/androidTest/java/io/syslogic/github/TestRepository.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package io.syslogic.github;
22

3-
import androidx.test.platform.app.InstrumentationRegistry;
3+
import static org.hamcrest.CoreMatchers.equalTo;
4+
import static org.hamcrest.CoreMatchers.is;
5+
46
import androidx.test.ext.junit.runners.AndroidJUnit4;
5-
import androidx.test.uiautomator.UiObject2;
7+
import androidx.test.platform.app.InstrumentationRegistry;
68
import androidx.test.uiautomator.By;
9+
import androidx.test.uiautomator.UiObject2;
710

811
import org.junit.Assert;
9-
import org.junit.runner.RunWith;
1012
import org.junit.Before;
1113
import org.junit.Test;
12-
13-
import static org.hamcrest.CoreMatchers.equalTo;
14-
import static org.hamcrest.CoreMatchers.is;
14+
import org.junit.runner.RunWith;
1515

1616
/**
1717
* Repository Test Case

mobile/src/androidTest/java/io/syslogic/github/TestSuite.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package io.syslogic.github;
22

3+
import static org.hamcrest.CoreMatchers.equalTo;
4+
import static org.hamcrest.CoreMatchers.is;
5+
import static org.hamcrest.CoreMatchers.not;
6+
import static org.hamcrest.core.IsNull.notNullValue;
7+
38
import android.content.ComponentName;
49
import android.content.Context;
510
import android.content.Intent;
@@ -21,13 +26,8 @@
2126
import androidx.test.uiautomator.Until;
2227

2328
import org.junit.Assert;
24-
import org.junit.runners.Suite.SuiteClasses;
2529
import org.junit.runner.RunWith;
26-
27-
import static org.hamcrest.core.IsNull.notNullValue;
28-
import static org.hamcrest.CoreMatchers.equalTo;
29-
import static org.hamcrest.CoreMatchers.is;
30-
import static org.hamcrest.CoreMatchers.not;
30+
import org.junit.runners.Suite.SuiteClasses;
3131

3232
import java.util.List;
3333

0 commit comments

Comments
 (0)