dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18179
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7562: minor fixed
------------------------------------------------------------
revno: 7562
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-07-10 18:10:30 +0700
message:
minor fixed
modified:
dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/OrgUnits.java
dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitTest.java
dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitsTest.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-mobile/src/main/java/org/hisp/dhis/api/mobile/model/OrgUnits.java'
--- dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/OrgUnits.java 2012-07-10 09:24:04 +0000
+++ dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/OrgUnits.java 2012-07-10 11:10:30 +0000
@@ -94,7 +94,7 @@
throws IOException
{
orgUnits = new ArrayList<MobileOrgUnitLinks>();
- //double version = dataInputStream.readDouble();
+ double version = dataInputStream.readDouble();
int size = dataInputStream.readInt();
for ( int i = 0; i < size; i++ )
=== modified file 'dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitTest.java'
--- dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitTest.java 2012-07-02 09:47:16 +0000
+++ dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitTest.java 2012-07-10 11:10:30 +0000
@@ -46,7 +46,7 @@
throws IOException
{
MobileOrgUnitLinks unit = new MobileOrgUnitLinks();
- unit.setUpdateNewVersionUrl( "" );
+
unit.setId( 1 );
unit.setName( "name" );
unit.setUpdateActivityPlanUrl("updateActivityPlanUrl");
@@ -56,6 +56,7 @@
unit.setUpdateDataSetUrl( "updateDataSetUrl" );
unit.setChangeUpdateDataSetLangUrl( "changeUpdateDataSetLangUrl" );
unit.setSearchUrl( "search" );
+ unit.setUpdateNewVersionUrl( "" );
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream( baos );
=== modified file 'dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitsTest.java'
--- dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitsTest.java 2012-07-02 09:47:16 +0000
+++ dhis-2/dhis-services/dhis-service-mobile/src/test/java/org/hisp/dhis/mobile/api/model/OrgUnitsTest.java 2012-07-10 11:10:30 +0000
@@ -71,7 +71,7 @@
private MobileOrgUnitLinks createOrgUnit()
{
MobileOrgUnitLinks unit = new MobileOrgUnitLinks();
- unit.setUpdateNewVersionUrl( "test" );
+
unit.setId( 1 );
unit.setName( "name" );
unit.setUpdateActivityPlanUrl("updateActivityPlanUrl");
@@ -81,6 +81,7 @@
unit.setUpdateDataSetUrl( "updateDataSetUrl" );
unit.setChangeUpdateDataSetLangUrl( "changeUpdateDataSetLangUrl" );
unit.setSearchUrl( "search" );
+ unit.setUpdateNewVersionUrl( "test" );
return unit;
}
}