FreeHEP API
Version current

org.freehep.util
Class Assert

java.lang.Object
  extended byjunit.framework.Assert
      extended byorg.freehep.util.Assert

public class Assert
extends junit.framework.Assert

Additional assert methods to the junit.framework.Assert class.

Version:
$Id: Assert.java,v 1.3 2005/01/10 18:29:57 duns Exp $
Author:
Mark Donszelmann
Source Code:
Assert.java

Constructor Summary
protected Assert()
          static class only
 
Method Summary
static void assertEquals(File expected, File actual, boolean isBinary)
          Compares to files.
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

protected Assert()
static class only

Method Detail

assertEquals

public static void assertEquals(File expected,
                                File actual,
                                boolean isBinary)
                         throws FileNotFoundException,
                                IOException
Compares to files. The files may be gzipped, and will then be uncompressed on the fly.

Parameters:
expected - reference file
actual - file to be tested
isBinary - when true will do byte-by-byte comparison rather than line by line.
Throws:
FileNotFoundException - if one of the files cannot be found.
IOException - if one of the files cannot read.
junit.framework.AssertionFailedError - if the files are not equal.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.