Skip to content

Commit 135e4f9

Browse files
committed
LUTECE-2368 : Fix Sonar unit test errors
1 parent d0a203d commit 135e4f9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/java/fr/paris/lutece/portal/web/user/AdminUserJspBeanTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,6 @@ private AdminUser getLevel0AdminUserWithCORE_USERS_MANAGEMENTRight( )
348348
return user;
349349
}
350350

351-
public void testDoModifyAdminUserLegacyPassword( )
352-
{
353-
354-
}
355351

356352
public void testDoModifyAdminUser( ) throws AccessDeniedException, UserNotSignedException
357353
{
@@ -1720,7 +1716,7 @@ public void testDoInsertRegularExpression( ) throws AccessDeniedException, UserN
17201716
bean.init( request, RIGHT_CORE_USERS_MANAGEMENT );
17211717
try
17221718
{
1723-
bean.doInsertRegularExpression( request ); // FIXME not really testing this plugin-regularexpression is not there
1719+
assertNotNull( bean.doInsertRegularExpression( request ) ) ;
17241720
}
17251721
finally
17261722
{
@@ -2555,7 +2551,7 @@ public void testDoRemoveRegularExpression( ) throws AccessDeniedException, UserN
25552551
bean.init( request, RIGHT_CORE_USERS_MANAGEMENT );
25562552
request.setParameter( "id_expression", "1" );
25572553
request.addParameter( SecurityTokenService.PARAMETER_TOKEN, SecurityTokenService.getInstance( ).getToken( request, AdminDashboardJspBean.TEMPLATE_MANAGE_DASHBOARDS ) );
2558-
bean.doRemoveRegularExpression( request ); // FIXME not really testing this plugin-regularexpression is not there
2554+
assertNotNull( bean.doRemoveRegularExpression( request ) );
25592555
}
25602556
finally
25612557
{

0 commit comments

Comments
 (0)