45464748495051
public List<Matcher> getMatchers() { return this.matchers; } public String toString() { return invocation.toString(matchers, new PrintSettings()); }
118119120121122123124
public int hashCode() { throw new RuntimeException("hashCode() is not implemented"); } public String toString() { return toString(argumentsToMatchers(), new PrintSettings()); }
119120121122123124125
public int hashCode() { return 1; } public String toString() { return toString(argumentsToMatchers(), new PrintSettings()); }
49505152535455
public List<Matcher> getMatchers() { return this.matchers; } public String toString() { return new PrintSettings().print(matchers, invocation); }
88899091929394
public int hashCode() { return 1; } public String toString() { return new PrintSettings().print(ArgumentsProcessor.argumentsToMatchers(getArguments()), this); }
1617181920212223
MatchersPrinter printer = new MatchersPrinter(); @Test public void shouldGetArgumentsLine() { String line = printer.getArgumentsLine((List) Arrays.asList(new Equals(1), new Equals(2)), new PrintSettings()); assertEquals("(1, 2);", line); }
2223242526272829
assertEquals("(1, 2);", line); } @Test public void shouldGetArgumentsBlock() { String line = printer.getArgumentsBlock((List) Arrays.asList(new Equals(1), new Equals(2)), new PrintSettings()); assertEquals("(\n 1,\n 2\n);", line); }
52535455565758
92939495969798