Class TestFixture

java.lang.Object
org.openremote.test.TestFixture
All Implemented Interfaces:
org.spockframework.runtime.extension.IGlobalExtension

public class TestFixture extends Object implements org.spockframework.runtime.extension.IGlobalExtension
Used to store state for tests to help improve test performance
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static List<org.openremote.model.rules.AssetRuleset>
     
    static List<org.openremote.model.asset.Asset<?>>
     
    protected static org.openremote.container.Container
     
    static List<org.openremote.model.gateway.GatewayConnection>
     
    static List<org.openremote.model.rules.GlobalRuleset>
     
    static List<org.openremote.model.rules.RealmRuleset>
     
    static List<org.openremote.model.asset.UserAssetLink>
     
    static List<org.openremote.model.security.User>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.spockframework.runtime.extension.IGlobalExtension

    executionStart, executionStop, visitSpec
  • Field Details

    • container

      protected static org.openremote.container.Container container
    • globalRulesets

      public static List<org.openremote.model.rules.GlobalRuleset> globalRulesets
    • realmRulesets

      public static List<org.openremote.model.rules.RealmRuleset> realmRulesets
    • assetRulesets

      public static List<org.openremote.model.rules.AssetRuleset> assetRulesets
    • gatewayConnections

      public static List<org.openremote.model.gateway.GatewayConnection> gatewayConnections
    • assets

      public static List<org.openremote.model.asset.Asset<?>> assets
    • userAssets

      public static List<org.openremote.model.asset.UserAssetLink> userAssets
    • users

      public static List<org.openremote.model.security.User> users
  • Constructor Details

    • TestFixture

      public TestFixture()
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.spockframework.runtime.extension.IGlobalExtension
    • stop

      public void stop()
      Specified by:
      stop in interface org.spockframework.runtime.extension.IGlobalExtension