Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
NEXUS-421: added IT
Browse files Browse the repository at this point in the history
git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/trunk/nexus@6263 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
  • Loading branch information
cstamas committed Apr 2, 2010
1 parent 4f78f68 commit 04b3bda
Show file tree
Hide file tree
Showing 3 changed files with 526 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,16 @@ public static SystemNotificationSettings convert( NotificationManager manager )
return null;
}

SystemNotificationSettings settings = new SystemNotificationSettings();
settings.setEnabled( manager.isEnabled() );

NotificationTarget target = manager.readNotificationTarget( NotificationCheat.AUTO_BLOCK_NOTIFICATION_GROUP_ID );

if ( target == null )
{
return null;
return settings;
}

SystemNotificationSettings settings = new SystemNotificationSettings();
settings.setEnabled( manager.isEnabled() );
settings.getRoles().addAll( target.getTargetRoles() );

StringBuffer sb = new StringBuffer();
Expand Down
Loading

0 comments on commit 04b3bda

Please sign in to comment.