]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.api/src/org/argeo/slc/test/IncompatibleTestDataException.java
Upgrade all classpaths to Java 11
[gpl/argeo-slc.git] / org.argeo.slc.api / src / org / argeo / slc / test / IncompatibleTestDataException.java
1 package org.argeo.slc.test;
2
3 import org.argeo.slc.SlcException;
4
5 /**
6 * Exception to throw when a test definition cannot interpret the provided test
7 * data.
8 */
9 public class IncompatibleTestDataException extends SlcException {
10 static final long serialVersionUID = 1l;
11
12 public IncompatibleTestDataException(TestData testData,
13 TestDefinition testDefinition) {
14 super("TestData " + testData.getClass()
15 + " is not compatible with TestDefinition "
16 + testDefinition.getClass());
17 }
18
19 public IncompatibleTestDataException(TestRun testRun) {
20 super("TestData " + ((TestData) testRun.getTestData()).getClass()
21 + " is not compatible with TestDefinition "
22 + ((TestDefinition) testRun.getTestDefinition()).getClass());
23 }
24 }