Search in sources :

Example 6 with AddressServiceImpl

use of org.nhindirect.config.service.impl.AddressServiceImpl in project nhin-d by DirectProject.

the class AddressServiceTest method testListAddresss.

/**
     * Test the listAddresss method.
     */
public void testListAddresss() {
    final AddressDao addressDao = context.mock(AddressDao.class);
    final String lastAddressName = "lastAddressName.com";
    final int maxResults = 7;
    context.checking(new Expectations() {

        {
        // TODO
        }
    });
    AddressServiceImpl service = new AddressServiceImpl();
    service.setDao(addressDao);
    try {
        service.listAddresss(lastAddressName, maxResults);
    } catch (Exception e) {
        fail("Exception thrown");
    }
}
Also used : Expectations(org.jmock.Expectations) AddressServiceImpl(org.nhindirect.config.service.impl.AddressServiceImpl) AddressDao(org.nhindirect.config.store.dao.AddressDao)

Aggregations

Expectations (org.jmock.Expectations)6 AddressServiceImpl (org.nhindirect.config.service.impl.AddressServiceImpl)6 AddressDao (org.nhindirect.config.store.dao.AddressDao)6 Address (org.nhindirect.config.store.Address)2 ArrayList (java.util.ArrayList)1 Domain (org.nhindirect.config.store.Domain)1 EntityStatus (org.nhindirect.config.store.EntityStatus)1