Skip to content

Commit

Permalink
Update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Dec 1, 2017
1 parent ded8ae0 commit f9d5301
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
19 changes: 12 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support:design:25.3.1'
implementation 'com.android.support:cardview-v7:25.3.1'
implementation project(':library')

// Testing-only dependencies
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test:runner:1.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile project(':library')
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

@RunWith(AndroidJUnit4.class)
public class NoUpdateAvailableTest {
Expand All @@ -43,7 +44,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down Expand Up @@ -73,7 +74,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down Expand Up @@ -103,7 +104,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down Expand Up @@ -133,7 +134,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down Expand Up @@ -72,7 +72,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down Expand Up @@ -102,7 +102,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down Expand Up @@ -132,7 +132,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down Expand Up @@ -161,7 +161,7 @@ public void onSuccess(Update update, Boolean isUpdateAvailable) {

@Override
public void onFailed(AppUpdaterError error) {
assertNotNull(error);
assertTrue("Failed", false);
signal.countDown();
}
})
Expand Down
8 changes: 4 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.squareup.okhttp3:okhttp:3.9.1'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support:design:25.3.1'
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
}

1 comment on commit f9d5301

@KaziRAZON
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm good,,,,

Please sign in to comment.