org.metaabm.tests
Class BasePersistTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.metaabm.tests.BasePersistTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CommandTest, ModelPersistTest

public abstract class BasePersistTest
extends junit.framework.TestCase


Field Summary
protected  MetaABMPersist doPersist
           
protected static MetaABMFactory f
           
protected static MetaABMActFactory fa
           
protected  java.lang.String path
           
protected  SContext persistContext
           
protected  java.lang.String persistName
           
protected  MetaABMPersist redoPersist
           
protected  org.eclipse.emf.common.command.Command referenceCommand
           
protected  SContext referenceContext
           
protected  MetaABMPersist referencePersist
           
protected  org.eclipse.emf.common.command.Command testCommand
           
protected  SContext testContext
           
protected  MetaABMPersist testPersist
           
protected  MetaABMPersist undoPersist
           
 
Constructor Summary
BasePersistTest(java.lang.String name)
           
 
Method Summary
protected  void checkPersist()
           
protected  void execTransform(Transformer transformer)
           
protected  void execTransform(Transformer transformer, int commandIndex)
           
protected  void redoTransform(Transformer transformer, int commandIndex)
           
protected  void setUp()
           
protected  void tearDown()
           
protected  void undoTransform(Transformer transformer, int commandIndex)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

f

protected static MetaABMFactory f

fa

protected static MetaABMActFactory fa

referenceContext

protected SContext referenceContext

referenceCommand

protected org.eclipse.emf.common.command.Command referenceCommand

testContext

protected SContext testContext

testCommand

protected org.eclipse.emf.common.command.Command testCommand

persistContext

protected SContext persistContext

persistName

protected java.lang.String persistName

referencePersist

protected MetaABMPersist referencePersist

doPersist

protected MetaABMPersist doPersist

undoPersist

protected MetaABMPersist undoPersist

redoPersist

protected MetaABMPersist redoPersist

testPersist

protected MetaABMPersist testPersist

path

protected java.lang.String path
Constructor Detail

BasePersistTest

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

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

execTransform

protected void execTransform(Transformer transformer)

execTransform

protected void execTransform(Transformer transformer,
                             int commandIndex)

undoTransform

protected void undoTransform(Transformer transformer,
                             int commandIndex)

redoTransform

protected void redoTransform(Transformer transformer,
                             int commandIndex)

checkPersist

protected void checkPersist()
                     throws java.io.IOException
Throws:
java.io.IOException

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception