@Test public void testGetReadyPayloads() throws Exception{ Collection payloads = repo.getReadyPayloads(); Assert.assertEquals("Number of ready to send payload should be " + Integer.toString(numOfReadyPayloads) + ", but it is " + Integer.toString(payloads.size()), 2, payloads.size()); Iterator iter = payloads.iterator(); while(iter.hasNext()){ PackagedPayloads pp = (PackagedPayloads) iter.next(); Assert.assertEquals("packaged payload partnership_id is not 'partnership'", "partnership", pp.getPartnershipId()); Assert.assertTrue("Message id not match", (pp.getRefMessageId().equals("msg_id_1") || pp.getRefMessageId().equals("msg_id_2"))); } }
public Collection getReadyPayloads(){ return this.getPayloads("^[^~|##|%%|\\._].+\\.sfrm"); }
PackagedPayloadsRepository extends PayloadsRepository { public Collection getReadyPayloads(){ return this.getPayloads("^[^~|##|%%|\\._].+\\.sfrm"); } }
PackagedPayloadsRepository extends PayloadsRepository { public Collection getReadyPayloads(){ return this.getPayloads("^[^~|##|%%|\\._].+\\.sfrm"); }  }
PackagedPayloadsRepository extends PayloadsRepository { public Collection getReadyPayloads(){ return this.getPayloads("^[^~|##|%%|\\._].+\\.sfrm"); }  Collection getReadyPayloads(); Collection getPayloads(); Collection getProcessingPayloads(); NamedPayloads createPayloads(Object[] params, int initialState); NamedPayloads getPayload(Object[] params, int state); String toString(); static void main(String args[]); }
PackagedPayloadsRepository extends PayloadsRepository { public Collection getReadyPayloads(){ return this.getPayloads("^[^~|##|%%|\\._].+\\.sfrm"); }  Collection getReadyPayloads(); Collection getPayloads(); Collection getProcessingPayloads(); NamedPayloads createPayloads(Object[] params, int initialState); NamedPayloads getPayload(Object[] params, int state); String toString(); static void main(String args[]); static final String PACKAGE_EXT; }