Class AbstractHybrisJmxTest

java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.jmx.AbstractHybrisJmxTest
All Implemented Interfaces:
JaloSessionHolder
Direct Known Subclasses:
HybrisJmxIntegrationTest, HybrisJmxStructureTest

public abstract class AbstractHybrisJmxTest extends HybrisJUnit4Test
Base class for JMX tests
  • Constructor Details

    • AbstractHybrisJmxTest

      public AbstractHybrisJmxTest()
  • Method Details

    • initContext

      public void initContext() throws JMException
      Throws:
      JMException
    • getJMXRegistry

      protected MBeanRegisterUtilities getJMXRegistry()
    • getJMXAssembler

      protected org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler getJMXAssembler()
    • getAllSpringJMXBeans

      protected Map<String,AbstractJMXMBean> getAllSpringJMXBeans()
      gets all spring beans registered as JMX beans as map where key = jmx bean name (), value = is jmx bean instance
    • checkDuplicatedOperations

      protected void checkDuplicatedOperations(AbstractJMXMBean bean, MBeanInfo infoToVerify)
      checks if for a bean meta information retrieved by MetadataMBeanInfoAssembler implementation no duplicate operation is retrieved for a specific attribute (see : HOR-683)
    • checkAllAttributes

      protected void checkAllAttributes(AbstractJMXMBean bean, MBeanInfo infoToVerify)
      checks if all methods exposed in interface for jmx bean and annotated as ManagedAttribute are in its implementation is assembled correctly by JMX assembler
    • checkAllOperations

      protected void checkAllOperations(AbstractJMXMBean bean, MBeanInfo infoToVerify)
      checks if all methods exposed in interface for jmx bean and annotated as ManagedOperation are in its implementation is assembled correctly by JMX assembler
    • verifyMethodSignature

      protected void verifyMethodSignature(String prefix, Map<String,Method> attributableMethods, MBeanAttributeInfo mbai)
      verify method signature