Skip to content

Commit 44029b6

Browse files
committed
ModuleServiceText: clean up
1 parent 04e9442 commit 44029b6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/java/org/scijava/module/ModuleServiceTest.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@
3131

3232
package org.scijava.module;
3333

34+
import static org.junit.Assert.assertEquals;
3435
import static org.junit.Assert.assertNull;
3536
import static org.junit.Assert.assertSame;
3637

37-
import java.security.GeneralSecurityException;
38-
39-
import org.junit.Assert;
4038
import org.junit.Test;
4139
import org.scijava.Context;
4240
import org.scijava.prefs.PrefService;
@@ -100,14 +98,14 @@ public void testPersistingWithInitialize() {
10098

10199
// verify that the item is not persisted
102100
String persistKey = doubleItem.getPersistKey();
103-
Assert.assertNull(prefService.get(persistKey));
101+
assertNull(prefService.get(persistKey));
104102

105103
// save ModuleItem for which getInitializer() returns null
106104
moduleService.save(integerItem, 5);
107105

108106
// verify that the item is persisted
109107
persistKey = integerItem.getPersistKey();
110-
Assert.assertEquals(5, prefService.getInt(persistKey, 0));
108+
assertEquals(5, prefService.getInt(persistKey, 0));
111109
}
112110

113111
/** A sample module for testing the module service. */

0 commit comments

Comments
 (0)