Commit ed583d1f authored by Bill Lynch's avatar Bill Lynch Committed by bill

MOre dev


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@338 b35dd754-fafc-0310-a699-88a17e54d16e
parent 663a8ee8
...@@ -8,14 +8,13 @@ ...@@ -8,14 +8,13 @@
package org.jivesoftware.util; package org.jivesoftware.util;
import junit.framework.TestCase;
import org.jivesoftware.admin.AdminConsole;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.InputStream; import java.io.InputStream;
import java.util.Collection; import java.util.Collection;
import java.util.Iterator; import java.util.Iterator;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import junit.framework.TestCase;
import org.jivesoftware.admin.AdminConsole;
public class AdminConsoleTest extends TestCase { public class AdminConsoleTest extends TestCase {
...@@ -33,6 +32,13 @@ public class AdminConsoleTest extends TestCase { ...@@ -33,6 +32,13 @@ public class AdminConsoleTest extends TestCase {
clear.invoke((Object)null, (Object[])null); clear.invoke((Object)null, (Object[])null);
} }
public void testGetGlobalProps() throws Exception {
String name = AdminConsole.getAppName();
String image = AdminConsole.getLogoImage();
assertEquals("Jive Messenger", name);
assertEquals("images/header-title.gif", image);
}
public void testModifyGlobalProps() throws Exception { public void testModifyGlobalProps() throws Exception {
// Add a new stream to the AdminConsole: // Add a new stream to the AdminConsole:
String filename = TestUtils.prepareFilename( String filename = TestUtils.prepareFilename(
...@@ -73,7 +79,7 @@ public class AdminConsoleTest extends TestCase { ...@@ -73,7 +79,7 @@ public class AdminConsoleTest extends TestCase {
public void testTabOverwrite() throws Exception { public void testTabOverwrite() throws Exception {
// Add a new stream to the AdminConsole: // Add a new stream to the AdminConsole:
String filename = TestUtils.prepareFilename( String filename = TestUtils.prepareFilename(
"./resources/org/jivesoftware/admin/AdminConsoleTest.admin-sidebar-02.xml"); "./resources/org/jivesoftware/admin/AdminConsoleTest.admin-sidebar-03.xml");
InputStream in = new FileInputStream(filename); InputStream in = new FileInputStream(filename);
AdminConsole.addXMLSource(in); AdminConsole.addXMLSource(in);
in.close(); in.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment