Class DalQueryTest


  • public class DalQueryTest
    extends OBBaseTest
    Test different parts of the dal api: OBDal, OBCriteria and OBQuery. Note the testcases assume that they are run in the order defined in this class.
    Author:
    mtaal
    • Constructor Detail

      • DalQueryTest

        public DalQueryTest()
    • Method Detail

      • testADalFirstWhereLeftJoinClause

        public void testADalFirstWhereLeftJoinClause()
        Tests a left join with ModelImplementation as the main class.
      • testBDalExtraJoinWhereLeftJoinClause

        public void testBDalExtraJoinWhereLeftJoinClause()
        Tests a left join with ModelImplementation as the main class.
      • testCDalWhereLeftJoinClause

        public void testCDalWhereLeftJoinClause()
        Tests a left join with ModelImplementation as the main class.
      • testDDalOtherWhereLeftJoinClause

        public void testDDalOtherWhereLeftJoinClause()
        Tests a left join with ModelImplementation as the main class.
      • testEDalAnOtherWhereLeftJoinClause

        public void testEDalAnOtherWhereLeftJoinClause()
        Tests a left join with ModelImplementation as the main class.
      • testFCreateBPGroup

        public void testFCreateBPGroup()
        Test creates a new Category and saves it. The new object is removed in the next test.
      • testGRemoveBPGroup

        public void testGRemoveBPGroup()
        Test queries for the created Category and removes it.
      • testHCheckBPGroupRemoved

        public void testHCheckBPGroupRemoved()
        Check that the Category was indeed removed.
      • testIUpdateCurrencyByUser

        public void testIUpdateCurrencyByUser()
        Tests queries for a currency and then updates it. The test should fail as the user does not have update authorisation.
      • testJTransaction25PageRead

        public void testJTransaction25PageRead()
        Tests a paged read of transactions and print of the identifier. The identifier of a transaction has been implemented such that it reads all the references (which are non-null) and uses their identifier to create the identifier of the transaction. The test sorts on product.name.