-package org.argeo.slc.test;\r
-\r
-import org.argeo.slc.SlcException;\r
-\r
-/**\r
- * Exception to throw when a test definition cannot interpret the provided test\r
- * data.\r
- */\r
-public class IncompatibleTestDataException extends SlcException {\r
- static final long serialVersionUID = 1l;\r
-\r
- public IncompatibleTestDataException(TestData testData,\r
- TestDefinition testDefinition) {\r
- super("TestData " + testData.getClass()\r
- + " is not compatible with TestDefinition "\r
- + testDefinition.getClass());\r
- }\r
-\r
- public IncompatibleTestDataException(TestRun testRun) {\r
- super("TestData " + ((TestData) testRun.getTestData()).getClass()\r
- + " is not compatible with TestDefinition "\r
- + ((TestDefinition) testRun.getTestDefinition()).getClass());\r
- }\r
-}\r