/*
* TeleStax, Open Source Cloud Communications
* Copyright 2012, Telestax Inc and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.mobicents.protocols.ss7.isup.impl.stack.timers;
import org.mobicents.protocols.ss7.isup.ISUPTimeoutEvent;
import org.mobicents.protocols.ss7.isup.message.BlockingAckMessage;
import org.mobicents.protocols.ss7.isup.message.ISUPMessage;
import org.mobicents.protocols.ss7.isup.message.parameter.CircuitIdentificationCode;
/**
* @author baranowb
*
*/
public class BLOTest extends DoubleTimers {
// thanks to magic of super class, this is whole test :)
/*
* (non-Javadoc)
*
* @see org.mobicents.protocols.ss7.isup.impl.stack.DoubleTimers#getSmallerT()
*/
protected long getSmallerT() {
return ISUPTimeoutEvent.T12_DEFAULT;
}
/*
* (non-Javadoc)
*
* @see org.mobicents.protocols.ss7.isup.impl.stack.DoubleTimers#getBiggerT()
*/
protected long getBiggerT() {
return ISUPTimeoutEvent.T13_DEFAULT;
// return 40000;
}
/*
* (non-Javadoc)
*
* @see org.mobicents.protocols.ss7.isup.impl.stack.DoubleTimers#getSmallerT_ID()
*/
protected int getSmallerT_ID() {
return ISUPTimeoutEvent.T12;
}
/*
* (non-Javadoc)
*
* @see org.mobicents.protocols.ss7.isup.impl.stack.DoubleTimers#getBiggerT_ID()
*/
protected int getBiggerT_ID() {
return ISUPTimeoutEvent.T13;
}
/*
* (non-Javadoc)
*
* @see org.mobicents.protocols.ss7.isup.impl.stack.DoubleTimers#getRequest()
*/
protected ISUPMessage getRequest() {
return super.provider.getMessageFactory().createBLO(1);
}
/*
* (non-Javadoc)
*
* @see org.mobicents.protocols.ss7.isup.impl.stack.DoubleTimers#getAnswer()
*/
protected ISUPMessage getAnswer() {
BlockingAckMessage bla = super.provider.getMessageFactory().createBLA();
CircuitIdentificationCode cic = super.provider.getParameterFactory().createCircuitIdentificationCode();
cic.setCIC(1);
bla.setCircuitIdentificationCode(cic);
return bla;
}
}