← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16922: Minor

 

------------------------------------------------------------
revno: 16922
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-10-02 10:10:31 +0200
message:
  Minor
modified:
  dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/common/IdentifiableObjectManagerTest.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/common/IdentifiableObjectManagerTest.java'
--- dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/common/IdentifiableObjectManagerTest.java	2014-10-01 15:41:30 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/common/IdentifiableObjectManagerTest.java	2014-10-02 08:10:31 +0000
@@ -174,17 +174,17 @@
     @Test
     public void getAllEqualToNameIgnoreCase()
     {
-        OrganisationUnit organisationUnitA1 = createOrganisationUnit( 'A' );
-        organisationUnitA1.setCode( null );
-        identifiableObjectManager.save( organisationUnitA1 );
-
-        OrganisationUnit organisationUnitA2 = createOrganisationUnit( 'B' );
-        organisationUnitA2.setName( "OrganisationUnitA" );
-        organisationUnitA2.setCode( null );
-        identifiableObjectManager.save( organisationUnitA2 );
-
-        assertEquals( 2, identifiableObjectManager.getAllByNameIgnoreCase( OrganisationUnit.class, "OrganisationUnitA" ).size() );
-        assertEquals( 2, identifiableObjectManager.getAllByNameIgnoreCase( OrganisationUnit.class, "organisationunita" ).size() );
+        OrganisationUnit organisationUnitC1 = createOrganisationUnit( 'C' );
+        organisationUnitC1.setCode( null );
+        identifiableObjectManager.save( organisationUnitC1 );
+
+        OrganisationUnit organisationUnitC2 = createOrganisationUnit( 'D' );
+        organisationUnitC2.setName( "OrganisationUnitC" );
+        organisationUnitC2.setCode( null );
+        identifiableObjectManager.save( organisationUnitC2 );
+
+        assertEquals( 2, identifiableObjectManager.getAllByNameIgnoreCase( OrganisationUnit.class, "OrganisationUnitC" ).size() );
+        assertEquals( 2, identifiableObjectManager.getAllByNameIgnoreCase( OrganisationUnit.class, "organisationunitc" ).size() );
     }
 
     @Test