← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5773: Deprecation fix

 

------------------------------------------------------------
revno: 5773
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2012-01-22 06:35:16 +0100
message:
  Deprecation fix
modified:
  dhis-2/dhis-services/dhis-service-reporting/src/test/java/org/hisp/dhis/dashboard/DashboardStoreTest.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-reporting/src/test/java/org/hisp/dhis/dashboard/DashboardStoreTest.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/test/java/org/hisp/dhis/dashboard/DashboardStoreTest.java	2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/test/java/org/hisp/dhis/dashboard/DashboardStoreTest.java	2012-01-22 05:35:16 +0000
@@ -39,7 +39,6 @@
 import org.hisp.dhis.user.User;
 import org.hisp.dhis.user.UserStore;
 import org.junit.Test;
-import org.springframework.test.annotation.ExpectedException;
 
 /**
  * @author Lars Helge Overland
@@ -94,8 +93,7 @@
         assertEquals( reportA, dashboardContentStore.get( userA.getId() ).getReports().iterator().next() );
     }
     
-    @Test
-    @ExpectedException( NonUniqueObjectException.class )
+    @Test(expected=NonUniqueObjectException.class)
     public void duplicate()
     {
         contentA.setUser( userA );