This example Java source code file (HelpersTest.java) is included in the alvinalexander.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn
Java by Example" TM.
/*
* Copyright (C) 2008 The Guava Authors
*
* 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.
*/
package com.google.common.collect.testing;
import static com.google.common.collect.testing.Helpers.NullsBeforeB;
import static com.google.common.collect.testing.Helpers.testComparator;
import com.google.common.annotations.GwtCompatible;
import junit.framework.AssertionFailedError;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Unit test for {@link Helpers}.
*
* @author Chris Povirk
*/
@GwtCompatible
public class HelpersTest extends TestCase {
public void testNullsBeforeB() {
testComparator(NullsBeforeB.INSTANCE, "a", "azzzzzz", null, "b", "c");
}
public void testIsEmpty_iterable() {
List<Object> list = new ArrayList
Other Java examples (source code examples)
Here is a short list of links related to this Java HelpersTest.java source code file: