dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28162
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14047: TranslationServiceTest, avoiding reuse of objects
------------------------------------------------------------
revno: 14047
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-02-17 08:57:24 +0100
message:
TranslationServiceTest, avoiding reuse of objects
modified:
dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/translation/TranslationServiceTest.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/translation/TranslationServiceTest.java'
--- dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/translation/TranslationServiceTest.java 2014-01-14 13:28:28 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/translation/TranslationServiceTest.java 2014-02-17 07:57:24 +0000
@@ -62,11 +62,11 @@
private String className1 = OrganisationUnit.class.getName();
private String className2 = DataElement.class.getName();
- private Translation translation1a = new Translation( className1, id1, locale1, "name", "cheers" );
- private Translation translation1b = new Translation( className1, id1, locale1, "shortName", "goodbye" );
- private Translation translation2a = new Translation( className1, id1, locale2, "name", "hello" );
- private Translation translation2b = new Translation( className2, id1, locale2, "name", "hey" );
- private Translation translation2c = new Translation( className2, id2, locale3, "name", "bonjour" );
+ private Translation translation1a = null;
+ private Translation translation1b = null;
+ private Translation translation2a = null;
+ private Translation translation2b = null;
+ private Translation translation2c = null;
// -------------------------------------------------------------------------
// Set up/tear down
@@ -76,6 +76,12 @@
public void setUpTest()
{
translationService = (TranslationService) getBean( TranslationService.ID );
+
+ translation1a = new Translation( className1, id1, locale1, "name", "cheers" );
+ translation1b = new Translation( className1, id1, locale1, "shortName", "goodbye" );
+ translation2a = new Translation( className1, id1, locale2, "name", "hello" );
+ translation2b = new Translation( className2, id1, locale2, "name", "hey" );
+ translation2c = new Translation( className2, id2, locale3, "name", "bonjour" );
}
// -------------------------------------------------------------------------