// 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/main/java/org/fest/util/Sets.java
// public static @NotNull <T> HashSet<T> newHashSet() {
//   return new HashSet<T>();
// }
// 
// Path: src/main/java/org/fest/util/Strings.java
// public static @NotNull String concat(@NotNull Object... objects) {
//   checkNotNull(objects);
//   StringBuilder b = new StringBuilder();
//   for (Object o : objects) {
//     b.append(o);
//   }
//   return b.toString();
// }


import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.io.File;
import java.util.HashSet;
import java.util.List;
import static java.io.File.separator;
import static org.fest.util.Lists.newArrayList;
import static org.fest.util.Sets.newHashSet;
import static org.fest.util.Strings.concat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.rules.ExpectedException.none;
/*
 * Created on Sep 23, 2006
 * 
 * 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 @2006-2013 the original author or authors.
 */
package org.fest.util;




/**
 * Tests for {@link Files#fileNamesIn(String, boolean)}.
 *
 * @author Alex Ruiz
 * @author Yvonne Wang
 */
public class Files_fileNamesIn_Test extends Files_TestCase {
  @Rule public ExpectedException thrown = none();

  @Test
  public void should_throw_error_if_directory_does_not_exist() {
// 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/main/java/org/fest/util/Sets.java
// public static @NotNull <T> HashSet<T> newHashSet() {
//   return new HashSet<T>();
// }
// 
// Path: src/main/java/org/fest/util/Strings.java
// public static @NotNull String concat(@NotNull Object... objects) {
//   checkNotNull(objects);
//   StringBuilder b = new StringBuilder();
//   for (Object o : objects) {
//     b.append(o);
//   }
//   return b.toString();
// }


// Path: src/test/java/org/fest/util/Files_fileNamesIn_Test.java
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.io.File;
import java.util.HashSet;
import java.util.List;
import static java.io.File.separator;
import static org.fest.util.Lists.newArrayList;
import static org.fest.util.Sets.newHashSet;
import static org.fest.util.Strings.concat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.rules.ExpectedException.none;

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




/**
 * Tests for {@link Files#fileNamesIn(String, boolean)}.
 *
 * @author Alex Ruiz
 * @author Yvonne Wang
 */
public class Files_fileNamesIn_Test extends Files_TestCase {
  @Rule public ExpectedException thrown = none();

  @Test
  public void should_throw_error_if_directory_does_not_exist() {
    String path = concat("root", separator, "not_existing_dir");