Added a connection registry to avoid creating redundant connections.

This commit is contained in:
akwizgran
2011-12-09 17:34:58 +00:00
parent 9abe920edb
commit f9f41acde9
69 changed files with 435 additions and 182 deletions

View File

@@ -3,13 +3,13 @@ import java.awt.Font;
import java.io.File;
import java.util.Locale;
import junit.framework.TestCase;
import net.sf.briar.BriarTestCase;
import net.sf.briar.TestUtils;
import net.sf.briar.api.i18n.FontManager;
import org.junit.Test;
public class FontManagerTest extends TestCase {
public class FontManagerTest extends BriarTestCase {
private final File fontDir = TestUtils.getFontDirectory();

View File

@@ -5,7 +5,7 @@ import java.io.File;
import java.io.IOException;
import java.util.Locale;
import junit.framework.TestCase;
import net.sf.briar.BriarTestCase;
import net.sf.briar.TestUtils;
import net.sf.briar.api.i18n.FontManager;
import net.sf.briar.api.i18n.I18n;
@@ -16,7 +16,7 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class I18nTest extends TestCase {
public class I18nTest extends BriarTestCase {
private final File base =
new File(TestUtils.getBuildDirectory(), "i18n.properties");