Class ContainerPageObject

All Implemented Interfaces:
CapybaraPortingLayer
Direct Known Subclasses:
Build, CoberturaAction, GlobalSecurityConfig, GlobalToolConfig, JacocoResultPage, ManagedCredentials, ManagedCredentialsBinding, MixIn, Node, Plugin, PluginManager, TopLevelItem, UpdateCenter, User, View

public abstract class ContainerPageObject extends ConfigurablePageObject
PageObject that represents a model that has multiple views underneath.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • ContainerPageObject

      protected ContainerPageObject(com.google.inject.Injector injector, URL url)
    • ContainerPageObject

      protected ContainerPageObject(PageObject context, URL url)
  • Method Details

    • getConfigUrl

      public URL getConfigUrl()
      Specified by:
      getConfigUrl in class ConfigurablePageObject
    • getJsonApiUrl

      public URL getJsonApiUrl()
    • getJson

      public com.fasterxml.jackson.databind.JsonNode getJson()
      Makes the API call and obtains JSON representation.
    • getJson

      public com.fasterxml.jackson.databind.JsonNode getJson(String queryString)
      Parameters:
      queryString - Additional query string to narrow down the data retrieval, like "tree=..." or "depth=..."
    • action

      public <T extends Action> T action(Class<T> type)
      Create action of this page object. See Action, ActionPageObject
      Parameters:
      type - Action type to create.
    • action

      public <T extends Action> T action(Class<T> type, String path)
    • getNavigationLinks

      public Map<String,String> getNavigationLinks()
      Get a map with all links within the navigation area. The key contains the href attribute while the value contains the link text.
      Returns:
      A map with all links within the navigation area.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object