Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TestLifecycleAware-ness of containers started by the JUnit Jupiter integration #1326

Merged
merged 41 commits into from
Apr 12, 2020

Commits on Feb 2, 2019

  1. Configuration menu
    Copy the full SHA
    63764ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3281ac5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    631b9b3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6c8f08c View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2019

  1. Configuration menu
    Copy the full SHA
    3143068 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2019

  1. Configuration menu
    Copy the full SHA
    4a1ffe0 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2019

  1. Configuration menu
    Copy the full SHA
    8c07732 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2019

  1. Configuration menu
    Copy the full SHA
    a7ccf50 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a9f69a View commit details
    Browse the repository at this point in the history
  3. Add signalling of TestLifecycleAware containers.

    Allow containers like WebBrowserContainers to initialize and/or finalize
    before/after tests.
    roamingthings committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    c91d344 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a6998eb View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2019

  1. Add test for post condition when signalling lifecycleaware containers

    This kind of test is a bit tricky since the post condition occurs
    after the original test has been finished. Also it's not nice to
    pass data between two tests.
    roamingthings committed Mar 27, 2019
    Configuration menu
    Copy the full SHA
    e5a158d View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2019

  1. Configuration menu
    Copy the full SHA
    a7fd8fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c374056 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2019

  1. Configuration menu
    Copy the full SHA
    a58a986 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2019

  1. Update test for lifecycle aware containers to cover shared case (test…

    …containers#1326)
    
    In order to check that the afterAll callback has signalled
    lifecycleaware containers correctly a second extension is used. The
    order of the extension annotation ensures that the assertion is run
    after the extension under test.
    roamingthings committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    ee1dae7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    deabf8a View commit details
    Browse the repository at this point in the history
  3. Update test for lifecycle aware containers to cover shared case (test…

    …containers#1326)
    
    To test the beforeAll() case the assertion has to be called from
    within the test class since it's called after all extensions.
    roamingthings committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    63c723d View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2019

  1. Configuration menu
    Copy the full SHA
    20eea51 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2019

  1. Configuration menu
    Copy the full SHA
    7971b3a View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2019

  1. Configuration menu
    Copy the full SHA
    61ac0c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    93fb685 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    13b526e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb67ee2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    37014cc View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2019

  1. Configuration menu
    Copy the full SHA
    33b1e7b View commit details
    Browse the repository at this point in the history
  2. Make lifecycle tests independent of timing (testcontainers#1326)

    Calls to the lifecycle methods are now recorded in an ordered
    list that is then used to test the correct number and order
    of calls. This makes the test independent of timing.
    Unfortunately it's still required to execute tests in
    a deterministic order.
    
    For a better separation of test concerns
    tests for the lifecycle methods and exception
    capturing have been moved into separate
    test classes.
    roamingthings committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    6013273 View commit details
    Browse the repository at this point in the history
  3. Make mock now implements Startable (testcontainers#1326)

    There is no need to start a container since only
    the TestLifecycleAware is important.
    roamingthings committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    5de31c8 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2020

  1. Configuration menu
    Copy the full SHA
    cef26a3 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2020

  1. Add AssertJ dependency (testcontainers#1326)

    We want to use AssertJ for some tests.
    roamingthings committed Jan 19, 2020
    Configuration menu
    Copy the full SHA
    9abd4e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43ec440 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    856da3f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8689dda View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2020

  1. Configuration menu
    Copy the full SHA
    c93cebd View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2020

  1. Configuration menu
    Copy the full SHA
    605d46a View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2020

  1. Configuration menu
    Copy the full SHA
    d25dc8c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2fbdf85 View commit details
    Browse the repository at this point in the history
  3. Generate filesystem friendly name from display name (testcontainers#1326

    )
    
    Generating a filesystem friendly name in a Junit Jupiter test is a bit tricky.
    Since tests can be generated dynamically class and/or test method may not be available.
    The display name provided by the ExtensionContext on the other hand may use characters
    that are not filesystem safe.
    This approach removes all characters from the display name that are not in a restricted
    set of allowed characters. However this may lead to name clashes if two tests have a
    display name that only differs in characters that are removed from the display name.
    roamingthings committed Feb 29, 2020
    Configuration menu
    Copy the full SHA
    6f4f83a View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2020

  1. Configuration menu
    Copy the full SHA
    8297f42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    261e470 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2020

  1. Configuration menu
    Copy the full SHA
    9690e50 View commit details
    Browse the repository at this point in the history