mirror of https://github.com/sipwise/jitsi.git
parent
33aabb1f0a
commit
01dca1909d
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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 junit.framework.*;
|
||||
import org.osgi.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();
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue