|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
uk.ac.ucl.sse.omii.bpel.model._2006._08.pdd.tests.LoadPddTest
public class LoadPddTest
Testing the loading capabilities of our PDD model code. It has to be noted though that loading is not that important for our plug-in as we never have to read pdd files, but just generate them on user request given a bpel file.
The last test mentioned in this list is due to a bug in ActiveBPEL 2.0 where it accepts a pdd file according to the 2005 schema version, but requires the schema version to state it was 2004 in order to operate correctly. When loading, we should therefore convert the 2004 string to 2005 before creating an EMF resource on the contents of a file.
This bug is solved in ActiveBPEL 2.1 :)
Constructor Summary | |
---|---|
LoadPddTest(java.lang.String name)
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
void |
testLoadCorrectPdd()
Testing whether can load successfully from correct pdd file and whether all contents in the model are as expected. |
void |
testLoadInvalidPdd()
Testing that exception is thrown as expected when encountering an invalid pdd file. |
void |
testVersionConversion()
Testing the above-mentioned conversion between version strings from pdd file. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, getName, run, run, runBare, 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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LoadPddTest(java.lang.String name)
Method Detail |
---|
public static void main(java.lang.String[] args)
public void testLoadCorrectPdd() throws java.io.IOException
java.io.IOException
public void testLoadInvalidPdd() throws java.io.IOException
java.io.IOException
public void testVersionConversion() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |