use of javax.faces.application.FacesMessage in project deltaspike by apache.
the class JsfUtilsTest method testNewMessageWithExistingMessageWithoutDetails.
@Test
public void testNewMessageWithExistingMessageWithoutDetails() {
List<FacesMessage> existingFacesMessage = new ArrayList<FacesMessage>();
existingFacesMessage.add(new FacesMessage("existing", null));
FacesMessage messageToCheck = new FacesMessage("new", "message");
Assert.assertEquals(Boolean.TRUE, JsfUtils.isNewMessage(existingFacesMessage, messageToCheck));
}
use of javax.faces.application.FacesMessage in project deltaspike by apache.
the class JsfUtilsTest method testNewMessageWithoutText.
@Test
public void testNewMessageWithoutText() {
List<FacesMessage> existingFacesMessage = new ArrayList<FacesMessage>();
existingFacesMessage.add(new FacesMessage("existing", "message"));
FacesMessage messageToCheck = new FacesMessage(null, null);
Assert.assertEquals(Boolean.TRUE, JsfUtils.isNewMessage(existingFacesMessage, messageToCheck));
}
use of javax.faces.application.FacesMessage in project deltaspike by apache.
the class JsfUtilsTest method testNewMessageWithExistingMessageWithoutText.
@Test
public void testNewMessageWithExistingMessageWithoutText() {
List<FacesMessage> existingFacesMessage = new ArrayList<FacesMessage>();
existingFacesMessage.add(new FacesMessage(null, null));
FacesMessage messageToCheck = new FacesMessage("test");
Assert.assertEquals(Boolean.TRUE, JsfUtils.isNewMessage(existingFacesMessage, messageToCheck));
}
use of javax.faces.application.FacesMessage in project deltaspike by apache.
the class JsfUtilsTest method testNewMessageWithoutDetails.
@Test
public void testNewMessageWithoutDetails() {
List<FacesMessage> existingFacesMessage = new ArrayList<FacesMessage>();
existingFacesMessage.add(new FacesMessage("existing", "message"));
FacesMessage messageToCheck = new FacesMessage("test", null);
Assert.assertEquals(Boolean.TRUE, JsfUtils.isNewMessage(existingFacesMessage, messageToCheck));
}
use of javax.faces.application.FacesMessage in project deltaspike by apache.
the class JsfUtilsTest method testNewMessageWithExistingMessageWithoutSummary.
@Test
public void testNewMessageWithExistingMessageWithoutSummary() {
List<FacesMessage> existingFacesMessage = new ArrayList<FacesMessage>();
existingFacesMessage.add(new FacesMessage(null, "message"));
FacesMessage messageToCheck = new FacesMessage("new", "message");
Assert.assertEquals(Boolean.TRUE, JsfUtils.isNewMessage(existingFacesMessage, messageToCheck));
}
Aggregations