Skip to content

Commit 784734f

Browse files
More readable tests
1 parent cd33b54 commit 784734f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/java/org/italiangrid/voms/test/TestDefaultVOMSTrustStore.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
*/
88
package org.italiangrid.voms.test;
99

10-
import static java.util.Objects.isNull;
1110
import static org.junit.Assert.assertEquals;
12-
import static org.junit.Assert.assertFalse;
11+
import static org.junit.Assert.assertNotNull;
12+
import static org.junit.Assert.assertNull;
1313
import static org.junit.Assert.assertTrue;
1414

1515
import java.io.FileInputStream;
@@ -101,9 +101,9 @@ public void testAllLSCInStore() {
101101

102102
DefaultVOMSTrustStore store = new DefaultVOMSTrustStore(trustDirs, NullListener.INSTANCE);
103103

104-
assertFalse(isNull(store.getLSC("test.vo", "test-host.cnaf.infn.it")));
105-
assertFalse(isNull(store.getLSC("test.vo", "test-multichain.cnaf.infn.it")));
106-
assertFalse(isNull(store.getLSC("test.vo.1", "wilco.cnaf.infn.it")));
104+
assertNotNull(store.getLSC("test.vo", "test-host.cnaf.infn.it"));
105+
assertNotNull(store.getLSC("test.vo", "test-multichain.cnaf.infn.it"));
106+
assertNotNull(store.getLSC("test.vo.1", "wilco.cnaf.infn.it"));
107107

108108
}
109109

@@ -115,9 +115,9 @@ public void testLSCForVoInStore() {
115115
DefaultVOMSTrustStore store =
116116
new DefaultVOMSTrustStore(trustDirs, Arrays.asList("test.vo"), NullListener.INSTANCE);
117117

118-
assertFalse(isNull(store.getLSC("test.vo", "test-host.cnaf.infn.it")));
119-
assertFalse(isNull(store.getLSC("test.vo", "test-multichain.cnaf.infn.it")));
120-
assertTrue(isNull(store.getLSC("test.vo.1", "wilco.cnaf.infn.it")));
118+
assertNotNull(store.getLSC("test.vo", "test-host.cnaf.infn.it"));
119+
assertNotNull(store.getLSC("test.vo", "test-multichain.cnaf.infn.it"));
120+
assertNull(store.getLSC("test.vo.1", "wilco.cnaf.infn.it"));
121121

122122
}
123123

0 commit comments

Comments
 (0)