Added default unit test from the newer sample projects.

This commit is contained in:
Karim Abou Zeid 2016-03-24 15:17:55 +01:00
commit f63a4fb298
2 changed files with 17 additions and 0 deletions

View file

@ -96,6 +96,8 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true
}

View file

@ -0,0 +1,15 @@
package com.kabouzeid.gramophone;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}