← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16926: Minor

 

------------------------------------------------------------
revno: 16926
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-10-02 11:36:33 +0200
message:
  Minor
modified:
  dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/common/IdentifiableObjectManagerTest.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/common/IdentifiableObjectManagerTest.java'
--- dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/common/IdentifiableObjectManagerTest.java	2014-10-02 08:10:31 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/common/IdentifiableObjectManagerTest.java	2014-10-02 09:36:33 +0000
@@ -28,7 +28,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-import com.google.common.collect.Sets;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.ArrayList;
+import java.util.GregorianCalendar;
+import java.util.List;
 
 import org.hibernate.SessionFactory;
 import org.hisp.dhis.DhisSpringTest;
@@ -43,15 +51,10 @@
 import org.hisp.dhis.user.UserGroup;
 import org.hisp.dhis.user.UserGroupAccess;
 import org.hisp.dhis.user.UserService;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 
-import java.util.ArrayList;
-import java.util.GregorianCalendar;
-import java.util.List;
-
-import static org.junit.Assert.*;
+import com.google.common.collect.Sets;
 
 /**
  * @author Morten Olav Hansen <mortenoh@xxxxxxxxx>
@@ -278,7 +281,6 @@
         assertEquals( user, dataElement.getUser() );
     }
 
-    @Ignore // TODO
     @Test
     public void userCanCreatePublic()
     {
@@ -305,7 +307,6 @@
         assertFalse( AccessStringHelper.canWrite( dataElement.getPublicAccess() ) );
     }
 
-    @Ignore // TODO
     @Test( expected = CreateAccessDeniedException.class )
     public void userDeniedCreateObject()
     {
@@ -313,7 +314,6 @@
         identifiableObjectManager.save( createDataElement( 'A' ) );
     }
 
-    @Ignore // TODO
     @Test( expected = DeleteAccessDeniedException.class )
     public void userDeniedDeleteObject()
     {
@@ -344,7 +344,6 @@
         assertEquals( 4, identifiableObjectManager.getAll( DataElement.class ).size() );
     }
 
-    @Ignore // TODO
     @Test
     public void readPrivateObjects()
     {
@@ -374,7 +373,6 @@
         assertEquals( 0, identifiableObjectManager.getAll( DataElement.class ).size() );
     }
 
-    @Ignore // TODO
     @Test
     public void readUserGroupSharedObjects()
     {