Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-1296

Add an ordering component to the unit test annotations for statements and files

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2, Core - 0.9.2
    • Fix Version/s: 0.9.2, Core - 0.9.2
    • Component/s: Development
    • Labels:
      None

      Description

      The annotations currently always run the individual sql statements before the files of statements. Add an annotation so that the developer can order these.

        Attachments

          Activity

          Hide
          natjohns Nate Johnson (Inactive) added a comment -

          Done. Here is an example:

          @PerTestUnitTestData(
          @UnitTestData(
          order =

          { UnitTestData.Type.SQL_FILES, UnitTestData.Type.SQL_STATEMENTS }

          ,
          sqlStatements =

          { @UnitTestSql("select 1 from dual"), @UnitTestSql("select 1 from dual") }

          ,
          sqlFiles =

          {@UnitTestFile(filename = "classpath:UselessTest.sql", delimiter = "/")}

          ))

          Full docs here:
          https://test.kuali.org/confluence/x/9fo

          Show
          natjohns Nate Johnson (Inactive) added a comment - Done. Here is an example: @PerTestUnitTestData( @UnitTestData( order = { UnitTestData.Type.SQL_FILES, UnitTestData.Type.SQL_STATEMENTS } , sqlStatements = { @UnitTestSql("select 1 from dual"), @UnitTestSql("select 1 from dual") } , sqlFiles = {@UnitTestFile(filename = "classpath:UselessTest.sql", delimiter = "/")} )) Full docs here: https://test.kuali.org/confluence/x/9fo

            People

            • Assignee:
              natjohns Nate Johnson (Inactive)
              Reporter:
              natjohns Nate Johnson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: