File tree 1 file changed +0
-22
lines changed
src/test/java/org/scijava/ui/swing/console
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 1
1
package org .scijava .ui .swing .console ;
2
2
3
- import static org .junit .Assert .assertEquals ;
4
3
import static org .junit .Assert .assertFalse ;
5
4
import static org .junit .Assert .assertTrue ;
6
5
7
- import java .util .Collections ;
8
- import java .util .Map ;
9
-
10
6
import org .junit .Test ;
11
7
import org .scijava .Context ;
12
8
import org .scijava .prefs .PrefService ;
18
14
*/
19
15
public class LogFormatterTest {
20
16
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
-
39
17
@ Test
40
18
public void testSettings () {
41
19
PrefService prefService = new Context (PrefService .class ).service (PrefService .class );
You can’t perform that action at this time.
0 commit comments