mirror of https://github.com/apache/jclouds.git
Change JobResultResponseTest to use @SelectJson("jobresult") - because it's supposed to be testing JobResult, and AsyncJob is a distraction
This commit is contained in:
parent
5e1e0806e9
commit
18880d8284
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue