no.ntnu.ime.xmlconverter.server
Class XMLSourceParserServiceImplTest

java.lang.Object
  extended by no.ntnu.ime.xmlconverter.server.XMLSourceParserServiceImplTest

public class XMLSourceParserServiceImplTest
extends java.lang.Object


Field Summary
private  XMLSourceParserServiceImpl xmlsps
           
 
Constructor Summary
XMLSourceParserServiceImplTest()
           
 
Method Summary
 void setUp()
           
 void testIsValidSourceURIShouldRaiseValidSourceExceptionOnMalformedURL()
           
 void testIsValidSourceURIShouldRaiseValidSourceExceptionOnNotConnectableAddress()
           
 void testIsValidSourceURIShouldReturnFalseOnEmptyString()
           
 void testIsValidSourceURIShouldReturnTrueOnFTPAddress()
           
 void testIsValidSourceURIShouldReturnTrueOnFTPAddressWithUsernameAndPassword()
           
 void testIsValidSourceURIShouldReturnTrueOnHttpAddress()
           
 void testIsValidSourceURIShouldReturnTrueOnHttpsAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlsps

private XMLSourceParserServiceImpl xmlsps
Constructor Detail

XMLSourceParserServiceImplTest

public XMLSourceParserServiceImplTest()
Method Detail

setUp

public void setUp()

testIsValidSourceURIShouldReturnFalseOnEmptyString

public void testIsValidSourceURIShouldReturnFalseOnEmptyString()
                                                        throws ValidSourceException
Throws:
ValidSourceException

testIsValidSourceURIShouldReturnTrueOnHttpAddress

public void testIsValidSourceURIShouldReturnTrueOnHttpAddress()
                                                       throws ValidSourceException
Throws:
ValidSourceException

testIsValidSourceURIShouldReturnTrueOnHttpsAddress

public void testIsValidSourceURIShouldReturnTrueOnHttpsAddress()
                                                        throws ValidSourceException
Throws:
ValidSourceException

testIsValidSourceURIShouldReturnTrueOnFTPAddress

public void testIsValidSourceURIShouldReturnTrueOnFTPAddress()
                                                      throws ValidSourceException
Throws:
ValidSourceException

testIsValidSourceURIShouldReturnTrueOnFTPAddressWithUsernameAndPassword

public void testIsValidSourceURIShouldReturnTrueOnFTPAddressWithUsernameAndPassword()
                                                                             throws ValidSourceException
Throws:
ValidSourceException

testIsValidSourceURIShouldRaiseValidSourceExceptionOnMalformedURL

public void testIsValidSourceURIShouldRaiseValidSourceExceptionOnMalformedURL()
                                                                       throws ValidSourceException
Throws:
ValidSourceException

testIsValidSourceURIShouldRaiseValidSourceExceptionOnNotConnectableAddress

public void testIsValidSourceURIShouldRaiseValidSourceExceptionOnNotConnectableAddress()
                                                                                throws ValidSourceException
Throws:
ValidSourceException