title: Running local unit test(Junit and Mockito) in AOSP
body: <p>I created an application in android studio and written local unit test cases using Junit and Mockito.
  These local unit test cases are pure Java test cases so device not needed for execution.</p>
  
  <p>I run local unit test for my application in  android studio successfully.</p>
  
  <p>Now I am trying to build the same application in AOSP as a system application.
  I want to run the local unit test for the application in AOSP.</p>
  
  <hr>
  
  <p>Project structure(AOSP):</p>
  
  <p>Packages/apps/MYAPP/src                   ---> main java files</p>
  
  <p>Packages/apps/MYAPP/res                   --->  resource files</p>
  
  <p>Packages/apps/MYAPP/test                  ---> test java files</p>
  
  <p>Packages/apps/MYAPP/Android.mk            ---> make file</p>
  
  <p>Packages/apps/MYAPP/AndroidManifest.xml   ---> manifest file</p>
  
  <hr>
  
  <p>If anyone have idea about executing  local unit test cases in AOSP please share.</p>
  
  <p>Thanks in advance.</p>