Mercurial > hg > truffle
changeset 22185:b50f3bc4ed37
Cleanup the set before and after the test
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 23 Sep 2015 13:37:35 +0200 |
parents | 6380c7de0159 |
children | 2e7352f9ffa8 |
files | truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/ExceptionDuringParsingTest.java |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/ExceptionDuringParsingTest.java Tue Sep 22 12:11:21 2015 +0200 +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/ExceptionDuringParsingTest.java Wed Sep 23 13:37:35 2015 +0200 @@ -28,19 +28,25 @@ import static com.oracle.truffle.api.test.vm.ImplicitExplicitExportTest.L1; import com.oracle.truffle.api.vm.TruffleVM; import java.io.IOException; +import org.junit.After; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import org.junit.Before; import org.junit.Test; public class ExceptionDuringParsingTest { public static Accessor API; + @Before + @After + public void cleanTheSet() { + Ctx.disposed.clear(); + } + @Test public void canGetAccessToOwnLanguageInstance() throws Exception { - Ctx.disposed.clear(); - TruffleVM vm = TruffleVM.newVM().build(); TruffleVM.Language language = vm.getLanguages().get(L1); assertNotNull("L1 language is defined", language);