Creating a Taxonomic e-Science

org.cateproject.view
Class CATEViewTest

java.lang.Object
  extended by org.unitils.UnitilsJUnit4
      extended by org.cateproject.view.CATEViewTest
Direct Known Subclasses:
AgentViewsTest, DescriptionViewsTest, IndexPagesTest, MediaPageTest, NameViewsTest, OccurrencePageTest, PdfViewsTest, ReferencePageTest, TaxonViewsTest, UserViewsTest

public abstract class CATEViewTest
extends org.unitils.UnitilsJUnit4


Field Summary
protected static eu.etaxonomy.cdm.io.jaxb.DataSet dataSet
           
protected static org.springframework.web.servlet.DispatcherServlet dispatcherServlet
           
protected static MockFormController formController
           
protected static MockController mockController
           
protected  org.springframework.mock.web.MockHttpServletRequest request
           
protected  org.springframework.mock.web.MockHttpServletResponse response
           
protected static org.springframework.mock.web.MockServletContext servletContext
           
 
Constructor Summary
CATEViewTest()
           
 
Method Summary
protected  List<eu.etaxonomy.cdm.model.description.FeatureNode> constructDescriptionElementsWithLevels(List<? extends eu.etaxonomy.cdm.model.description.DescriptionElementBase> descriptionElements, Set<eu.etaxonomy.cdm.model.description.Feature> features, eu.etaxonomy.cdm.model.description.FeatureTree featureTree)
           
protected  Set<eu.etaxonomy.cdm.model.description.Feature> getFeatures(eu.etaxonomy.cdm.model.description.FeatureNode node, Set<eu.etaxonomy.cdm.model.description.Feature> features)
           
 void onSetUp()
           
protected  void outputForm(String formView, String fileName, String commandName, Class commandClass, Map<String,Object> referenceData, String method, org.springframework.validation.Validator mockValidator, Map<String,String> postValues)
           
protected  void outputMock(org.springframework.web.servlet.ModelAndView modelAndView, String fileName)
           
protected  void outputMock(org.springframework.web.servlet.ModelAndView modelAndView, String fileName, String contentType, Map<String,String> params)
           
protected  void outputMockPdfPage(org.springframework.web.servlet.ModelAndView modelAndView, String fileName)
           
protected  void outputSingleRequest(org.springframework.web.servlet.ModelAndView modelAndView, String fileName)
           
static void setUp()
           
static void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcherServlet

protected static org.springframework.web.servlet.DispatcherServlet dispatcherServlet

servletContext

protected static org.springframework.mock.web.MockServletContext servletContext

mockController

protected static MockController mockController

formController

protected static MockFormController formController

request

protected org.springframework.mock.web.MockHttpServletRequest request

response

protected org.springframework.mock.web.MockHttpServletResponse response

dataSet

protected static eu.etaxonomy.cdm.io.jaxb.DataSet dataSet
Constructor Detail

CATEViewTest

public CATEViewTest()
Method Detail

getFeatures

protected Set<eu.etaxonomy.cdm.model.description.Feature> getFeatures(eu.etaxonomy.cdm.model.description.FeatureNode node,
                                                                      Set<eu.etaxonomy.cdm.model.description.Feature> features)

constructDescriptionElementsWithLevels

protected List<eu.etaxonomy.cdm.model.description.FeatureNode> constructDescriptionElementsWithLevels(List<? extends eu.etaxonomy.cdm.model.description.DescriptionElementBase> descriptionElements,
                                                                                                      Set<eu.etaxonomy.cdm.model.description.Feature> features,
                                                                                                      eu.etaxonomy.cdm.model.description.FeatureTree featureTree)

setUp

public static void setUp()

tearDown

public static void tearDown()

onSetUp

public void onSetUp()

outputSingleRequest

protected void outputSingleRequest(org.springframework.web.servlet.ModelAndView modelAndView,
                                   String fileName)

outputMock

protected void outputMock(org.springframework.web.servlet.ModelAndView modelAndView,
                          String fileName)

outputMock

protected void outputMock(org.springframework.web.servlet.ModelAndView modelAndView,
                          String fileName,
                          String contentType,
                          Map<String,String> params)

outputMockPdfPage

protected void outputMockPdfPage(org.springframework.web.servlet.ModelAndView modelAndView,
                                 String fileName)

outputForm

protected void outputForm(String formView,
                          String fileName,
                          String commandName,
                          Class commandClass,
                          Map<String,Object> referenceData,
                          String method,
                          org.springframework.validation.Validator mockValidator,
                          Map<String,String> postValues)

Creating a Taxonomic e-Science

Copyright © 2010. All Rights Reserved.