77 */
88package org .italiangrid .voms .test ;
99
10- import static java .util .Objects .isNull ;
1110import 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 ;
1313import static org .junit .Assert .assertTrue ;
1414
1515import 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