Package com.streamreduce.core.dao

Examples of com.streamreduce.core.dao.SobaMessageDAO


    public void testGetAllMessagesWithHashTagsMissingPounds() {
        //Tests that MessageService.getAllMessages properly adds # in front of any hashtag values we
        //wish to search for before hitting the data layers.

        //Set up mock for SobaMessageDAO and inject into MessageServiceImpl.
        SobaMessageDAO sobaMessageDAO = mock(SobaMessageDAO.class);
        when(sobaMessageDAO.getMessagesFromInbox(any(User.class),anyLong(),anyLong(),anyInt(),
                anyBoolean(), anyString(), anyListOf(String.class),anyString(),anyBoolean()))
                .thenReturn(null);

        MessageServiceImpl messageService = new MessageServiceImpl();
        ReflectionTestUtils.setField(messageService,"sobaMessageDAO",sobaMessageDAO);
View Full Code Here

TOP

Related Classes of com.streamreduce.core.dao.SobaMessageDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.