- @Ignore //ignored because it is not an e test right now. Illustrative purposes only.
- 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
- }
+ @Ignore //ignored because it is not a test right now. Illustrative purposes only.
+ public void testSomething() throws Exception {
+ MakeToastInput toastInput = new MakeToastInputBuilder().setToasterDoneness(Uint32.valueOf(1))
+ .setToasterToastType(WheatBread.VALUE).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<MakeToastOutput>> makeToast = toaster.makeToast(toastInput);