dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43867
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22249: minor fix
------------------------------------------------------------
revno: 22249
committer: Morten Olav Hansen <morten@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2016-03-11 14:10:30 +0700
message:
minor fix
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceProgramTest.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-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceProgramTest.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceProgramTest.java 2016-03-11 07:05:57 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceProgramTest.java 2016-03-11 07:10:30 +0000
@@ -45,7 +45,6 @@
import org.hisp.dhis.user.User;
import org.hisp.dhis.user.UserAuthorityGroup;
import org.hisp.dhis.validation.ValidationRule;
-import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;
@@ -163,7 +162,6 @@
}
@Test
- @Ignore
public void testCreateSimpleProgramReg() throws IOException
{
Map<Class<? extends IdentifiableObject>, List<IdentifiableObject>> metadata = renderService.fromMetadata(
@@ -180,7 +178,6 @@
objectBundleService.commit( bundle );
- List<DataSet> dataSets = manager.getAll( DataSet.class );
List<OrganisationUnit> organisationUnits = manager.getAll( OrganisationUnit.class );
List<DataElement> dataElements = manager.getAll( DataElement.class );
List<UserAuthorityGroup> userRoles = manager.getAll( UserAuthorityGroup.class );
@@ -190,13 +187,12 @@
List<ProgramStageDataElement> programStageDataElements = manager.getAll( ProgramStageDataElement.class );
List<ProgramTrackedEntityAttribute> programTrackedEntityAttributes = manager.getAll( ProgramTrackedEntityAttribute.class );
- assertFalse( dataSets.isEmpty() );
assertFalse( organisationUnits.isEmpty() );
assertFalse( dataElements.isEmpty() );
assertFalse( users.isEmpty() );
assertFalse( userRoles.isEmpty() );
assertEquals( 1, programs.size() );
- assertEquals( 1, programStages.size() );
+ assertEquals( 2, programStages.size() );
assertEquals( 4, programStageDataElements.size() );
assertEquals( 2, programTrackedEntityAttributes.size() );
}