Augmented time between changes of states in unit testing

cusax-fix
Emil Ivov 20 years ago
parent cd9c839f4d
commit f1ed70a1ad

@ -12,7 +12,7 @@
import java.util.*;
/**
*
* Performs testing of the MetaContactListService.
* @author Emil Ivov
*/
public class MetaContactListServiceLick
@ -23,7 +23,7 @@ public class MetaContactListServiceLick
Logger.getLogger(MetaContactListServiceLick.class);
/**
* Register
* Register.
*/
public void start(BundleContext context) throws Exception
{

@ -25,14 +25,9 @@ public MockProvider()
}
/**
* Registers the specified listener with this provider so that it would
* receive notifications on changes of its state or other properties such
* as its local address and display name.
* Mock implementation of the corresponding ProtocolProviderService method.
*
* @param listener the listener to register.
* @todo Implement this
* net.java.sip.communicator.service.protocol.ProtocolProviderService
* method
* @param listener a param.
*/
public void addRegistrationStateChangeListener(
RegistrationStateChangeListener listener)
@ -40,16 +35,9 @@ public void addRegistrationStateChangeListener(
}
/**
* Returns the short name of the protocol that the implementation of this
* provider is based upon (like SIP, Jabber, ICQ/AIM, or others for
* example).
* Mock implementation of the corresponding ProtocolProviderService method.
*
* @return a String containing the short name of the protocol this
* service is implementing (most often that would be a name in
* ProtocolNames).
* @todo Implement this
* net.java.sip.communicator.service.protocol.ProtocolProviderService
* method
* @return an empty.
*/
public String getProtocolName()
{
@ -57,13 +45,9 @@ public String getProtocolName()
}
/**
* Returns the state of the registration of this protocol provider with
* the corresponding registration service.
* Mock implementation of the corresponding ProtocolProviderService method.
*
* @return ProviderRegistrationState
* @todo Implement this
* net.java.sip.communicator.service.protocol.ProtocolProviderService
* method
* @return a null ProviderRegistrationState
*/
public RegistrationState getRegistrationState()
{
@ -77,9 +61,6 @@ public RegistrationState getRegistrationState()
* @return a java.util.Map containing instance of all supported
* operation sets mapped against their class names (e.g.
* OperationSetPresence.class.getName()) .
* @todo Implement this
* net.java.sip.communicator.service.protocol.ProtocolProviderService
* method
*/
public Map getSupportedOperationSets()
{

@ -211,9 +211,9 @@ public void testChangingStateToFreeForChat() throws Exception
*/
public void testChangingStateToOnline() throws Exception
{
java.util.logging.Logger.getLogger("net.kano").setLevel(java.util.logging.Level.FINEST);
// java.util.logging.Logger.getLogger("net.kano").setLevel(java.util.logging.Level.FINEST);
subtestStateTransition(IcqStatusEnum.ONLINE);
java.util.logging.Logger.getLogger("net.kano").setLevel(java.util.logging.Level.WARNING);
// java.util.logging.Logger.getLogger("net.kano").setLevel(java.util.logging.Level.WARNING);
}
/**
@ -310,7 +310,7 @@ private void pauseBetweenStateChanges()
{
try
{
Thread.currentThread().sleep(2000);
Thread.currentThread().sleep(5000);
}
catch (InterruptedException ex)
{

Loading…
Cancel
Save