gradle test task
This commit is contained in:
@@ -15,7 +15,6 @@ public class JokeLoaderTaskTest extends AndroidTestCase {
|
|||||||
task.execute();
|
task.execute();
|
||||||
talker.doWait();
|
talker.doWait();
|
||||||
MyBus.getInstance().unregister(this);
|
MyBus.getInstance().unregister(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onEvent(Joke joke) {
|
public void onEvent(Joke joke) {
|
||||||
|
|||||||
19
build.gradle
19
build.gradle
@@ -17,3 +17,22 @@ allprojects {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
task testAll {
|
||||||
|
evaluationDependsOn ":jokesbackend"
|
||||||
|
|
||||||
|
project(":jokesbackend"){
|
||||||
|
appengine{
|
||||||
|
daemon true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.getByPath(':app:connectedAndroidTest').mustRunAfter ':jokesbackend:appengineRun'
|
||||||
|
// tasks.getByPath('jokesbackend:appengineStop').mustRunAfter ':app:connectedAndroidTest'
|
||||||
|
|
||||||
|
dependsOn ':jokesbackend:appengineRun'
|
||||||
|
dependsOn ':app:connectedAndroidTest'
|
||||||
|
finalizedBy ':jokesbackend:appengineStop'
|
||||||
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public class MyEndpoint {
|
|||||||
* A simple endpoint method that takes a name and says Hi back
|
* A simple endpoint method that takes a name and says Hi back
|
||||||
*/
|
*/
|
||||||
@ApiMethod(name = "tellJoke")
|
@ApiMethod(name = "tellJoke")
|
||||||
public Joke tellJoke () {
|
public Joke tellJoke () throws InterruptedException {
|
||||||
return new Joke(jp.getRandomJoke());
|
return new Joke(jp.getRandomJoke());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user