Examples of Identifier


Examples of org.objectweb.celtix.ws.rm.Identifier

       
    }
   
    public void testGetDestinationSequences() throws SQLException, IOException {
       
        Identifier sid1 = null;
        Identifier sid2 = null;
       
        Collection<RMDestinationSequence> seqs = store.getDestinationSequences("unknown");
        assertEquals(0, seqs.size());
       
        try {
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

        }
    }
   
    public void testGetSourceSequences() throws SQLException, IOException {
       
        Identifier sid1 = null;
        Identifier sid2 = null;
       
        Collection<RMSourceSequence> seqs = store.getSourceSequences("unknown");
        assertEquals(0, seqs.size());
       
        try {
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

        }
    }
   
    public void testGetMessages() throws SQLException, IOException, SOAPException {
       
        Identifier sid1 = RMUtils.getWSRMFactory().createIdentifier();
        sid1.setValue("sequence1");
        Identifier sid2 = RMUtils.getWSRMFactory().createIdentifier();
        sid2.setValue("sequence2");
       
        Collection<RMMessage> out = store.getMessages(sid1, true);
        assertEquals(0, out.size());
        Collection<RMMessage> in = store.getMessages(sid1, false);
        assertEquals(0, out.size());
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

   
    private Identifier setupDestinationSequence(String s) throws IOException, SQLException {
        IMocksControl control = EasyMock.createNiceControl();
        DestinationSequence seq = control.createMock(DestinationSequence.class);
       
        Identifier sid = RMUtils.getWSRMFactory().createIdentifier();
        sid.setValue(s);
        EndpointReferenceType epr = RMUtils.createReference(Names.WSA_ANONYMOUS_ADDRESS);
       
           
        SequenceAcknowledgement ack = RMUtils.getWSRMFactory().createSequenceAcknowledgement();
        AcknowledgementRange range =
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

   
    private Identifier setupSourceSequence(String s) throws IOException, SQLException {
        IMocksControl control = EasyMock.createNiceControl();
        SourceSequence seq = control.createMock(SourceSequence.class);
       
        Identifier sid = RMUtils.getWSRMFactory().createIdentifier();
        sid.setValue(s);     
           
        Date expiry = null;
        Identifier osid = null;
        BigInteger cmn = BigInteger.ONE;
        boolean lm = false;
       
        if ("sequence2".equals(s)) {
            expiry = new Date(System.currentTimeMillis() + 3600 * 1000);
            osid = RMUtils.getWSRMFactory().createIdentifier();
            osid.setValue("offeringSequence");
            cmn = BigInteger.TEN;
            lm = true;           
        }
       
        EasyMock.expect(seq.getIdentifier()).andReturn(sid);
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

        }
        if (messageNumber != null) {
            sequence.getMessageNumber();
            EasyMock.expectLastCall().andReturn(messageNumber);
        } else {
            Identifier id = control.createMock(Identifier.class);
            sequence.getIdentifier();
            EasyMock.expectLastCall().andReturn(id);
            id.getValue();
            EasyMock.expectLastCall().andReturn(sid);
            identifiers.add(id);
        }
        sequences.add(sequence);
        return sequence;
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

    @SuppressWarnings("unchecked")
    private SourceSequence setUpSequence(String sid,
                                   BigInteger[] messageNumbers,
                                   boolean[] isAcked) {
        SourceSequence sequence = control.createMock(SourceSequence.class);
        Identifier id = control.createMock(Identifier.class);
        sequence.getIdentifier();
        EasyMock.expectLastCall().andReturn(id);
        id.getValue();
        EasyMock.expectLastCall().andReturn(sid);
        identifiers.add(id);
        boolean includesAcked = false;
        for (int i = 0; isAcked != null && i < isAcked.length; i++) {
            sequence.isAcknowledged(messageNumbers[i]);
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

        RMHandler handler = control.createMock(RMHandler.class);
        RMProxy proxy = new RMProxy(handler);
        RMSource source = control.createMock(RMSource.class);
        SourcePolicyType sp = control.createMock(SourcePolicyType.class);
       
        Identifier sid = RMUtils.getWSRMFactory().createIdentifier();
        sid.setValue("s1");
     
        expect(handler.getBinding()).andReturn(binding);
        expect(handler.getTransport()).andReturn(ct)
        expect(source.getSourcePolicies()).andReturn(sp);
        expect(sp.getAcksTo()).andReturn(null);
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

        RMHandler handler = control.createMock(RMHandler.class);
        RMProxy proxy = new RMProxy(handler);
        RMSource source = control.createMock(RMSource.class);
        SourcePolicyType sp = control.createMock(SourcePolicyType.class);
       
        Identifier sid = RMUtils.getWSRMFactory().createIdentifier();
        sid.setValue("s1");
        Duration osd = DatatypeFactory.newInstance().newDuration("PT24H");
        assertNotNull(osd);
        Identifier offeredSid = RMUtils.getWSRMFactory().createIdentifier();
        offeredSid.setValue("s1Offer");
     
        expect(handler.getBinding()).andReturn(binding);
        expect(handler.getTransport()).andReturn(ct);
        expect(source.getSourcePolicies()).andReturn(sp);
        expect(sp.getAcksTo()).andReturn(null);
View Full Code Here

Examples of org.objectweb.celtix.ws.rm.Identifier

        RMProxy proxy = new RMProxy(handler);
        RMSource source = control.createMock(RMSource.class);
        SourcePolicyType sp = control.createMock(SourcePolicyType.class);
        //RMDestination dest = control.createMock(RMDestination.class);
       
        Identifier sid = RMUtils.getWSRMFactory().createIdentifier();
        sid.setValue("s1");
        Duration osd = DatatypeFactory.newInstance().newDuration("PT24H");
        Identifier offeredSid = RMUtils.getWSRMFactory().createIdentifier();
        offeredSid.setValue("s1Offer");

        expect(handler.getBinding()).andReturn(binding)
        expect(source.getSourcePolicies()).andReturn(sp);
        expect(sp.getAcksTo()).andReturn(null);
        expect(sp.getSequenceExpiration()).andReturn(null);
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.