Search in sources :

Example 1 with MakeToastInputBuilder

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
}
Also used : MakeToastInput(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastInput) RpcResult(org.opendaylight.yangtools.yang.common.RpcResult) MakeToastInputBuilder(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastInputBuilder) WheatBread(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.WheatBread) Ignore(org.junit.Ignore) AbstractConcurrentDataBrokerTest(org.opendaylight.controller.md.sal.binding.test.AbstractConcurrentDataBrokerTest) Test(org.junit.Test)

Aggregations

Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 AbstractConcurrentDataBrokerTest (org.opendaylight.controller.md.sal.binding.test.AbstractConcurrentDataBrokerTest)1 MakeToastInput (org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastInput)1 MakeToastInputBuilder (org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastInputBuilder)1 WheatBread (org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.WheatBread)1 RpcResult (org.opendaylight.yangtools.yang.common.RpcResult)1