demo.org.powermock.examples.tutorial.domainmocking.domain
Class BusinessMessages

java.lang.Object
  extended by demo.org.powermock.examples.tutorial.domainmocking.domain.BusinessMessages

public class BusinessMessages
extends Object

A simple domain object that's pretended to hold state of one or more operation outcomes. We pretend that services can store messages or errors (for example validation errors) in this message (even though these methods are not implemented or even defined here).


Constructor Summary
BusinessMessages()
           
 
Method Summary
 boolean hasErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessMessages

public BusinessMessages()
Method Detail

hasErrors

public boolean hasErrors()
Returns:
true if the an error has occurred when invoking an operation, false otherwise.


Copyright © 2007-2012. All Rights Reserved.