Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-227

Support Deployment exception assert

    Details

      Description

      For container / deployer / framework dev it is useful to be able to Assert on Deployment related issues.

      e.g. http://arquillian.pastebin.com/hPCh8yQd

        Gliffy Diagrams

          Activity

          Hide
          aslak Aslak Knutsen added a comment -

          The example show two different approches.

          1. Inject the deployment exception and let the user do normal Assertions on it

          2. Use the ExpectedException feature of the TestFramework

          Show
          aslak Aslak Knutsen added a comment - The example show two different approches. 1. Inject the deployment exception and let the user do normal Assertions on it 2. Use the ExpectedException feature of the TestFramework
          Hide
          aslak Aslak Knutsen added a comment -

          Since Deployments happen in @BeforeClass we don't have any instance to test against. We need to override the testframeworks method lookup to support 'static' test methods or just call them our selves. (The TestFrameworks probably need at least one method marked with @Test to run at all)

          Show
          aslak Aslak Knutsen added a comment - Since Deployments happen in @BeforeClass we don't have any instance to test against. We need to override the testframeworks method lookup to support 'static' test methods or just call them our selves. (The TestFrameworks probably need at least one method marked with @Test to run at all)
          Show
          aslak Aslak Knutsen added a comment - https://github.com/aslakknutsen/arquillian/tree/the_bigger_picture
          Hide
          aslak Aslak Knutsen added a comment -

          Faulty impl, does not assert if exception is not thrown

          Show
          aslak Aslak Knutsen added a comment - Faulty impl, does not assert if exception is not thrown
          Hide
          aslak Aslak Knutsen added a comment -

          pushed upstream master.

          Show
          aslak Aslak Knutsen added a comment - pushed upstream master.

            People

            • Assignee:
              aslak Aslak Knutsen
              Reporter:
              aslak Aslak Knutsen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development