dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35781
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18315: reorder dataelement save order, to make sure that order query is correctly executed
------------------------------------------------------------
revno: 18315
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-02-18 20:26:19 +0700
message:
reorder dataelement save order, to make sure that order query is correctly executed
modified:
dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/query/QueryServiceTest.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/query/QueryServiceTest.java'
--- dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/query/QueryServiceTest.java 2015-02-18 13:22:39 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/query/QueryServiceTest.java 2015-02-18 13:26:19 +0000
@@ -80,12 +80,12 @@
dataElementE.setCreated( Year.parseYear( "2005" ).getStart() );
dataElementF.setCreated( Year.parseYear( "2006" ).getStart() );
+ identifiableObjectManager.save( dataElementB );
+ identifiableObjectManager.save( dataElementE );
identifiableObjectManager.save( dataElementA );
- identifiableObjectManager.save( dataElementB );
identifiableObjectManager.save( dataElementC );
+ identifiableObjectManager.save( dataElementF );
identifiableObjectManager.save( dataElementD );
- identifiableObjectManager.save( dataElementE );
- identifiableObjectManager.save( dataElementF );
}
private boolean collectionContainsUid( Collection<? extends IdentifiableObject> collection, String uid )