Class Rule

java.lang.Object
net.thucydides.core.model.Rule

public class Rule
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Rule​(java.lang.String name, java.lang.String description, RuleBackground background)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object other)  
    static Rule from​(io.cucumber.messages.Messages.GherkinDocument.Feature.FeatureChild.Rule cucumberRule)  
    RuleBackground getBackground()  
    java.lang.String getDescription()  
    java.lang.String getName()  
    boolean hasBackground()  
    int hashCode()  
    void setDescription​(java.lang.String description)  
    void setName​(java.lang.String name)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Rule

      public Rule​(java.lang.String name, java.lang.String description, RuleBackground background)
  • Method Details

    • from

      public static Rule from​(io.cucumber.messages.Messages.GherkinDocument.Feature.FeatureChild.Rule cucumberRule)
    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String name)
    • getDescription

      public java.lang.String getDescription()
    • setDescription

      public void setDescription​(java.lang.String description)
    • hasBackground

      public boolean hasBackground()
    • getBackground

      public RuleBackground getBackground()
    • equals

      public boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object