8788899091929394
JobConfiguration job = new JobConfiguration(); SessionKey session = new SessionKey(); control.replay(); Iface thrift = getIface(ImmutableMap.of("createJob", false)); assertEquals(ResponseCode.ERROR, thrift.createJob(job, null, session).getResponseCode()); }
104105106107108109110111
Response response = new Response(); expect(mockThrift.createJob(job, null, SESSION_KEY)).andReturn(response); control.replay(); Iface thrift = getIface(toggledMethods); assertSame(response, thrift.createJob(job, null, SESSION_KEY)); }