Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;

import org.eclipse.emf.common.util.URI;
Expand Down Expand Up @@ -57,8 +58,8 @@ private static class TestScope extends CatalogFromExtensionPointScope {
*
* @return Some syntactically correct but otherwise meaningless URL.
*/
private URL createURL() throws MalformedURLException {
return new URL("http://" + TEST_CATALOG_FILE + TEST_CATALOG_EXTENSION);
private URL createURL() throws MalformedURLException, URISyntaxException {
return new java.net.URI("http://" + TEST_CATALOG_FILE + TEST_CATALOG_EXTENSION).toURL();
}

/**
Expand Down Expand Up @@ -121,7 +122,7 @@ private void assertIterableNotEmpty(final Iterable<?> iterable) {
* Tests that querying the same scope twice doesn't make the resource set grow.
*/
@Test
public void testSameScopeUseTwice() throws MalformedURLException {
public void testSameScopeUseTwice() throws MalformedURLException, URISyntaxException {
XtextResourceSet rs = new XtextResourceSet();
URL url = createURL();
ModelLocation modelLocation = createModelLocation(url);
Expand All @@ -140,7 +141,7 @@ public void testSameScopeUseTwice() throws MalformedURLException {
* Tests that querying two different scopes doesn't make the resource set grow. That one was the real cause of bug AIG-1314.
*/
@Test
public void testDifferentScopeUseTwice() throws MalformedURLException {
public void testDifferentScopeUseTwice() throws MalformedURLException, URISyntaxException {
XtextResourceSet rs = new XtextResourceSet();
URL url = createURL();
ModelLocation modelLocation = createModelLocation(url);
Expand Down