// Path: src/main/java/org/fest/util/Lists.java
// public static @NotNull <T> ArrayList<T> newArrayList(@NotNull T... elements) {
//   checkNotNull(elements);
//   ArrayList<T> list = newArrayList();
//   for (T e : elements) {
//     list.add(e);
//   }
//   return list;
// }


import org.junit.Test;
import java.util.ArrayList;
import java.util.Collection;
import static org.fest.util.Lists.newArrayList;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/*
 * Created on Apr 29, 2007
 * 
 * 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 @2007-2013 the original author or authors.
 */
package org.fest.util;




/**
 * Tests for {@link Collections#isNullOrEmpty(Collection)}.
 *
 * @author Yvonne Wang
 * @author Alex Ruiz
 */
public class Collections_isNullOrEmpty_Test {
  @Test
  public void should_return_true_if_Collection_is_empty() {
    Collection<String> c = new ArrayList<String>();
    assertTrue(Collections.isNullOrEmpty(c));
  }

  @Test
  public void should_return_true_if_Collection_is_null() {
    assertTrue(Collections.isNullOrEmpty(null));
  }

  @Test
  public void should_return_false_if_Collection_has_elements() {
// Path: src/main/java/org/fest/util/Lists.java
// public static @NotNull <T> ArrayList<T> newArrayList(@NotNull T... elements) {
//   checkNotNull(elements);
//   ArrayList<T> list = newArrayList();
//   for (T e : elements) {
//     list.add(e);
//   }
//   return list;
// }


// Path: src/test/java/org/fest/util/Collections_isNullOrEmpty_Test.java
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collection;
import static org.fest.util.Lists.newArrayList;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

/*
 * Created on Apr 29, 2007
 * 
 * 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 @2007-2013 the original author or authors.
 */
package org.fest.util;




/**
 * Tests for {@link Collections#isNullOrEmpty(Collection)}.
 *
 * @author Yvonne Wang
 * @author Alex Ruiz
 */
public class Collections_isNullOrEmpty_Test {
  @Test
  public void should_return_true_if_Collection_is_empty() {
    Collection<String> c = new ArrayList<String>();
    assertTrue(Collections.isNullOrEmpty(c));
  }

  @Test
  public void should_return_true_if_Collection_is_null() {
    assertTrue(Collections.isNullOrEmpty(null));
  }

  @Test
  public void should_return_false_if_Collection_has_elements() {
    Collection<String> c = newArrayList("Frodo");