Class BaseWebTest

java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
ubic.gemma.core.util.test.BaseTest
ubic.gemma.web.util.BaseWebTest
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
ArrayDesignControllerTest, DifferentialExpressionAnalysisControllerTest, ExperimentalDesignControllerTest, ExpressionExperimentEditControllerTest, ExpressionExperimentQCControllerTest, GeneralSearchControllerTest, HomePageControllerTest, OntologyControllerTest, StaticAssetResolverTest, UserFormMultiActionControllerTest

@ActiveProfiles("web") @WebAppConfiguration public abstract class BaseWebTest extends BaseTest
Base class for a Web-based unit test.

For a full integration test base class, use BaseWebIntegrationTest.

Author:
poirigui
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final org.springframework.test.web.servlet.ResultActions
    perform(org.springframework.test.web.servlet.RequestBuilder requestBuilder)
     

    Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests

    setApplicationContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BaseWebTest

      public BaseWebTest()
  • Method Details

    • perform

      protected final org.springframework.test.web.servlet.ResultActions perform(org.springframework.test.web.servlet.RequestBuilder requestBuilder) throws Exception
      Throws:
      Exception
      See Also:
      • MockMvc.perform(RequestBuilder)