commit | e55a8858c254554126061e58e3f769b3ad0d9721 | [log] [tgz] |
---|---|---|
author | Stefan Edlund <sedlund@us.ibm.com> | Tue Dec 04 22:47:29 2012 +0000 |
committer | Stefan Edlund <sedlund@us.ibm.com> | Tue Dec 04 22:47:29 2012 +0000 |
tree | e84488d8ecad64534cd7450ce5352d6172081c95 | |
parent | 9047724ecacfbabf332a2ab484e98787e92e2089 [diff] |
Improve error handling when reference dir not found for automatic experiments git-svn-id: http://dev.eclipse.org/svnroot/technology/org.eclipse.stem/branches/STEM_1_4_1@3631 92a21009-5b66-0410-b83a-dc787c41c6e9
diff --git a/tests/org.eclipse.stem.tests.automaticexperiment/src/org/eclipse/stem/tests/automaticexperiment/AutomaticExperimentTest.java b/tests/org.eclipse.stem.tests.automaticexperiment/src/org/eclipse/stem/tests/automaticexperiment/AutomaticExperimentTest.java index 5e6e75a..0a8d6a8 100644 --- a/tests/org.eclipse.stem.tests.automaticexperiment/src/org/eclipse/stem/tests/automaticexperiment/AutomaticExperimentTest.java +++ b/tests/org.eclipse.stem.tests.automaticexperiment/src/org/eclipse/stem/tests/automaticexperiment/AutomaticExperimentTest.java
@@ -26,6 +26,7 @@ import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; +import org.eclipse.stem.analysis.LogInitializationException; import org.eclipse.stem.analysis.automaticexperiment.AutomaticExperiment; import org.eclipse.stem.analysis.automaticexperiment.ErrorAnalysisAlgorithm; import org.eclipse.stem.analysis.automaticexperiment.ErrorAnalysisAlgorithmFactory; @@ -107,7 +108,11 @@ ErrorAnalysisAlgorithm algorithm = ErrorAnalysisAlgorithmFactory.INSTANCE.createErrorAnalysisAlgorithm(automaticExperiment); assertNotNull(algorithm); - algorithm.init(automaticExperiment, algorithm); + try { + algorithm.init(automaticExperiment, algorithm); + } catch(LogInitializationException lie) { + fail(lie.getMessage()); + } algorithm.execute(); assertTrue(true); }