[seam-commits] Seam SVN: r13184 - in modules/faces/trunk/impl/src: test/java/org/jboss/seam/faces/status and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jun 16 12:49:36 EDT 2010


Author: lincolnthree
Date: 2010-06-16 12:49:35 -0400 (Wed, 16 Jun 2010)
New Revision: 13184

Modified:
   modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/status/MessagesAdapter.java
   modules/faces/trunk/impl/src/test/java/org/jboss/seam/faces/status/MessagesAdapterTest.java
Log:
Fixed compilation issues due to i18n pom dependency pulling Alpha, not Snapshot

Modified: modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/status/MessagesAdapter.java
===================================================================
--- modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/status/MessagesAdapter.java	2010-06-16 16:45:55 UTC (rev 13183)
+++ modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/status/MessagesAdapter.java	2010-06-16 16:49:35 UTC (rev 13184)
@@ -37,7 +37,7 @@
 import org.jboss.seam.faces.event.qualifier.RenderResponse;
 import org.jboss.seam.international.status.Level;
 import org.jboss.seam.international.status.Message;
-import org.jboss.seam.international.status.MessagesImpl;
+import org.jboss.seam.international.status.Messages;
 import org.slf4j.Logger;
 
 /**
@@ -54,7 +54,7 @@
    private static final String FLASH_MESSAGES_KEY = MessagesAdapter.class.getName() + ".FLASH_KEY";
 
    @Inject
-   MessagesImpl messages;
+   Messages messages;
 
    @Inject
    FlashContext context;
@@ -64,7 +64,7 @@
 
    void flushBeforeNavigate(@Observes final PreNavigateEvent event)
    {
-      if (!messages.isEmpty())
+      if (!messages.getAll().isEmpty())
       {
          log.debug("Saving status Messages to Flash Scope");
          context.put(FLASH_MESSAGES_KEY, messages.getAll());

Modified: modules/faces/trunk/impl/src/test/java/org/jboss/seam/faces/status/MessagesAdapterTest.java
===================================================================
--- modules/faces/trunk/impl/src/test/java/org/jboss/seam/faces/status/MessagesAdapterTest.java	2010-06-16 16:45:55 UTC (rev 13183)
+++ modules/faces/trunk/impl/src/test/java/org/jboss/seam/faces/status/MessagesAdapterTest.java	2010-06-16 16:49:35 UTC (rev 13184)
@@ -36,7 +36,7 @@
 import org.jboss.seam.faces.event.PhaseEventBridge;
 import org.jboss.seam.international.status.Bundles;
 import org.jboss.seam.international.status.MessageFactory;
-import org.jboss.seam.international.status.MessagesImpl;
+import org.jboss.seam.international.status.Messages;
 import org.jboss.seam.international.status.builder.BundleTemplateMessageImpl;
 import org.jboss.seam.international.status.builder.TemplateMessageImpl;
 import org.jboss.shrinkwrap.api.ArchivePaths;
@@ -58,11 +58,11 @@
    @Deployment
    public static JavaArchive createTestArchive()
    {
-      return ShrinkWrap.create("test.jar", JavaArchive.class).addClasses(MessagesAdapter.class, MessagesImpl.class, MockFlashContext.class, MessageFactory.class, TemplateMessageImpl.class, BundleTemplateMessageImpl.class, Bundles.class, PhaseEventBridge.class, MockLogger.class).addManifestResource(new ByteArrayAsset(new byte[0]), ArchivePaths.create("beans.xml"));
+      return ShrinkWrap.create("test.jar", JavaArchive.class).addClasses(MessagesAdapter.class, Messages.class, MockFlashContext.class, MessageFactory.class, TemplateMessageImpl.class, BundleTemplateMessageImpl.class, Bundles.class, PhaseEventBridge.class, MockLogger.class).addManifestResource(new ByteArrayAsset(new byte[0]), ArchivePaths.create("beans.xml"));
    }
 
    @Inject
-   MessagesImpl messages;
+   Messages messages;
 
    String text = "Hey! This is a message";
 



More information about the seam-commits mailing list