org.apache.tapestry5.internal.test
Class CodeEq

java.lang.Object
  extended by 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.


Constructor Summary
CodeEq(String input)
           
 
Method Summary
 void appendTo(StringBuffer buffer)
           
static String codeEq(String input)
           
 boolean matches(Object argument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeEq

public CodeEq(String input)
Method Detail

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.