mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +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:
parent
87b3f805c7
commit
7d4389c544
4 changed files with 18 additions and 14 deletions
|
@ -15,12 +15,14 @@ import static junit.framework.Assert.assertEquals;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class PresenceTest {
|
||||
@Test
|
||||
public void setPresenceTypeTest() throws IOException, SAXException {
|
||||
public void setPresenceTypeTest() throws IOException, SAXException, ParserConfigurationException {
|
||||
Presence.Type type = Presence.Type.unavailable;
|
||||
Presence.Type type2 = Presence.Type.subscribe;
|
||||
|
||||
|
@ -67,7 +69,7 @@ public class PresenceTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void setPresenceStatusTest() throws IOException, SAXException {
|
||||
public void setPresenceStatusTest() throws IOException, SAXException, ParserConfigurationException {
|
||||
final String status = "This is a test of the emergency broadcast system.";
|
||||
|
||||
StringBuilder controlBuilder = new StringBuilder();
|
||||
|
@ -86,7 +88,7 @@ public class PresenceTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void setPresencePriorityTest() throws IOException, SAXException {
|
||||
public void setPresencePriorityTest() throws IOException, SAXException, ParserConfigurationException {
|
||||
final int priority = 10;
|
||||
|
||||
StringBuilder controlBuilder = new StringBuilder();
|
||||
|
@ -110,7 +112,7 @@ public class PresenceTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void setPresenceModeTest() throws IOException, SAXException {
|
||||
public void setPresenceModeTest() throws IOException, SAXException, ParserConfigurationException {
|
||||
Presence.Mode mode1 = Presence.Mode.dnd;
|
||||
final int priority = 10;
|
||||
final String status = "This is a test of the emergency broadcast system.";
|
||||
|
@ -161,7 +163,7 @@ public class PresenceTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void presenceXmlLangTest() throws IOException, SAXException {
|
||||
public void presenceXmlLangTest() throws IOException, SAXException, ParserConfigurationException {
|
||||
final String lang = "sp";
|
||||
|
||||
StringBuilder controlBuilder = new StringBuilder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue