Package org.easymock.internal

Source Code of org.easymock.internal.ArrayMatcher

/*
* Copyright (c) 2001-2007 OFFIS, Tammo Freese.
* This program is made available under the terms of the MIT License.
*/
package org.easymock.internal;

import org.easymock.AbstractMatcher;
import org.easymock.internal.matchers.ArrayEquals;

public class ArrayMatcher extends AbstractMatcher {
    public String argumentToString(Object argument) {
        StringBuffer result = new StringBuffer();
        new ArrayEquals(argument).appendTo(result);
        return result.toString();
    }

    public boolean argumentMatches(Object expected, Object actual) {
        return new ArrayEquals(expected).matches(actual);
    }
}
TOP

Related Classes of org.easymock.internal.ArrayMatcher

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.