Package de.juplo.httpresources
Class HttpResourceNotFetchedTest
- java.lang.Object
-
- de.juplo.httpresources.HttpResourceNotFetchedTest
-
@DisplayName("HttpResource - Not Fetched") @ExtendWith({org.springframework.test.context.junit.jupiter.SpringExtension.class,org.mockito.junit.jupiter.MockitoExtension.class}) public class HttpResourceNotFetchedTest extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpResourceNotFetchedTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
SETUPvoid
test_contentLength_TriggersFetch()
void
test_contentType_DoesNotTriggerFetch()
void
test_eTag_DoesNotTriggerFetch()
void
test_exists_TriggersFetch()
void
test_expires_DoesNotTriggerFetch()
void
test_fetch_TriggersFetch()
Calls, that trigger a fetchvoid
test_fetched_DoesNotTriggerFetch()
Calls, that do not trigger a fetchvoid
test_getInputStream_TriggersFetch()
void
test_hasInitialExpirationValue()
void
test_hasNoContentType()
void
test_hasNoETag()
void
test_isExpired()
void
test_isExpired_DoesNotTriggerFetch()
void
test_isModified_TriggersFetch()
void
test_isNotFetched()
Initial results for calls, that does not trigger a fetchvoid
test_isReadable_TriggersFetch()
void
test_lastModified_TriggersFetch()
-
-
-
Method Detail
-
setUp
@BeforeEach public void setUp()
SETUP
-
test_fetch_TriggersFetch
@Test @DisplayName("call to fetch() triggers fetch") public void test_fetch_TriggersFetch()
Calls, that trigger a fetch
-
test_exists_TriggersFetch
@Test @DisplayName("call to exists() triggers fetch") public void test_exists_TriggersFetch()
-
test_isReadable_TriggersFetch
@Test @DisplayName("call to isReadable() triggers fetch") public void test_isReadable_TriggersFetch()
-
test_lastModified_TriggersFetch
@Test @DisplayName("call to lastModified() triggers fetch") public void test_lastModified_TriggersFetch() throws Exception
- Throws:
Exception
-
test_isModified_TriggersFetch
@Test @DisplayName("call to isModified() triggers fetch") public void test_isModified_TriggersFetch()
-
test_getInputStream_TriggersFetch
@Test @DisplayName("call to getInputStream() triggers fetch") public void test_getInputStream_TriggersFetch() throws Exception
- Throws:
Exception
-
test_contentLength_TriggersFetch
@Test @DisplayName("call to contentLength() does trigger fetch") public void test_contentLength_TriggersFetch() throws Exception
- Throws:
Exception
-
test_fetched_DoesNotTriggerFetch
@Test @DisplayName("call to fetched() does not trigger fetch") public void test_fetched_DoesNotTriggerFetch() throws Exception
Calls, that do not trigger a fetch- Throws:
Exception
-
test_expires_DoesNotTriggerFetch
@Test @DisplayName("call to expires() does not trigger fetch") public void test_expires_DoesNotTriggerFetch() throws Exception
- Throws:
Exception
-
test_isExpired_DoesNotTriggerFetch
@Test @DisplayName("call to isExpired() does not trigger fetch") public void test_isExpired_DoesNotTriggerFetch() throws Exception
- Throws:
Exception
-
test_eTag_DoesNotTriggerFetch
@Test @DisplayName("call to eTag() does not trigger fetch") public void test_eTag_DoesNotTriggerFetch() throws Exception
- Throws:
Exception
-
test_contentType_DoesNotTriggerFetch
@Test @DisplayName("call to contentType() does not trigger fetch") public void test_contentType_DoesNotTriggerFetch() throws Exception
- Throws:
Exception
-
test_isNotFetched
@Test @DisplayName("is not fetched") public void test_isNotFetched() throws Exception
Initial results for calls, that does not trigger a fetch- Throws:
Exception
-
test_hasInitialExpirationValue
@Test @DisplayName("has Long.MIN_VALUE as initial expiration value") public void test_hasInitialExpirationValue() throws Exception
- Throws:
Exception
-
test_isExpired
@Test @DisplayName("is expired") public void test_isExpired() throws Exception
- Throws:
Exception
-
test_hasNoETag
@Test @DisplayName("has no eTag") public void test_hasNoETag() throws Exception
- Throws:
Exception
-
-