com.buglabs.bug.program.tests
Class ProgramInterfaceTests

java.lang.Object
  extended by TestCase
      extended by com.buglabs.bug.program.tests.ProgramInterfaceTests

public class ProgramInterfaceTests
extends TestCase

NOTE: these tests currently assume there is a Bug kernel running at localhost:8082.


Constructor Summary
ProgramInterfaceTests()
           
 
Method Summary
protected static XmlNode get(java.net.URLConnection conn)
           
protected  void setUp()
           
 void testProgramXmlGet()
          Tests that a response is received that is xml and starts with a IProgramXml.NODE_PROGRAMS element.
 void testProgramXmlPostGet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramInterfaceTests

public ProgramInterfaceTests()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

testProgramXmlGet

public void testProgramXmlGet()
                       throws java.lang.Exception
Tests that a response is received that is xml and starts with a IProgramXml.NODE_PROGRAMS element.

Throws:
java.lang.Exception

testProgramXmlPostGet

public void testProgramXmlPostGet()

get

protected static XmlNode get(java.net.URLConnection conn)
                      throws java.io.IOException
Throws:
java.io.IOException