org.apache.tapestry5.internal.test
Class CodeEq
java.lang.Object
org.apache.tapestry5.internal.test.CodeEq
- All Implemented Interfaces:
- org.easymock.IArgumentMatcher
public class CodeEq
- extends Object
- implements org.easymock.IArgumentMatcher
Special version of string equality used to compare two snippets of code. This is somewhat simpleminded (it certainly
doesn't understand about literal strings in quotes). It works by eliminating unecessary whitespace around curly
braces, then reducing all whitespace to a single space.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeEq
public CodeEq(String input)
matches
public boolean matches(Object argument)
- Specified by:
matches in interface org.easymock.IArgumentMatcher
appendTo
public void appendTo(StringBuffer buffer)
- Specified by:
appendTo in interface org.easymock.IArgumentMatcher
codeEq
public static String codeEq(String input)
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.