summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_pvp2_sp/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_modules/eaaf_module_pvp2_sp/src/test')
-rw-r--r--eaaf_modules/eaaf_module_pvp2_sp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/sp/test/PvpSpMessageSourceTest.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/eaaf_modules/eaaf_module_pvp2_sp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/sp/test/PvpSpMessageSourceTest.java b/eaaf_modules/eaaf_module_pvp2_sp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/sp/test/PvpSpMessageSourceTest.java
index 34ac9b5a..90bb084a 100644
--- a/eaaf_modules/eaaf_module_pvp2_sp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/sp/test/PvpSpMessageSourceTest.java
+++ b/eaaf_modules/eaaf_module_pvp2_sp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/sp/test/PvpSpMessageSourceTest.java
@@ -1,5 +1,7 @@
package at.gv.egiz.eaaf.modules.pvp2.sp.test;
+import java.util.List;
+
import at.gv.egiz.eaaf.core.api.logging.IMessageSourceLocation;
import org.junit.Assert;
@@ -18,19 +20,20 @@ public class PvpSpMessageSourceTest {
@Autowired
private ResourceLoader loader;
@Autowired(required = false)
- private IMessageSourceLocation messageSource;
+ private List<IMessageSourceLocation> messageSources;
@Test
- public void simpleTests() {
- Assert.assertNotNull("No messageSource", messageSource);
+ public void checkMessageSources() {
+ Assert.assertNotNull("No messageSource", messageSources);
- Assert.assertNotNull("No sourcePath", messageSource.getMessageSourceLocation());
+ for (final IMessageSourceLocation messageSource : messageSources) {
+ Assert.assertNotNull("No sourcePath", messageSource.getMessageSourceLocation());
- for (final String el : messageSource.getMessageSourceLocation()) {
- final Resource messages = loader.getResource(el + ".properties");
- Assert.assertTrue("Source not exist", messages.exists());
+ for (final String el : messageSource.getMessageSourceLocation()) {
+ final Resource messages = loader.getResource(el + ".properties");
+ Assert.assertTrue("Source not exist", messages.exists());
+ }
}
-
}
}