// Path: src/core/lombok/core/util/Arrays.java
// public final class Arrays {
// 
//   /**
//    * Convenience method for creating arrays.
//    * @param <T> the type of elements of the array.
//    * @param elements the array, in varargs form.
//    * @return the given array in varargs form.
//    */
//   public static <T> T[] array(T...elements) {
//     return elements;
//   }
//   
//   /**
//    * Returns a copy of the given array.
//    * @param <T> the type of the given array.
//    * @param array the given array.
//    * @return a copy of the given array.
//    */
//   public static <T> T[] copy(T[] array) {
//     return copyOf(array, array.length);
//   }
//   
//   /**
//    * Indicates whether the given array has elements or not.
//    * @param array the given array.
//    * @return {@code true} if the given array is not {@code null} and contains at least one element; {@code false} 
//    * otherwise.
//    */
//   public static boolean isNotEmpty(Object[] array) {
//     return array != null && array.length > 0;
//   }
// 
//   private Arrays() {}
// }


import static org.fest.assertions.Assertions.assertThat;
import lombok.core.util.Arrays;
import org.junit.Test;
/*
 * Created on Dec 8, 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 the original author or authors.
 */
package lombok.core.util;



/**
 * Tests for <code>{@link Arrays#isNotEmpty(Object[])}</code>.
 *
 * @author Alex Ruiz
 */
public class Arrays_isNotEmpty_Test {

  @Test public void should_return_false_if_array_is_null() {
// Path: src/core/lombok/core/util/Arrays.java
// public final class Arrays {
// 
//   /**
//    * Convenience method for creating arrays.
//    * @param <T> the type of elements of the array.
//    * @param elements the array, in varargs form.
//    * @return the given array in varargs form.
//    */
//   public static <T> T[] array(T...elements) {
//     return elements;
//   }
//   
//   /**
//    * Returns a copy of the given array.
//    * @param <T> the type of the given array.
//    * @param array the given array.
//    * @return a copy of the given array.
//    */
//   public static <T> T[] copy(T[] array) {
//     return copyOf(array, array.length);
//   }
//   
//   /**
//    * Indicates whether the given array has elements or not.
//    * @param array the given array.
//    * @return {@code true} if the given array is not {@code null} and contains at least one element; {@code false} 
//    * otherwise.
//    */
//   public static boolean isNotEmpty(Object[] array) {
//     return array != null && array.length > 0;
//   }
// 
//   private Arrays() {}
// }


// Path: test/core/lombok/core/util/Arrays_isNotEmpty_Test.java
import static org.fest.assertions.Assertions.assertThat;
import lombok.core.util.Arrays;
import org.junit.Test;

/*
 * Created on Dec 8, 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 the original author or authors.
 */
package lombok.core.util;



/**
 * Tests for <code>{@link Arrays#isNotEmpty(Object[])}</code>.
 *
 * @author Alex Ruiz
 */
public class Arrays_isNotEmpty_Test {

  @Test public void should_return_false_if_array_is_null() {
    assertThat(Arrays.isNotEmpty(null)).isFalse();