Skip to content

Commit 608e6d2

Browse files
committed
Remove locale dependant tests.
String.format required these, but now that we are using StringBuffer locale will have no impact.
1 parent 5b84c7e commit 608e6d2

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/test/java/com/dampcake/bencode/BencodeOutputStreamTest.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
package com.dampcake.bencode;
22

3-
import org.junit.AfterClass;
43
import org.junit.Before;
54
import org.junit.Test;
6-
import org.junit.runner.RunWith;
7-
import org.junit.runners.Parameterized;
85

96
import java.io.ByteArrayOutputStream;
107
import java.util.ArrayList;
11-
import java.util.Collection;
128
import java.util.HashMap;
13-
import java.util.LinkedList;
14-
import java.util.Locale;
159
import java.util.concurrent.ConcurrentSkipListMap;
1610

1711
import static com.dampcake.bencode.Assert.assertThrows;
@@ -22,35 +16,13 @@
2216
*
2317
* @author Adam Peck
2418
*/
25-
@RunWith(Parameterized.class)
2619
public class BencodeOutputStreamTest {
2720

28-
private static Locale startLocale = Locale.getDefault();
29-
30-
@Parameterized.Parameter
31-
public Locale testLocale;
32-
33-
@AfterClass
34-
public static void restore() throws Exception {
35-
Locale.setDefault(startLocale);
36-
}
37-
38-
@Parameterized.Parameters(name = "{index}: {0}")
39-
public static Collection<Object[]> data() {
40-
LinkedList<Object[]> res = new LinkedList<Object[]>();
41-
for (Locale locale : Locale.getAvailableLocales()) {
42-
res.add(new Object[] {locale});
43-
}
44-
return res;
45-
}
46-
4721
private ByteArrayOutputStream out;
4822
private BencodeOutputStream instance;
4923

5024
@Before
5125
public void setUp() {
52-
Locale.setDefault(testLocale);
53-
5426
out = new ByteArrayOutputStream();
5527
instance = new BencodeOutputStream(out);
5628
}

0 commit comments

Comments
 (0)