From d7d4493e7617e724dbd09bf7e03c0621e099136c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 30 Aug 2016 15:20:44 +0200 Subject: [PATCH] DomStubUsingTest: cleanup --- .../intellij/util/xml/stubs/DomStubUsingTest.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubUsingTest.java b/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubUsingTest.java index 082ea80e6193..3d5a4915e7ad 100644 --- a/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubUsingTest.java +++ b/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubUsingTest.java @@ -36,8 +36,7 @@ import java.util.List; */ public class DomStubUsingTest extends DomStubTest { - public void testFoo() throws Exception { - + public void testFoo() { DomFileElement fileElement = prepare("foo.xml", Foo.class); PsiFile file = fileElement.getFile(); assertFalse(file.getNode().isParsed()); @@ -76,7 +75,7 @@ public class DomStubUsingTest extends DomStubTest { assertFalse(file.getNode().isParsed()); } - public void testAccessingPsi() throws Exception { + public void testAccessingPsi() { DomFileElement element = prepare("foo.xml", Foo.class); assertNotNull(element.getXmlElement()); @@ -93,7 +92,7 @@ public class DomStubUsingTest extends DomStubTest { assertNotNull(attribute); } - public void testConverters() throws Exception { + public void testConverters() { DomFileElement element = prepare("converters.xml", Foo.class); Bar bar = element.getRootElement().getBars().get(0); PsiClass value = bar.getClazz().getValue(); @@ -102,7 +101,7 @@ public class DomStubUsingTest extends DomStubTest { assertFalse(element.getFile().getNode().isParsed()); } - public void testParent() throws Exception { + public void testParent() { DomFileElement element = prepare("parent.xml", Foo.class); Bar bar = element.getRootElement().getBars().get(0); @@ -115,15 +114,14 @@ public class DomStubUsingTest extends DomStubTest { assertEquals(bar, parent); } - public void testChildrenOfType() throws Exception { - + public void testChildrenOfType() { DomFileElement element = prepare("foo.xml", Foo.class); Foo foo = element.getRootElement(); List bars = DomUtil.getChildrenOf(foo, Bar.class); assertEquals(2, bars.size()); } - public void testFileLoading() throws Exception { + public void testFileLoading() { XmlFile file = prepareFile("foo.xml"); ((PsiManagerEx)getPsiManager()).setAssertOnFileLoadingFilter(VirtualFileFilter.ALL, getTestRootDisposable()); DomFileElement element = DomManager.getDomManager(getProject()).getFileElement(file, Foo.class);