com.silverpeas.converter.openoffice
Class OpenOfficeConversionTest

java.lang.Object
  extended by com.silverpeas.converter.openoffice.OpenOfficeConversionTest

@ContextConfiguration(locations="/spring-converter.xml")
public class OpenOfficeConversionTest
extends Object

Tests about the conversion of documents with the implementation based on OpenOffice . As the conversion process itself is mocked, the tests assert just it is ran as expected.


Constructor Summary
OpenOfficeConversionTest()
           
 
Method Summary
 void conversionWithAnOpenOfficeServiceUpShouldSucceed()
           
 void conversionWithoutAnyOpenOfficeServiceShouldThrowADocumentFormatConversionException()
           
 void convertingADocumentIntoANonSupportedFormatShouldThrowADocumentFormatException()
           
 void convertingANonODTDocumentShouldThrowADocumentFormatException()
           
 void emptyTest()
           
 void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenOfficeConversionTest

public OpenOfficeConversionTest()
Method Detail

setUp

public void setUp()

emptyTest

public void emptyTest()

convertingANonODTDocumentShouldThrowADocumentFormatException

public void convertingANonODTDocumentShouldThrowADocumentFormatException()
                                                                  throws Exception
Throws:
Exception

convertingADocumentIntoANonSupportedFormatShouldThrowADocumentFormatException

public void convertingADocumentIntoANonSupportedFormatShouldThrowADocumentFormatException()
                                                                                   throws Exception
Throws:
Exception

conversionWithoutAnyOpenOfficeServiceShouldThrowADocumentFormatConversionException

public void conversionWithoutAnyOpenOfficeServiceShouldThrowADocumentFormatConversionException()
                                                                                        throws Exception
Throws:
Exception

conversionWithAnOpenOfficeServiceUpShouldSucceed

public void conversionWithAnOpenOfficeServiceUpShouldSucceed()
                                                      throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.