public final class AdditionalAssertions extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertURLArrayEquals(URL[] value,
URL[] expectedValue) |
static void |
assertURLListEquals(List<URL> value,
List<URL> expectedValue) |
static void |
assertURLSetEquals(Set<URL> valueSet,
Set<URL> expectedURLSet) |
static boolean |
urlEquals(URL expected,
URL actual)
Use URI.equals() since URL.equals() performs DNS resolution which is undesired.
|
public static boolean urlEquals(URL expected, URL actual) throws URISyntaxException
URISyntaxException
- if either URL is not formatted correctlypublic static void assertURLArrayEquals(URL[] value, URL[] expectedValue) throws MalformedURLException
MalformedURLException
public static void assertURLListEquals(List<URL> value, List<URL> expectedValue) throws MalformedURLException
MalformedURLException
public static void assertURLSetEquals(Set<URL> valueSet, Set<URL> expectedURLSet) throws MalformedURLException, URISyntaxException
Copyright © 2016 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.