dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39544
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20022: Test update
------------------------------------------------------------
revno: 20022
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-09-07 12:51:25 +0200
message:
Test update
modified:
dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/program/ProgramIndicatorServiceTest.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/program/ProgramIndicatorServiceTest.java'
--- dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/program/ProgramIndicatorServiceTest.java 2015-09-07 10:45:45 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/program/ProgramIndicatorServiceTest.java 2015-09-07 10:51:25 +0000
@@ -557,12 +557,14 @@
String expected =
"coalesce(case when \"EZq9VbPWgML\" < 0 then 0 else \"EZq9VbPWgML\" end, 0) + " +
"(cast(\"kts5J79K9gA\" as date) - cast(\"GCyeKSqlpdk\" as date)) + " +
- "case when (80 > 70) then 100 else 50 end";
-
+ "case when (\"GCyeKSqlpdk\" > 70) then 100 else 50 end + " +
+ "case when (\"HihhUWBeg7I\" < 30) then 20 else 100 end";
+
String expression =
"d2:zing(#{OXXcwl6aPCQ.EZq9VbPWgML}) + " +
"d2:daysBetween(#{OXXcwl6aPCQ.GCyeKSqlpdk},#{OXXcwl6aPCQ.kts5J79K9gA}) + " +
- "d2:condition(80 > 70,100,50)";
+ "d2:condition(\"#{OXXcwl6aPCQ.GCyeKSqlpdk} > 70\",100,50) + " +
+ "d2:condition('#{OXXcwl6aPCQ.HihhUWBeg7I} < 30',20,100)";
assertEquals( expected, programIndicatorService.getAnalyticsSQl( expression ) );
}