demo.org.powermock.examples.tutorial.domainmocking
Interface SampleService

All Known Implementing Classes:
SampleServiceImpl, SampleServiceWithoutPowerMockImpl

public interface SampleService

A simple service interface.


Method Summary
 boolean createPerson(String firstName, String lastName)
          Create a new person based on the following parameters and store it in the underlying persistence store.
 

Method Detail

createPerson

boolean createPerson(String firstName,
                     String lastName)
Create a new person based on the following parameters and store it in the underlying persistence store. The service will notify the result of the operation to an event service.

Parameters:
firstName - The first name of the person to create.
lastName - The last name of the person to create.
Returns:
true if the person was created successfully, false otherwise.


Copyright © 2007-2012. All Rights Reserved.