dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27551
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13721: SystemSettingStore text fix
------------------------------------------------------------
revno: 13721
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-01-14 12:43:48 +0100
message:
SystemSettingStore text fix
modified:
dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/setting/SystemSettingStoreTest.java
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/setting/SystemSettingStoreTest.java'
--- dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/setting/SystemSettingStoreTest.java 2013-09-17 18:07:42 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/setting/SystemSettingStoreTest.java 2014-01-14 11:43:48 +0000
@@ -92,9 +92,9 @@
@Test
public void testUpdateSystemSetting()
{
- systemSettingStore.save( settingA );
+ int id = systemSettingStore.save( settingA );
- settingA = systemSettingStore.getByName( "Setting1" );
+ settingA = systemSettingStore.get( id );
assertEquals( "Value1", settingA.getValue() );
@@ -102,7 +102,7 @@
systemSettingStore.update( settingA );
- settingA = systemSettingStore.getByName( "Setting1" );
+ settingA = systemSettingStore.get( id );
assertEquals( "Value2", settingA.getValue() );
}
=== 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 2013-10-01 16:44:42 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/translation/TranslationServiceTest.java 2014-01-14 11:43:48 +0000
@@ -49,16 +49,6 @@
private TranslationService translationService;
// -------------------------------------------------------------------------
- // Set up/tear down
- // -------------------------------------------------------------------------
-
- @Override
- public void setUpTest()
- {
- translationService = (TranslationService) getBean( TranslationService.ID );
- }
-
- // -------------------------------------------------------------------------
// Testdata
// -------------------------------------------------------------------------
@@ -79,6 +69,16 @@
private Translation translation2c = new Translation( className2, id2, locale3, "name", "bonjour" );
// -------------------------------------------------------------------------
+ // Set up/tear down
+ // -------------------------------------------------------------------------
+
+ @Override
+ public void setUpTest()
+ {
+ translationService = (TranslationService) getBean( TranslationService.ID );
+ }
+
+ // -------------------------------------------------------------------------
// Tests
// -------------------------------------------------------------------------