* not exist or if the {@link SystemConfiguration} file is invalid.
* </p>
*/
@Before
public void setup() {
SystemConfigurationFile configAnnotation = getClass().getAnnotation(
SystemConfigurationFile.class);
if (configAnnotation == null) {
fail("System configuration-based test does not declare SystemConfigurationFile annotation.");
return;
}
try {
createSystemConfiguration(new File(configAnnotation.path()));
} catch (IOException ioex) {
ioex.printStackTrace();
fail(ioex.getMessage());
}
}