mirror of https://github.com/sipwise/jitsi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
/*
|
|
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
|
*
|
|
* Distributable under LGPL license.
|
|
* See terms of license at gnu.org.
|
|
*/
|
|
package net.java.sip.communicator.slick.configuration;
|
|
|
|
import org.osgi.framework.*;
|
|
import junit.framework.*;
|
|
import net.java.sip.communicator.service.configuration.*;
|
|
|
|
/**
|
|
* Performs finalization tasks (such as removing the configuration file) at the
|
|
* end of the ConfigurationServiceLick.
|
|
*
|
|
* @author Emil Ivov
|
|
*/
|
|
public class TestConfigurationSlickFinalizer
|
|
extends TestCase
|
|
{
|
|
public TestConfigurationSlickFinalizer()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public TestConfigurationSlickFinalizer(String name)
|
|
{
|
|
super(name);
|
|
}
|
|
|
|
/**
|
|
* Removes the currently stored configuration.
|
|
*/
|
|
public void testPurgeConfiguration()
|
|
{
|
|
BundleContext context = ConfigurationServiceLick.bc;
|
|
ServiceReference ref = context.getServiceReference(
|
|
ConfigurationService.class.getName());
|
|
ConfigurationService configurationService
|
|
= (ConfigurationService)context.getService(ref);
|
|
|
|
configurationService.purgeStoredConfiguration();
|
|
|
|
}
|
|
}
|