File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
test-support/src/test/java/org/springframework/ldap/test Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2828import org .springframework .ldap .core .LdapTemplate ;
2929import org .springframework .ldap .query .LdapQueryBuilder ;
3030
31- import static org .junit .Assert .assertEquals ;
32- import static org .junit .Assert .assertNotNull ;
31+ import static org .assertj .core .api .Assertions .assertThat ;
3332
3433public class EmbeddedLdapServerFactoryBeanTests {
3534
3635 @ Test
3736 public void testServerStartup () throws Exception {
3837 ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext ("/applicationContext.xml" );
3938 LdapTemplate ldapTemplate = ctx .getBean (LdapTemplate .class );
40- assertNotNull (ldapTemplate );
39+ assertThat (ldapTemplate ). isNotNull ( );
4140
4241 List <String > list = ldapTemplate .search (LdapQueryBuilder .query ().where ("objectclass" ).is ("person" ),
4342 new AttributesMapper <String >() {
4443 public String mapFromAttributes (Attributes attrs ) throws NamingException {
4544 return (String ) attrs .get ("cn" ).get ();
4645 }
4746 });
48- assertEquals ( 5 , list .size ());
47+ assertThat ( 5 ). isEqualTo ( list .size ());
4948 }
5049
5150}
You can’t perform that action at this time.
0 commit comments