Class RunningPu

  • All Implemented Interfaces:
    com.avanza.gs.test.GenericRunningPu, AutoCloseable, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

    public final class RunningPu
    extends com.avanza.gs.test.StandaloneRunningPu
    JUnit5 @Extension implementation of StandaloneRunningPu.

    Example usage in a JUnit 5 test class:

     @RegisterExtension
     RunningPu runningPu = PuConfigurers.partitionedPu("pu.xml")
                                        .configure();
     
    • Constructor Summary

      Constructors 
      Constructor Description
      RunningPu​(com.avanza.gs.test.PuRunner runner)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Default Methods 
      Modifier and Type Method Description
      void after()  
      void before()  
      default void beforeAll​(org.junit.jupiter.api.extension.ExtensionContext context)  
      default void beforeEach​(org.junit.jupiter.api.extension.ExtensionContext context)  
      • Methods inherited from class com.avanza.gs.test.StandaloneRunningPu

        close, getBackupInstanceApplicationContext, getClusteredGigaSpace, getLookupLocator, getPrimaryApplicationContexts, getPrimaryInstanceApplicationContext, start, stop
      • Methods inherited from interface com.avanza.gs.test.GenericRunningPu

        getApplicationContexts, getLookupGroupName
    • Constructor Detail

      • RunningPu

        public RunningPu​(com.avanza.gs.test.PuRunner runner)
    • Method Detail

      • after

        public void after()
      • beforeAll

        public default void beforeAll​(org.junit.jupiter.api.extension.ExtensionContext context)
                               throws Exception
        Specified by:
        beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
        Throws:
        Exception
      • beforeEach

        public default void beforeEach​(org.junit.jupiter.api.extension.ExtensionContext context)
                                throws Exception
        Specified by:
        beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
        Throws:
        Exception