use of org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastInputBuilder in project controller by opendaylight.
the class OpenDaylightToasterTest method testSomething.
@Test
// ignored because it is not a test right now. Illustrative purposes only.
@Ignore
public void testSomething() throws Exception {
MakeToastInput toastInput = new MakeToastInputBuilder().setToasterDoneness(1L).setToasterToastType(WheatBread.class).build();
// NOTE: In a real test we would want to override the Thread.sleep() to
// prevent our junit test
// for sleeping for a second...
Future<RpcResult<Void>> makeToast = toaster.makeToast(toastInput);
RpcResult<Void> rpcResult = makeToast.get();
assertNotNull(rpcResult);
assertTrue(rpcResult.isSuccessful());
// etc
}
Aggregations