+
+ +

Class HttpResourceNotFetchedFirstFetchSuccessfulTest

+
+
+ +
+
    +
  • +
    +
    @DisplayName("HttpResource - Not Fetched - First Fetch: Successfull")
    +@ExtendWith({org.springframework.test.context.junit.jupiter.SpringExtension.class,org.mockito.junit.jupiter.MockitoExtension.class})
    +public class HttpResourceNotFetchedFirstFetchSuccessfulTest
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HttpResourceNotFetchedFirstFetchSuccessfulTest

        +
        public HttpResourceNotFetchedFirstFetchSuccessfulTest()
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setUp

        +
        @BeforeEach
        +public void setUp()
        +
        SETUP
        +
      • +
      + + + +
        +
      • +

        test_fetch_ReportsModifications

        +
        @Test
        +@DisplayName("fetch() reports modifications")
        +public void test_fetch_ReportsModifications()
        +
        Results for calls, that trigger a fetch
        +
      • +
      + + + +
        +
      • +

        test_exists_IsTrue

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

        test_isReadable_IsTrue

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

        test_lastModified_ReturnsExpectedTime

        +
        @Test
        +@DisplayName("lastModified() returns the expected time")
        +public void test_lastModified_ReturnsExpectedTime()
        +                                           throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_isModified_IsTrue

        +
        @Test
        +@DisplayName("isModified() is true")
        +public void test_isModified_IsTrue()
        +
      • +
      + + + +
        +
      • +

        test_getInputStream_TriggersFetch

        +
        @Test
        +@DisplayName("getInputStream() returns expected content")
        +public void test_getInputStream_TriggersFetch()
        +                                       throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_contentLength_ReturnsExpectedLength

        +
        @Test
        +@DisplayName("contentLength() returns expected content-length")
        +public void test_contentLength_ReturnsExpectedLength()
        +                                              throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_fetch_UpdatesData

        +
        @Test
        +@DisplayName("call to fetch() updates data")
        +public void test_fetch_UpdatesData()
        +
        Expected state after calls that trigger a fetch
        +
      • +
      + + + +
        +
      • +

        test_exists_UpdatesData

        +
        @Test
        +@DisplayName("call to exists() updates data")
        +public void test_exists_UpdatesData()
        +
      • +
      + + + +
        +
      • +

        test_isReadable_UpdatesData

        +
        @Test
        +@DisplayName("call to isReadable() updates data")
        +public void test_isReadable_UpdatesData()
        +
      • +
      + + + +
        +
      • +

        test_lastModified_UpdatesData

        +
        @Test
        +@DisplayName("call to lastModified() updates data")
        +public void test_lastModified_UpdatesData()
        +                                   throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_isModified_UpdatesData

        +
        @Test
        +@DisplayName("call to isModified() updates data")
        +public void test_isModified_UpdatesData()
        +
      • +
      + + + +
        +
      • +

        test_getInputStream_UpdatesData

        +
        @Test
        +@DisplayName("call to getInputStream() updates data")
        +public void test_getInputStream_UpdatesData()
        +                                     throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        test_contentLength_UpdatesData

        +
        @Test
        +@DisplayName("call to contentLength() updates data")
        +public void test_contentLength_UpdatesData()
        +                                    throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+