Author: dan.j.allen
Date: 2009-05-05 19:15:56 -0400 (Tue, 05 May 2009)
New Revision: 10803
Modified:
modules/trunk/international/src/test/java/org/jboss/seam/international/StatusMessagesUnitTest.java
Log:
bring into compliants with validation api rc2
fix assertion regarding default severity when adding to control
Modified:
modules/trunk/international/src/test/java/org/jboss/seam/international/StatusMessagesUnitTest.java
===================================================================
---
modules/trunk/international/src/test/java/org/jboss/seam/international/StatusMessagesUnitTest.java 2009-05-05
23:08:49 UTC (rev 10802)
+++
modules/trunk/international/src/test/java/org/jboss/seam/international/StatusMessagesUnitTest.java 2009-05-05
23:15:56 UTC (rev 10803)
@@ -77,7 +77,7 @@
assertNotNull(messages);
assertEquals(messages.size(), 1);
StatusMessage message = messages.get(0);
- assertSame(message.getSeverity(), StatusMessage.Severity.INFO);
+ assertSame(message.getSeverity(), StatusMessage.Severity.WARN);
assertNull(message.getSummary());
statusMessages.onBeforeRender();
assertEquals(message.getSummary(), "Available!");
@@ -130,14 +130,14 @@
* Test that the serverity is processed correctly when adding a message to a client
id.
*/
@Test
- public void testAddWarningMessageToControlFromTemplate()
+ public void testAddInfoMessageToControlFromTemplate()
{
StatusMessages statusMessages = getStatusMessagesInstance();
- statusMessages.addToControl("password", StatusMessage.Severity.WARN,
"Too short");
+ statusMessages.addToControl("password", StatusMessage.Severity.INFO,
"Good strength!");
List<StatusMessage> messages =
statusMessages.getKeyedMessages("password");
assertNotNull(messages);
assertEquals(messages.size(), 1);
- assertSame(StatusMessage.Severity.WARN, messages.get(0).getSeverity());
+ assertSame(StatusMessage.Severity.INFO, messages.get(0).getSeverity());
}
/**
@@ -244,5 +244,10 @@
throw new UnsupportedOperationException("Not supported by stub.");
}
+ public Class getRootBeanClass()
+ {
+ throw new UnsupportedOperationException("Not supported by stub.");
+ }
+
}
}
Show replies by date