/* * Created on Oct 17, 2010 * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * Copyright @2010-2011 the original author or authors. */ package org.fest.assertions.test; import static org.fest.assertions.data.Index.atIndex; import static org.fest.assertions.data.RgbColor.color; import java.util.regex.Pattern; import org.fest.assertions.core.*; import org.fest.assertions.data.*; import org.fest.assertions.description.*; /** * @author Alex Ruiz * @author Yvonne Wang */ public final class TestData { private static final RgbColor BLUE = color(0x0000FF); private static final RgbColor YELLOW = color(0xFFFF00); private static final AssertionInfo ASSERTION_INFO = new WritableAssertionInfo(); private static final TextDescription DESCRIPTION = new TextDescription( "who's the more foolish: the fool, or the fool who follows him?"); private static final Index INDEX = atIndex(0); private static final Pattern MATCH_ANYTHING = Pattern.compile(".*"); public static RgbColor blue() { return BLUE; } public static Pattern matchAnything() { return MATCH_ANYTHING; } public static Index someIndex() { return INDEX; } public static AssertionInfo someInfo() { return ASSERTION_INFO; } public static Description someDescription() { return DESCRIPTION; } public static String someTextDescription() { return "there's always a bigger fish"; } public static RgbColor yellow() { return YELLOW; } private TestData() {} }