dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16716
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6425: Minor fix
------------------------------------------------------------
revno: 6425
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-03-28 21:36:17 +0200
message:
Minor fix
modified:
dhis-2/dhis-services/dhis-service-importexport/src/test/java/org/hisp/dhis/importexport/dxf2/service/DataValueSetServiceTest.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-importexport/src/test/java/org/hisp/dhis/importexport/dxf2/service/DataValueSetServiceTest.java'
--- dhis-2/dhis-services/dhis-service-importexport/src/test/java/org/hisp/dhis/importexport/dxf2/service/DataValueSetServiceTest.java 2012-03-28 16:04:53 +0000
+++ dhis-2/dhis-services/dhis-service-importexport/src/test/java/org/hisp/dhis/importexport/dxf2/service/DataValueSetServiceTest.java 2012-03-28 19:36:17 +0000
@@ -116,9 +116,9 @@
is.close();
dataValueSet = new DataValueSet();
- dataValueSet.setDataSetIdentifier( DATA_SET_UUID );
- dataValueSet.setPeriodIsoDate( "2011W5" );
- dataValueSet.setOrganisationUnitIdentifier( ORGANISATION_UNIT_UUID );
+ dataValueSet.setDataSet( DATA_SET_UUID );
+ dataValueSet.setPeriod( "2011W5" );
+ dataValueSet.setOrgUnit( ORGANISATION_UNIT_UUID );
final org.hisp.dhis.dxf2.datavalue.DataValue dv = new org.hisp.dhis.dxf2.datavalue.DataValue();
dv.setDataElement( DATA_ELEMENT_UUID );
@@ -151,9 +151,9 @@
DataValueSet dxfDataValueSet = (DataValueSet) u.unmarshal( is );
is.close();
- assertEquals( dataValueSet.getDataSetIdentifier(), dxfDataValueSet.getDataSetIdentifier() );
- assertEquals( dataValueSet.getPeriodIsoDate(), dxfDataValueSet.getPeriodIsoDate() );
- assertEquals( dataValueSet.getOrganisationUnitIdentifier(), dxfDataValueSet.getOrganisationUnitIdentifier() );
+ assertEquals( dataValueSet.getDataSet(), dxfDataValueSet.getDataSet() );
+ assertEquals( dataValueSet.getPeriod(), dxfDataValueSet.getPeriod() );
+ assertEquals( dataValueSet.getOrgUnit(), dxfDataValueSet.getOrgUnit() );
assertEquals( 1, dxfDataValueSet.getDataValues().size() );
@@ -239,7 +239,7 @@
@Test
public void dataSetMissing()
{
- dataValueSet.setDataSetIdentifier( null );
+ dataValueSet.setDataSet( null );
setValue( "999" );
testSave( "999" );
@@ -249,7 +249,7 @@
@Test
public void orgunitMissingOrNotInSet()
{
- dataValueSet.setOrganisationUnitIdentifier( "ladlalad" );
+ dataValueSet.setOrgUnit( "ladlalad" );
try
{
service.saveDataValueSet( dataValueSet );
@@ -261,7 +261,7 @@
// Expected
}
- dataValueSet.setOrganisationUnitIdentifier( ORGANISATION_UNIT_NOT_IN_SET_UUID );
+ dataValueSet.setOrgUnit( ORGANISATION_UNIT_NOT_IN_SET_UUID );
try
{
@@ -279,7 +279,7 @@
public void illegalPeriod()
{
- dataValueSet.setPeriodIsoDate( "2011" );
+ dataValueSet.setPeriod( "2011" );
try
{