com.arsdigita.apm.test
Class SpecificationTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.arsdigita.apm.test.SpecificationTest
All Implemented Interfaces:
junit.framework.Test

public class SpecificationTest
extends junit.framework.TestCase

Test cases for the APM Specification.

Since:
ACS 4.0

Field Summary
static java.lang.String cvsId
           
 
Constructor Summary
SpecificationTest(java.lang.String name)
           
 
Method Summary
 void setUp()
          Setup basic file resources.
 void tearDown()
          Close the file resources already opened.
 void testEasySpec()
          Construct known correct and incorrect APM specifications and see if the system acts correctly.
 void testInvalidSpec()
          This document is well formed, but is not valid according the DTD.
 void testNotWellFormedSpec()
          The sepcfication file tested here is not well-formed.
 void testValidSpec()
          This method reads in a valid specification.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId
Constructor Detail

SpecificationTest

public SpecificationTest(java.lang.String name)
Method Detail

setUp

public void setUp()
Setup basic file resources.
Overrides:
setUp in class junit.framework.TestCase

testEasySpec

public void testEasySpec()
Construct known correct and incorrect APM specifications and see if the system acts correctly.

testValidSpec

public void testValidSpec()
This method reads in a valid specification. This should proceed without error.

testNotWellFormedSpec

public void testNotWellFormedSpec()
The sepcfication file tested here is not well-formed. It should throw the error indicated below.

testInvalidSpec

public void testInvalidSpec()
This document is well formed, but is not valid according the DTD. The error specified below should be thrown.

tearDown

public void tearDown()
Close the file resources already opened.
Overrides:
tearDown in class junit.framework.TestCase