AlwaysMatcher.java revision 47d431f63a66505a645f282416659a9758a91f1c
17bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton/* 27bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * Copyright 2001-2009 OFFIS, Tammo Freese 37bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * 47bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * Licensed under the Apache License, Version 2.0 (the "License"); 57bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * you may not use this file except in compliance with the License. 67bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * You may obtain a copy of the License at 77bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * 87bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * http://www.apache.org/licenses/LICENSE-2.0 97bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * 107bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * Unless required by applicable law or agreed to in writing, software 117bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * distributed under the License is distributed on an "AS IS" BASIS, 127bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton * See the License for the specific language governing permissions and 1417842eccfd2f2fb95d314c0b69e6f2bb13a509faStephen Wilson * limitations under the License. 1517842eccfd2f2fb95d314c0b69e6f2bb13a509faStephen Wilson */ 167bc390873f7c1c798c36c8003c4b82597f67c703Greg Claytonpackage org.easymock.internal; 177bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton 187bc390873f7c1c798c36c8003c4b82597f67c703Greg Claytonimport org.easymock.AbstractMatcher; 197bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton 207bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton@SuppressWarnings("deprecation") 2123b8abbe214c252028f6e09f79169529c846409dGreg Claytonpublic class AlwaysMatcher extends AbstractMatcher { 2223b8abbe214c252028f6e09f79169529c846409dGreg Clayton 2323b8abbe214c252028f6e09f79169529c846409dGreg Clayton private static final long serialVersionUID = 592339838132342008L; 2423b8abbe214c252028f6e09f79169529c846409dGreg Clayton 2523b8abbe214c252028f6e09f79169529c846409dGreg Clayton public boolean matches(Object[] expected, Object[] actual) { 267bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton return true; 277bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton } 287bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton 297bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton protected String argumentToString(Object argument) { 307bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton return "<any>"; 317bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton } 327bc390873f7c1c798c36c8003c4b82597f67c703Greg Clayton}