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 Improvement
    • Status: Closed Closed
    • Priority: Major 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
    • Similar issues:
      KULRICE-1299Create Annotations for Unit Test SQL
      KULRICE-1433Fix the unit tests so they can be run locally
      KULRICE-8846Update JUnit to 4.11 to be able to specify the order the test run in, since JDK7 randomizes order
      KULRICE-1300Create new lifecycles to run the new unit test annotations
      KULRICE-1708Review potential changes/bug fixes to Unit Test Annotation method for loading data
      KULRICE-3896KNS Unit Test BOs need to be JPA annotated
      KULRICE-4078Add LOG.isDebugEnabled around LOG.debug statements that call XmlHelper.jotNode
      KULRICE-10415ViewIndexTest.testClearIndexesAfterRender unit test failure
      KULRICE-383Finish implementing lazy loading of DD files; fix up unit tests
      KULRICE-8818Provide a way for components to add data generically to the form

      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.

        Activity

        Hide
        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
        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:
            Nate Johnson (Inactive)
            Reporter:
            Nate Johnson (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel