Change JobResultResponseTest to use @SelectJson("jobresult") - because it's supposed to be testing JobResult, and AsyncJob is a distraction

This commit is contained in:
Richard Downer 2011-12-02 17:29:32 +02:00
parent 5e1e0806e9
commit 18880d8284
1 changed files with 4 additions and 6 deletions

View File

@ -29,7 +29,7 @@ import org.testng.annotations.Test;
* @author Richard Downer
*/
@Test(groups = "unit", testName = "DeleteNetworkResponseTest")
public class JobResultResponseTest extends BaseItemParserTest<AsyncJob> {
public class JobResultResponseTest extends BaseItemParserTest<JobResult> {
@Override
public String resource() {
@ -37,11 +37,9 @@ public class JobResultResponseTest extends BaseItemParserTest<AsyncJob> {
}
@Override
@SelectJson("queryasyncjobresultresponse")
public AsyncJob expected() {
JobResult payload = new JobResult(true, null);
AsyncJob<JobResult> wrapper = AsyncJob.<JobResult>builder().id(118).status(1).progress(0).resultCode(0).resultType("object").result(payload).build();
return wrapper;
@SelectJson("jobresult")
public JobResult expected() {
return new JobResult(true, null);
}
}