Advertisement
Guest User

Untitled

a guest
May 6th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. android {
  2. sourceSets {
  3. main {
  4. manifest.srcFile 'AndroidManifest.xml'
  5. java.srcDirs = ['src']
  6. resources.srcDirs = ['src']
  7. aidl.srcDirs = ['src']
  8. renderscript.srcDirs = ['src']
  9. res.srcDirs = ['res']
  10. assets.srcDirs = ['assets']
  11. jniLibs.srcDirs = ['libs']
  12. }
  13. }
  14.  
  15. dependencies {
  16. compile fileTree(include: '*.jar', dir: 'libs')
  17. compile project(':CordovaLib')
  18. // other deps
  19.  
  20. // !! THIS IS THE INSTRUMENT SETUP!
  21. // Required -- JUnit 4 framework
  22. androidTestCompile 'junit:junit:4.12'
  23. // Optional -- Mockito framework
  24. androidTestCompile 'org.mockito:mockito-core:1.10.19'
  25.  
  26. androidTestCompile 'com.android.support:support-annotations:23.3.0'
  27. androidTestCompile 'com.android.support.test:runner:0.4.1'
  28. androidTestCompile 'com.android.support.test:rules:0.4.1'
  29. // Optional -- Hamcrest library
  30. androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
  31. // Optional -- UI testing with Espresso
  32. androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
  33. // Optional -- UI testing with UI Automator
  34. androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
  35. }
  36.  
  37. package co.appname.app.Utils;
  38.  
  39. import static org.hamcrest.MatcherAssert.assertThat;
  40. import static org.hamcrest.CoreMatchers.*;
  41. import org.junit.Test;
  42. import org.junit.runner.RunWith;
  43. import org.mockito.runners.MockitoJUnitRunner;
  44.  
  45. import static org.junit.Assert.*;
  46.  
  47. public class ColorsTest
  48. {
  49. @Test
  50. public void test()
  51. {
  52. assertThat(2, is(2));
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement