1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

SMACK-277: Update XMLUnit for unit tests to the latest stable release 1.2

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11232 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Günther Niess 2009-09-03 07:05:21 +00:00 committed by niess
parent 87b3f805c7
commit 7d4389c544
4 changed files with 18 additions and 14 deletions

View file

@ -8,21 +8,23 @@
package org.jivesoftware.smack.packet;
import static org.custommonkey.xmlunit.XMLAssert.*;
import org.xml.sax.SAXException;
import org.junit.Test;
import org.xml.sax.SAXException;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.ArrayList;
import javax.xml.parsers.ParserConfigurationException;
/**
*
*/
public class MessageTest {
@Test
public void setMessageTypeTest() throws IOException, SAXException {
public void setMessageTypeTest() throws IOException, SAXException, ParserConfigurationException {
Message.Type type = Message.Type.chat;
Message.Type type2 = Message.Type.headline;
@ -66,7 +68,7 @@ public class MessageTest {
}
@Test
public void setMessageSubjectTest() throws IOException, SAXException {
public void setMessageSubjectTest() throws IOException, SAXException, ParserConfigurationException {
final String messageSubject = "This is a test of the emergency broadcast system.";
StringBuilder controlBuilder = new StringBuilder();
@ -85,7 +87,7 @@ public class MessageTest {
}
@Test
public void oneMessageBodyTest() throws IOException, SAXException {
public void oneMessageBodyTest() throws IOException, SAXException, ParserConfigurationException {
final String messageBody = "This is a test of the emergency broadcast system.";
StringBuilder controlBuilder = new StringBuilder();
@ -104,7 +106,7 @@ public class MessageTest {
}
@Test
public void multipleMessageBodiesTest() throws IOException, SAXException {
public void multipleMessageBodiesTest() throws IOException, SAXException, ParserConfigurationException {
final String messageBody1 = "This is a test of the emergency broadcast system, 1.";
final String lang2 = "ru";
final String messageBody2 = "This is a test of the emergency broadcast system, 2.";
@ -162,7 +164,7 @@ public class MessageTest {
}
@Test
public void setMessageThreadTest() throws IOException, SAXException {
public void setMessageThreadTest() throws IOException, SAXException, ParserConfigurationException {
final String messageThread = "1234";
StringBuilder controlBuilder = new StringBuilder();
@ -181,7 +183,7 @@ public class MessageTest {
}
@Test
public void messageXmlLangTest() throws IOException, SAXException {
public void messageXmlLangTest() throws IOException, SAXException, ParserConfigurationException {
final String lang = "sp";
StringBuilder controlBuilder = new StringBuilder();