Package de.juplo.httpresources
Class HttpResourcesTest
- java.lang.Object
-
- de.juplo.httpresources.HttpResourcesTest
-
public class HttpResourcesTest extends Object
Tests for the methodsHttpResources.getResource(java.net.URI)
andHttpResources.convert(java.lang.String)
- Author:
- Kai Moritz
-
-
Constructor Summary
Constructors Constructor Description HttpResourcesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testConvertInvalid()
void
testConvertValid()
void
testCreateRelative(HttpResourceFetcher fetcher)
This test only checks the integration of the used methods Detailed tests forURI
-handling are implemented inHttpResourcesUriHandlingTest
.void
testGetResource()
void
testHostWithoutTrailingSlash()
void
testResolveInvalid()
Checks the resolving of normal examples, with enabled enforcment of a relative path.void
testResolveValid()
Checks the resolving of normal examples, with enabled enforcment of a relative path.
-
-
-
Method Detail
-
testGetResource
@Test public void testGetResource()
-
testCreateRelative
@Test @DisplayName("createRelative()") public void testCreateRelative(HttpResourceFetcher fetcher) throws Exception
This test only checks the integration of the used methods Detailed tests forURI
-handling are implemented inHttpResourcesUriHandlingTest
.- Throws:
Exception
-
testResolveValid
public void testResolveValid() throws IOException
Checks the resolving of normal examples, with enabled enforcment of a relative path.- Throws:
IOException
-
testResolveInvalid
public void testResolveInvalid() throws IOException
Checks the resolving of normal examples, with enabled enforcment of a relative path.- Throws:
IOException
-
testHostWithoutTrailingSlash
public void testHostWithoutTrailingSlash() throws IOException
- Throws:
IOException
-
-