diff options
author | Laurent Redor | 2019-04-08 09:17:58 +0000 |
---|---|---|
committer | Laurent Redor | 2019-04-08 13:43:34 +0000 |
commit | 50e986f5caba78130c39ec454ce9054411cc9de3 (patch) | |
tree | e075aa95a2f20c5dba85b3319b758af7b2ff5f19 | |
parent | ff64f4a7bdd8c23055d56d1a4c88a6d1a7ce8849 (diff) | |
download | org.eclipse.sirius-50e986f5caba78130c39ec454ce9054411cc9de3.tar.gz org.eclipse.sirius-50e986f5caba78130c39ec454ce9054411cc9de3.tar.xz org.eclipse.sirius-50e986f5caba78130c39ec454ce9054411cc9de3.zip |
[cleanup] Avoid DRepresentationLocationManagerTest tearDown problem
If the super.tearDown() failed, the reset of
CreateRepresentationInSeparateResource was not done.
Change-Id: I695ca90e4f820e67cf407bb9a9ddab281d0b5ede
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
-rw-r--r-- | plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/api/representation/DRepresentationLocationManagerTest.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/api/representation/DRepresentationLocationManagerTest.java b/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/api/representation/DRepresentationLocationManagerTest.java index c64c9f3a33..da760890af 100644 --- a/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/api/representation/DRepresentationLocationManagerTest.java +++ b/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/api/representation/DRepresentationLocationManagerTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2017 Obeo. + * Copyright (c) 2017, 2019 Obeo. * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -205,7 +205,10 @@ public class DRepresentationLocationManagerTest extends GenericTestCase { @Override protected void tearDown() throws Exception { - super.tearDown(); - TestsUtil.setCreateRepresentationInSeparateResource(oldPropertyValue); + try { + super.tearDown(); + } finally { + TestsUtil.setCreateRepresentationInSeparateResource(oldPropertyValue); + } } } |