org.eclipse.jetty.toolchain.test
Class PathAssert

java.lang.Object
  extended by org.eclipse.jetty.toolchain.test.PathAssert

public final class PathAssert
extends Object

Assertions of various FileSytem Paths


Method Summary
static void assertDirExists(String msg, File path)
          Assert that the Directory exist.
static void assertExists(String msg, File path)
          Assert that the path exist.
static void assertFileExists(String msg, File path)
          Assert that the File exist.
static void assertNotExists(String msg, File path)
          Assert that the path does not exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertDirExists

public static void assertDirExists(String msg,
                                   File path)
Assert that the Directory exist.

Parameters:
msg - message about the test (used in case of assertion failure)
path - the path that should exist, and be a directory

assertFileExists

public static void assertFileExists(String msg,
                                    File path)
Assert that the File exist.

Parameters:
msg - message about the test (used in case of assertion failure)
path - the path that should exist, and be a file

assertExists

public static void assertExists(String msg,
                                File path)
Assert that the path exist.

Parameters:
msg - message about the test (used in case of assertion failure)
path - the path that should exist

assertNotExists

public static void assertNotExists(String msg,
                                   File path)
Assert that the path does not exist.

Parameters:
msg - message about the test (used in case of assertion failure)
path - the path that should not exist


Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.