Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f76d57

Browse files
committed
LogFormatterTest: remove irrelevant tests
The PrefService is thoroughly unit tested in SciJava Common.
1 parent f507810 commit 2f76d57

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/test/java/org/scijava/ui/swing/console/LogFormatterTest.java

-22
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
package org.scijava.ui.swing.console;
22

3-
import static org.junit.Assert.assertEquals;
43
import static org.junit.Assert.assertFalse;
54
import static org.junit.Assert.assertTrue;
65

7-
import java.util.Collections;
8-
import java.util.Map;
9-
106
import org.junit.Test;
117
import org.scijava.Context;
128
import org.scijava.prefs.PrefService;
@@ -18,24 +14,6 @@
1814
*/
1915
public class LogFormatterTest {
2016

21-
@Test
22-
public void testPrefService() {
23-
PrefService prefService = new Context(PrefService.class).service(PrefService.class);
24-
String expected = "Hello World";
25-
prefService.put("foo", expected);
26-
String actual = prefService.get("foo");
27-
assertEquals(expected, actual);
28-
}
29-
30-
@Test
31-
public void testPrefServiceMap() {
32-
PrefService prefService = new Context(PrefService.class).service(PrefService.class);
33-
Map<String, String> expected = Collections.singletonMap("Hello", "World");
34-
prefService.putMap("/foo", expected);
35-
Map<String, String> actual = prefService.getMap("/foo");
36-
assertEquals(expected, actual);
37-
}
38-
3917
@Test
4018
public void testSettings() {
4119
PrefService prefService = new Context(PrefService.class).service(PrefService.class);

0 commit comments

Comments
 (0)