Class LocalCapabilitiesServiceTestConfig

java.lang.Object
com.google.appengine.tools.development.testing.LocalCapabilitiesServiceTestConfig
All Implemented Interfaces:
LocalServiceTestConfig

public class LocalCapabilitiesServiceTestConfig extends Object implements LocalServiceTestConfig
Config for accessing the local capabilities service in tests.
  • Constructor Details

    • LocalCapabilitiesServiceTestConfig

      public LocalCapabilitiesServiceTestConfig()
  • Method Details

    • setUp

      public void setUp()
      Description copied from interface: LocalServiceTestConfig
      Set up the local service.
      Specified by:
      setUp in interface LocalServiceTestConfig
    • tearDown

      public void tearDown()
      Description copied from interface: LocalServiceTestConfig
      Tear down the local service.
      Specified by:
      tearDown in interface LocalServiceTestConfig
    • setCapabilityStatus

      public LocalCapabilitiesServiceTestConfig setCapabilityStatus(com.google.appengine.api.capabilities.Capability capability, com.google.appengine.api.capabilities.CapabilityStatus status)
      Controls the state of a capability in testing mode.
      Parameters:
      capability - the Capability to change the status of
      status - the to set for the given Capability
      Returns:
      this (for chaining)
    • getLocalCapabilitiesService

      public static LocalCapabilitiesService getLocalCapabilitiesService()