Examples of ImplResponse


Examples of com.collective2.signalEntry.implementation.ImplResponse

        String eMail = "someone@somewhere.com";
        C2EntryService sentryService = factory.signalEntryService(password, systemId, eMail);

        lock.lock(); //prevent transmit

        ImplResponse allSys = (ImplResponse)sentryService.sendAllSystemsRequest();
        ImplResponse allSig = (ImplResponse)sentryService.sendAllSignalsRequest();

        //check that everything got saved
        Iterator<Request> pending = journal.pending();
        assertTrue(pending.hasNext());
        assertEquals(allSys.secureRequest(),pending.next());
        assertTrue(pending.hasNext());
        assertEquals(allSig.secureRequest().secureClone(), pending.next());
        assertFalse(pending.hasNext());

        //Now dump and rebuild factory from scratch so its forced to build response list.
        //sentryService.awaitPending();//.shutdown();//must stop old daemon before starting new one
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.