@Test public void testParseNullDefinition() { IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> { parser.parse(null); }); assertThat(e.getMessage()).isEqualTo("Subroutine definition cannot be null."); }
public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } } }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }  }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }  SubroutineDefinition parse(final String subroutineDefinition); }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }  SubroutineDefinition parse(final String subroutineDefinition);  }