+
+ +

Class HttpResourceNotExpiredTest

+
+
+ +
+
    +
  • +
    +
    @DisplayName("HttpResource - Not Expired")
    +@ExtendWith({org.springframework.test.context.junit.jupiter.SpringExtension.class,org.mockito.junit.jupiter.MockitoExtension.class})
    +public class HttpResourceNotExpiredTest
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HttpResourceNotExpiredTest

        +
        public HttpResourceNotExpiredTest()
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      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_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_lastModified_DoesNotTriggerFetch

        +
        @Test
        +@DisplayName("call to lastModified() does not trigger fetch")
        +public void test_lastModified_DoesNotTriggerFetch()
        +                                           throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_isModified_DoesNotTriggerFetch

        +
        @Test
        +@DisplayName("call to isModified() does not trigger fetch")
        +public void test_isModified_DoesNotTriggerFetch()
        +                                         throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_getInputStream_DoesNotTriggerFetch

        +
        @Test
        +@DisplayName("call to getInputStream() does not trigger fetch")
        +public void test_getInputStream_DoesNotTriggerFetch()
        +                                             throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_contentLength_DoesNotTriggerFetch

        +
        @Test
        +@DisplayName("call to contentLength() does not trigger fetch")
        +public void test_contentLength_DoesNotTriggerFetch()
        +                                            throws Exception
        +
        +
        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 fetched")
        +public void test_isNotFetched()
        +                       throws Exception
        +
        Results for calls, that does never trigger a fetch
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_exists_IsTrue

        +
        @Test
        +@DisplayName("exists")
        +public void test_exists_IsTrue()
        +
      • +
      + + + +
        +
      • +

        test_isReadable_IsTrue

        +
        @Test
        +@DisplayName("is readable")
        +public void test_isReadable_IsTrue()
        +
      • +
      + + + +
        +
      • +

        test_hasExpectedLastModification

        +
        @Test
        +@DisplayName("has expected value for last modification")
        +public void test_hasExpectedLastModification()
        +                                      throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_isNotModified

        +
        @Test
        +@DisplayName("is not modified")
        +public void test_isNotModified()
        +
      • +
      + + + +
        +
      • +

        test_hasExpectedContent

        +
        @Test
        +@DisplayName("has expected content")
        +public void test_hasExpectedContent()
        +                             throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_hasExpectedContentLength

        +
        @Test
        +@DisplayName("has expected content-length")
        +public void test_hasExpectedContentLength()
        +                                   throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_hasInitialExpirationValue

        +
        @Test
        +@DisplayName("has expected expiration value")
        +public void test_hasInitialExpirationValue()
        +                                    throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_isNotExpired

        +
        @Test
        +@DisplayName("is not expired")
        +public void test_isNotExpired()
        +                       throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_hasExpectedETag

        +
        @Test
        +@DisplayName("has expected eTag")
        +public void test_hasExpectedETag()
        +                          throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_hasExpectedContentType

        +
        @Test
        +@DisplayName("has expected content-type")
        +public void test_hasExpectedContentType()
        +                                 throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+