test_class.declarator: step
test_class.modifier: private
test_class.original_string: private Step step;
test_class.type: Step
test_class.var_name: step
test_class.file: plugin-code/src/test/java/com/trivago/cluecumber/json/pojo/StepTest.java
test_class.identifier: StepTest
test_case.body: @Test
      public void returnNameWithArgumentPlaceholdersTest() {
          when(step.getName()).thenReturn("This is a name with an argument inside.");
          Result result = mock(Result.class);
          List<Argument> arguments = new ArrayList<>();
          Argument argument = new Argument();
          argument.setVal("argument");
          arguments.add(argument);
          when(step.getArguments()).thenReturn(arguments);
          step.setResult(result);
          assertThat(step.returnNameWithArgumentPlaceholders(), is("This is a name with an {} inside."));
      }
test_case.class_method_signature: StepTest.returnNameWithArgumentPlaceholdersTest()
test_case.full_signature: @Test public void returnNameWithArgumentPlaceholdersTest()
test_case.identifier: returnNameWithArgumentPlaceholdersTest
test_case.invocations: thenReturn when getName mock setVal add thenReturn when getArguments setResult assertThat returnNameWithArgumentPlaceholders is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void returnNameWithArgumentPlaceholdersTest()
focal_class.declarator: before = new ArrayList<>()
focal_class.modifier: private
focal_class.original_string: private List<ResultMatch> before = new ArrayList<>();
focal_class.type: List<ResultMatch>
focal_class.var_name: before
focal_class.declarator: line
focal_class.modifier: private
focal_class.original_string: private int line;
focal_class.type: int
focal_class.var_name: line
focal_class.declarator: name = ""
focal_class.modifier: private
focal_class.original_string: private String name = "";
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: keyword = ""
focal_class.modifier: private
focal_class.original_string: private String keyword = "";
focal_class.type: String
focal_class.var_name: keyword
focal_class.declarator: rows = new ArrayList<>()
focal_class.modifier: private
focal_class.original_string: private List<Row> rows = new ArrayList<>();
focal_class.type: List<Row>
focal_class.var_name: rows
focal_class.declarator: after = new ArrayList<>()
focal_class.modifier: private
focal_class.original_string: private List<ResultMatch> after = new ArrayList<>();
focal_class.type: List<ResultMatch>
focal_class.var_name: after
focal_class.declarator: docString
focal_class.modifier: @SerializedName("doc_string")
      private
focal_class.original_string: @SerializedName("doc_string")
      private DocString docString;
focal_class.type: DocString
focal_class.var_name: docString
focal_class.file: plugin-code/src/main/java/com/trivago/cluecumber/json/pojo/Step.java
focal_class.identifier: Step
focal_class.class_method_signature: Step.getBefore()
focal_class.full_signature: public List<ResultMatch> getBefore()
focal_class.identifier: getBefore
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<ResultMatch>
focal_class.signature: List<ResultMatch> getBefore()
focal_class.class_method_signature: Step.setBefore(final List<ResultMatch> before)
focal_class.full_signature: public void setBefore(final List<ResultMatch> before)
focal_class.identifier: setBefore
focal_class.modifiers: public
focal_class.parameters: (final List<ResultMatch> before)
focal_class.return: void
focal_class.signature: void setBefore(final List<ResultMatch> before)
focal_class.class_method_signature: Step.getLine()
focal_class.full_signature: public int getLine()
focal_class.identifier: getLine
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getLine()
focal_class.class_method_signature: Step.setLine(final int line)
focal_class.full_signature: public void setLine(final int line)
focal_class.identifier: setLine
focal_class.modifiers: public
focal_class.parameters: (final int line)
focal_class.return: void
focal_class.signature: void setLine(final int line)
focal_class.class_method_signature: Step.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: Step.setName(final String name)
focal_class.full_signature: public void setName(final String name)
focal_class.identifier: setName
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: void
focal_class.signature: void setName(final String name)
focal_class.class_method_signature: Step.returnNameWithArguments()
focal_class.full_signature: public String returnNameWithArguments()
focal_class.identifier: returnNameWithArguments
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String returnNameWithArguments()
focal_class.class_method_signature: Step.returnNameWithArgumentPlaceholders()
focal_class.full_signature: public String returnNameWithArgumentPlaceholders()
focal_class.identifier: returnNameWithArgumentPlaceholders
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String returnNameWithArgumentPlaceholders()
focal_class.class_method_signature: Step.getKeyword()
focal_class.full_signature: public String getKeyword()
focal_class.identifier: getKeyword
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getKeyword()
focal_class.class_method_signature: Step.setKeyword(final String keyword)
focal_class.full_signature: public void setKeyword(final String keyword)
focal_class.identifier: setKeyword
focal_class.modifiers: public
focal_class.parameters: (final String keyword)
focal_class.return: void
focal_class.signature: void setKeyword(final String keyword)
focal_class.class_method_signature: Step.getRows()
focal_class.full_signature: public List<Row> getRows()
focal_class.identifier: getRows
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Row>
focal_class.signature: List<Row> getRows()
focal_class.class_method_signature: Step.setRows(final List<Row> rows)
focal_class.full_signature: public void setRows(final List<Row> rows)
focal_class.identifier: setRows
focal_class.modifiers: public
focal_class.parameters: (final List<Row> rows)
focal_class.return: void
focal_class.signature: void setRows(final List<Row> rows)
focal_class.class_method_signature: Step.getAfter()
focal_class.full_signature: public List<ResultMatch> getAfter()
focal_class.identifier: getAfter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<ResultMatch>
focal_class.signature: List<ResultMatch> getAfter()
focal_class.class_method_signature: Step.setAfter(final List<ResultMatch> after)
focal_class.full_signature: public void setAfter(final List<ResultMatch> after)
focal_class.identifier: setAfter
focal_class.modifiers: public
focal_class.parameters: (final List<ResultMatch> after)
focal_class.return: void
focal_class.signature: void setAfter(final List<ResultMatch> after)
focal_class.class_method_signature: Step.getDocString()
focal_class.full_signature: public DocString getDocString()
focal_class.identifier: getDocString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DocString
focal_class.signature: DocString getDocString()
focal_class.class_method_signature: Step.setDocString(final DocString docString)
focal_class.full_signature: public void setDocString(final DocString docString)
focal_class.identifier: setDocString
focal_class.modifiers: public
focal_class.parameters: (final DocString docString)
focal_class.return: void
focal_class.signature: void setDocString(final DocString docString)
focal_class.class_method_signature: Step.getTotalDuration()
focal_class.full_signature: public long getTotalDuration()
focal_class.identifier: getTotalDuration
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getTotalDuration()
focal_class.class_method_signature: Step.returnTotalDurationString()
focal_class.full_signature: public String returnTotalDurationString()
focal_class.identifier: returnTotalDurationString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String returnTotalDurationString()
focal_class.class_method_signature: Step.getUrlFriendlyName()
focal_class.full_signature: public String getUrlFriendlyName()
focal_class.identifier: getUrlFriendlyName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUrlFriendlyName()
focal_class.class_method_signature: Step.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: Step.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.superclass: extends ResultMatch
focal_method.body: public String returnNameWithArgumentPlaceholders() {
          String tmpName = getName();
          List<Argument> arguments = getArguments();
          for (int i = arguments.size() - 1; i >= 0; i--) {
              String argument = arguments.get(i).getVal();
              if (argument != null) {
                  tmpName = tmpName.replaceFirst(Pattern.quote(argument), Matcher.quoteReplacement("{}"));
              }
          }
          return tmpName;
      }
focal_method.class_method_signature: Step.returnNameWithArgumentPlaceholders()
focal_method.full_signature: public String returnNameWithArgumentPlaceholders()
focal_method.identifier: returnNameWithArgumentPlaceholders
focal_method.invocations: getName getArguments size getVal get replaceFirst quote quoteReplacement
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String returnNameWithArgumentPlaceholders()