JML

org.multijava.util
Class TestUtils

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.multijava.util.TestUtils
All Implemented Interfaces:
junit.framework.Test

public class TestUtils
extends junit.framework.TestCase

TestMain.java

Version:
$Revision: 1.6 $
Author:
Curtis Clifton

Field Summary
private static String fileSep
           
private  File userDir
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestUtils(String name)
           
 
Method Summary
private  void assertFiles(File[] files, String prefix)
          For each i in 0..files.length this asserts that Utils.relativePathTo(files[i]) equals prefix + files[i].getName()
 void setUp()
           
 void test_escapeString_1()
           
 void test_escapeString_2()
           
 void test_escapeString_3()
           
 void test_escapeString_4()
           
private  void test_escapeStrings_helper(String[] expect, String[] orig)
           
 void test_relativePathTo_1()
           
 void test_relativePathTo_2()
           
 void test_relativePathTo_3()
           
 void test_unescapeString_1()
           
 void test_unescapeString_2()
           
 void test_unescapeString_3()
           
 void test_unescapeString_4()
           
 void test_unescapeString_5()
           
 void test_unescapeString_6()
           
private  void test_unescapeStrings_helper(String[] expect, String[] orig)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
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, wait, wait, wait
 

Field Detail

fileSep

private static final String fileSep

userDir

private File userDir
Constructor Detail

TestUtils

public TestUtils(String name)
Method Detail

test_unescapeStrings_helper

private void test_unescapeStrings_helper(String[] expect,
                                         String[] orig)

test_unescapeString_1

public void test_unescapeString_1()

test_unescapeString_2

public void test_unescapeString_2()

test_unescapeString_3

public void test_unescapeString_3()

test_unescapeString_4

public void test_unescapeString_4()

test_unescapeString_5

public void test_unescapeString_5()

test_unescapeString_6

public void test_unescapeString_6()

test_escapeStrings_helper

private void test_escapeStrings_helper(String[] expect,
                                       String[] orig)

test_escapeString_1

public void test_escapeString_1()

test_escapeString_2

public void test_escapeString_2()

test_escapeString_3

public void test_escapeString_3()

test_escapeString_4

public void test_escapeString_4()

test_relativePathTo_1

public void test_relativePathTo_1()

test_relativePathTo_2

public void test_relativePathTo_2()

test_relativePathTo_3

public void test_relativePathTo_3()

assertFiles

private void assertFiles(File[] files,
                         String prefix)
For each i in 0..files.length this asserts that Utils.relativePathTo(files[i]) equals prefix + files[i].getName()


setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.