OFBiz
  1. OFBiz
  2. OFBIZ-1463

JUnit test case for various application components

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      Bug Crush Event - 21/2/2015

      Description

      This is an effort to create JUnit test suites for various bussiness processes in Ofbiz.
      It would be good to have such tests in place so that we can test Ofbiz on a certain day.

      These tests are in initial stage, so I would like community members to post there comments so that we can move
      ahead with them to make these test even better.

        Issue Links

        1.
        JUnit test case for Creating a Purchase Order Sub-task Closed Marco Risaliti
         
        2.
        JUnit Test Case fro "Receive Other Shipment" Sub-task Closed Marco Risaliti
         
        3.
        JUnit Test Case for "Physical Inventory Adjustment" Sub-task Closed Marco Risaliti
         
        4.
        JUNIT test case for finding and editing a party(DemoCustomer) Sub-task Closed Vikas Mayur
         
        5.
        JUNIT test case for party communication Sub-task Closed Marco Risaliti
         
        6.
        JUnit test case for Creating a Sales Order Sub-task Closed Vikas Mayur
         
        7.
        JUnit Test Case for Stock Moves Sub-task Closed Vikas Mayur
         
        8.
        JUnit Test Case for Inventory Items Transfer Sub-task Closed Vikas Mayur
         
        9.
        JUnit Test case for Receive Inventory. Sub-task Closed Marco Risaliti
         
        10. JUnit Test case for update and return order. Sub-task Open Unassigned
         
        11. Credits, Refunds... Sub-task Open Unassigned
         
        12. Fulfillment with Picker & Packer Roles : Order Picking Sub-task Open Unassigned
         
        13.
        Fulfillment with Picker & Packer Roles : Packing and Shipping Sub-task Closed Vikas Mayur
         
        14.
        Marketing Manager Role : Create and Maintain Contact Lists Sub-task Closed Vikas Mayur
         
        15. Warehouse Manager Role : Receive Purchase Order Sub-task Open Unassigned
         
        16.
        JUnit Test Case for "Shipment process" Sub-task Closed Vikas Mayur
         
        17.
        Junit Test case for purchase order receipts... Sub-task Closed Jacques Le Roux
         
        18.
        Junit test case for Purchase Invoices: editing, adding taxes and shipping charges and posting to GL... Sub-task Closed Vikas Mayur
         
        19.
        Junit test case for Payments sent to suppliers for Purchase Invoices.... Sub-task Closed Vikas Mayur
         
        20.
        Junit tesr case for sales order shipments... Sub-task Closed Vikas Mayur
         
        21.
        Junit test case for generate a sales invoice ... Sub-task Closed Vikas Mayur
         
        22.
        Junit test case for Payments received from customers for Sales Invoices... Sub-task Closed Vikas Mayur
         
        23.
        Junit Test case for Manufacturing :- Production Runs: materials issuances from the warehouse Sub-task Closed Vikas Mayur
         
        24.
        Junit test case for Manufacturing :- Production Runs: actual manufacturing costs Sub-task Closed Vikas Mayur
         
        25.
        Junit Test case Manufacturing :- Production Runs: Add finished products into the warehouse Sub-task Closed Vikas Mayur
         
        26.
        Junit tests for the AR Batch Payments Sub-task Closed Anil K Patel
         
        27.
        Junit test case for Accounting - Void Payment and Cancel Invoice services. Sub-task Closed Ashish Vijaywargiya
         
        28.
        (Accounting - AP)Junit test case to test the service which creates payment group for given invoices along with its payment and application. Sub-task Closed Ashish Vijaywargiya
         
        29.
        (Accounting - AP)Junit test case to test the service which will cancle the issued check group(PaymentGroup with type CHECK_RUN). Sub-task Closed Ashish Vijaywargiya
         
        30.
        Junit test for the "depositWithdrawPayments" Sub-task Closed Anil K Patel
         
        31.
        (Accounting) Junit test case for servic - setFinAccountTransStatus. Sub-task Closed Anil K Patel
         
        32.
        Accounting - Void Payment and Check Run. Sub-task Closed Anil K Patel
         
        33.
        Accounting - Cancel Invoice and Cancel Chck Run. Sub-task Closed Ashish Vijaywargiya
         
        34.
        Introduce unit tests to the start component Sub-task Closed Taher Alkhateeb
         
        35.
        Unit test case for service - createPartyGroup Sub-task Closed Nicolas Malin
         
        36.
        Unit test case for service - createProduct Sub-task Closed Deepak Dixit
         
        37.
        Unit test case for service - createPartyAcctgPreference Sub-task Closed Deepak Dixit
         
        38.
        Unit test case for service - updatePartyAcctgPreference Sub-task Closed Deepak Dixit
         
        39.
        Unit test case for service - getPartyAccountingPreferences Sub-task Closed Deepak Dixit
         
        40.
        Unit test case for service - setAcctgCompany Sub-task Closed Deepak Dixit
         
        41.
        Unit test case for service - updateFXConversion Sub-task Closed Deepak Dixit
         
        42. Unit test case for service - createDataCategory Sub-task Open Unassigned
         
        43. Unit test case for service - updateDataCategory Sub-task Open Unassigned
         
        44. Unit test case for service - removeDataCategory Sub-task Open Unassigned
         
        45. Unit test case for service - getDataResource Sub-task Patch Available Unassigned
         
        46. Unit test case for service - createDataResourceRole Sub-task Open Unassigned
         
        47. Unit test case for service - updateDataResourceRole Sub-task Open Unassigned
         
        48. Unit test case for service - removeDataResourceRole Sub-task Open Unassigned
         
        49. Unit test case for service - createEmailContent Sub-task Open Unassigned
         
        50. Unit test case for service - updateEmailContent Sub-task Open Unassigned
         
        51. Unit test case for service - createSimpleTextContent Sub-task Open Unassigned
         
        52.
        Unit test case for service - updateProduct Sub-task Closed Deepak Dixit
         
        53.
        Unit test case for service - sendOrderConfirmation Sub-task Closed Deepak Dixit
         
        54.
        Unit test case for service - copyPartyContactMechs Sub-task Closed Deepak Dixit
         
        55.
        Unit test case for service - createCommunicationEvent Sub-task Closed Deepak Dixit
         
        56.
        Unit test case for service - createCommunicationEventRole Sub-task Closed Deepak Dixit
         
        57.
        Unit test case for service - createCommunicationEventRoleWithoutPermission Sub-task Closed Deepak Dixit
         
        58.
        Unit test case for service - createCommunicationEventWithoutPermission Sub-task Closed Deepak Dixit
         
        59.
        Unit test case for service - createContactMech Sub-task Closed Deepak Dixit
         
        60.
        Unit test case for service - createEmailAddress Sub-task Closed Deepak Dixit
         
        61.
        Unit test case for service - createPartyContactMech Sub-task Closed Deepak Dixit
         
        62.
        Unit test case for service - createPartyContactMechPurpose Sub-task Closed Deepak Dixit
         
        63.
        Unit test case for service - createPartyDataSource Sub-task Closed Deepak Dixit
         
        64.
        Unit test case for service - createPartyEmailAddress Sub-task Closed Deepak Dixit
         
        65.
        Unit test case for service - createPartyIdentifications Sub-task Closed Deepak Dixit
         
        66.
        Unit test case for service - createPartyNote Sub-task Closed Deepak Dixit
         
        67. Unit test case for service - createPartyPostalAddress Sub-task Open Unassigned
         
        68.
        Unit test case for service - createPartyRelationship Sub-task Closed Deepak Dixit
         
        69.
        Unit test case for service - createPartyRelationshipAndRole Sub-task Closed Deepak Dixit
         
        70.
        Unit test case for service - createPartyRelationshipContactAccount Sub-task Closed Deepak Dixit
         
        71.
        Unit test case for service - createPartyRelationshipType Sub-task Closed Deepak Dixit
         
        72.
        Unit test case for service - createPartyTelecomNumber Sub-task Closed Deepak Dixit
         
        73.
        Unit test case for service - createPersonAndUserLogin Sub-task Closed Deepak Dixit
         
        74.
        Unit test case for service - createPostalAddress Sub-task Closed Deepak Dixit
         
        75.
        Unit test case for service - createGlAccountTypeDefault Sub-task Closed Deepak Dixit
         
        76.
        Unit test case for service - createRoleType Sub-task Closed Deepak Dixit
         
        77.
        Unit test case for service - removeGlAccountTypeDefault Sub-task Closed Deepak Dixit
         
        78.
        Unit test case for service - addInvoiceItemTypeGlAssignment Sub-task Closed Deepak Dixit
         
        79.
        Unit test case for service - removeInvoiceItemTypeGlAssignment Sub-task Closed Deepak Dixit
         
        80.
        Unit test case for service - addPaymentTypeGlAssignment Sub-task Closed Deepak Dixit
         
        81.
        Add Party Test case data Sub-task Closed Deepak Dixit
         
        82. Unit test case for service - updateSimpleTextContent Sub-task Open Unassigned
         
        83. Unit test case for service - createTopic Sub-task Open Unassigned
         
        84. Unit test case for service - checkContentAssocIds Sub-task Open Unassigned
         
        85.
        Unit test case for service - createTelecomNumber Sub-task Closed Deepak Dixit
         
        86.
        Unit test case for service - createUpdatePartyRelationshipAndRoles Sub-task Closed Deepak Dixit
         
        87.
        Unit test case for service - deleteCommunicationEvent Sub-task Closed Deepak Dixit
         
        88.
        Unit test case for service - deleteCommunicationEventWorkEffort Sub-task Closed Deepak Dixit
         
        89.
        Unit test case for service - deletePartyContactMechPurpose Sub-task Closed Deepak Dixit
         
        90.
        Unit test case for service - deletePartyContactMechPurposeIfExists Sub-task Closed Deepak Dixit
         
        91. Unit test case for service - getContent Sub-task Open Unassigned
         
        92.
        Unit test case for service - deletePartyRelationship Sub-task Closed Deepak Dixit
         
        93.
        Unit test case for service - deletePartyRole Sub-task Closed Deepak Dixit
         
        94.
        Unit test case for service - findPartiesById Sub-task Closed Deepak Dixit
         
        95.
        Unit test case for service - findPartyFromEmailAddress Sub-task Closed Deepak Dixit
         
        96.
        Unit test case for service - findPartyFromTelephone Sub-task Closed Deepak Dixit
         
        97.
        Unit test case for service - findPartyFromTelephoneComplete Sub-task Closed Deepak Dixit
         
        98.
        Unit test case for service - removeCommunicationEventRole Sub-task Closed Deepak Dixit
         
        99.
        Unit test case for service - setCommEventComplete Sub-task Closed Deepak Dixit
         
        100.
        Unit test case for service - setCommunicationEventRoleStatus Sub-task Closed Deepak Dixit
         
        101.
        Unit test case for service - setCommEventRoleToRead Sub-task Closed Deepak Dixit
         
        102.
        Unit test case for service - setCommunicationEventStatus Sub-task Closed Deepak Dixit
         
        103.
        Unit test case for service - updateCommunicationEvent Sub-task Closed Deepak Dixit
         
        104.
        Unit test case for service - updateCommunicationEventRole Sub-task Closed Deepak Dixit
         
        105.
        Unit test case for service - updateContactMech Sub-task Closed Deepak Dixit
         
        106.
        Unit test case for service - updateEmailAddress Sub-task Closed Deepak Dixit
         
        107.
        Unit test case for service - updatePartyEmailAddress Sub-task Closed Deepak Dixit
         
        108.
        Unit test case for service - updatePartyGroup Sub-task Closed Deepak Dixit
         
        109.
        Unit test case for service - updatePartyPostalAddress Sub-task Closed Deepak Dixit
         
        110.
        Unit test case for service - updatePartyRelationship Sub-task Closed Deepak Dixit
         
        111.
        Unit test case for service - updatePartyTelecomNumber Sub-task Closed Deepak Dixit
         
        112.
        Unit test case for service - updatePerson Sub-task Closed Deepak Dixit
         
        113.
        Unit test case for service - updatePostalAddress Sub-task Closed Deepak Dixit
         
        114.
        Unit test case for service - updateTelecomNumber Sub-task Closed Deepak Dixit
         
        115.
        Unit test case for service - duplicateProduct Sub-task Closed Deepak Dixit
         
        116.
        Unit test case for service - deleteProductKeywords Sub-task Closed Deepak Dixit
         
        117.
        Unit test case for service - createProductReview Sub-task Closed Deepak Dixit
         
        118.
        Unit test case for service - updateProductReview Sub-task Closed Deepak Dixit
         
        119.
        Unit test case for service - createProductPrice Sub-task Closed Deepak Dixit
         
        120.
        Unit test case for service - updateProductPrice Sub-task Closed Deepak Dixit
         
        121.
        Unit test case for service - deleteProductPrice Sub-task Closed Deepak Dixit
         
        122.
        Unit test case for service - createProductCategory Sub-task Closed Deepak Dixit
         
        123. Unit test case for service - updateProductCategory Sub-task Patch Available Unassigned
         
        124. Unit test case for service - deleteProductCategory Sub-task Open Unassigned
         
        125.
        Unit test case for service - removePaymentTypeGlAssignment Sub-task Closed Deepak Dixit
         
        126.
        Unit test case for service - addPaymentMethodTypeGlAssignment Sub-task Closed Deepak Dixit
         
        127.
        Unit test case for service - removePaymentMethodTypeGlAssignment Sub-task Closed Deepak Dixit
         
        128.
        Unit test case for service - getFXConversion Sub-task Closed Deepak Dixit
         
        129.
        Unit test case for service - createWorkEffortAndPartyAssign Sub-task Closed Deepak Dixit
         
        130.
        Unit test case for service - getPartyEmail Sub-task Closed Deepak Dixit
         
        131.
        Unit test case for service - createAffiliate Sub-task Closed Deepak Dixit
         
        132.
        Unit test case for service - updateAffiliate Sub-task Closed Deepak Dixit
         
        133.
        Unit test case for service - getPartyMainRole Sub-task Closed Deepak Dixit
         
        134.
        Unit test case for service - getPartyTelephone Sub-task Closed Deepak Dixit
         
        135.
        Unit test case for service - quickCreateCustomer Sub-task Closed Deepak Dixit
         
        136.
        Unit test case for service - createAddressMatchMap Sub-task Closed Deepak Dixit
         
        137.
        Unit test case for service - removeAddressMatchMap Sub-task Closed Deepak Dixit
         
        138.
        Unit test case for service - createPartyInvitation Sub-task Closed Deepak Dixit
         
        139.
        Unit test case for service - updatePartyInvitation Sub-task Closed Deepak Dixit
         
        140.
        Unit test case for service - deletePartyInvitation Sub-task Closed Deepak Dixit
         
        141.
        Unit test case for service - getPartyPostalAddress Sub-task Closed Deepak Dixit
         
        142.
        Unit test case for service - createPartyContactMechPurpose Sub-task Closed Deepak Dixit
         
        143.
        Unit test case for service - createEmailAddressVerification Sub-task Closed Deepak Dixit
         
        144.
        Unit test case for service - createPartyInvitationRoleAssoc Sub-task Closed Deepak Dixit
         
        145. Unit test case for service - createPostalAddressAndPurposes Sub-task Open Unassigned
         
        146.
        Unit test case for service - deletePartyInvitationRoleAssoc Sub-task Closed Deepak Dixit
         
        147.
        Unit test case for service - updatePostalAddressAndPurposes Sub-task Closed Deepak Dixit
         
        148.
        Unit test case for service - createPartyInvitationGroupAssoc Sub-task Closed Deepak Dixit
         
        149.
        Unit test case for service - deletePartyInvitationGroupAssoc Sub-task Closed Deepak Dixit
         
        150.
        Unit test case for service - clearAddressMatchMap Sub-task Closed Deepak Dixit
         
        151.
        Unit test case for service - quickAddVariant Sub-task Closed Deepak Dixit
         
        152.
        Unit test case for service - discontinueProductSales Sub-task Closed Deepak Dixit
         
        153.
        Unit test case for service - findProductById Sub-task Closed Deepak Dixit
         
        154.
        Unit test case for service - lookupParty Sub-task Closed Deepak Dixit
         
        155.
        Add Workeffort and Timesheet Test case data Sub-task Closed Deepak Dixit
         
        156.
        Unit test case for service - deleteWorkEffort Sub-task Closed Deepak Dixit
         
        157.
        Unit test case for service - copyWorkEffort Sub-task Closed Deepak Dixit
         
        158.
        Unit test case for service - duplicateWorkEffort Sub-task Closed Deepak Dixit
         
        159.
        Unit test case for service - makeCommunicationEventWorkEffort Sub-task Closed Deepak Dixit
         
        160.
        Unit test case for service - assignPartyToWorkEffort Sub-task Closed Deepak Dixit
         
        161.
        Unit test case for service - updatePartyToWorkEffortAssignment Sub-task Closed Deepak Dixit
         
        162.
        Unit test case for service - deletePartyToWorkEffortAssignment Sub-task Closed Deepak Dixit
         
        163.
        Unit test case for service - quickAssignPartyToWorkEffort Sub-task Closed Deepak Dixit
         
        164.
        Unit test case for service - quickAssignPartyToWorkEffortWithRole Sub-task Closed Deepak Dixit
         
        165.
        Unit test case for service - createWorkEffortNote Sub-task Closed Deepak Dixit
         
        166.
        Unit test case for service - updateWorkEffortNote Sub-task Closed Deepak Dixit
         
        167.
        Unit test case for service - getWorkEffort Sub-task Closed Deepak Dixit
         
        168.
        Unit test case for service - createWorkEffortAssoc Sub-task Closed Deepak Dixit
         
        169.
        Unit test case for service - copyWorkEffortAssocs Sub-task Closed Deepak Dixit
         
        170.
        Unit test case for service - createWorkEffortKeyword Sub-task Closed Deepak Dixit
         
        171.
        Unit test case for service - deleteWorkEffortKeyword Sub-task Closed Deepak Dixit
         
        172.
        Unit test case for service - deleteWorkEffortKeywords Sub-task Closed Deepak Dixit
         
        173.
        Unit test case for service - createTimesheet Sub-task Closed Deepak Dixit
         
        174.
        Unit test case for service - updateTimesheetToInProcess Sub-task Closed Deepak Dixit
         
        175.
        Unit test case for service - updateTimesheet Sub-task Closed Deepak Dixit
         
        176.
        Unit test case for service - deleteTimesheet Sub-task Closed Deepak Dixit
         
        177.
        Unit test case for service - createTimesheets Sub-task Closed Deepak Dixit
         
        178.
        Unit test case for service - createTimesheetForThisWeek Sub-task Closed Deepak Dixit
         
        179.
        Unit test case for service - addTimesheetToNewInvoice Sub-task Closed Deepak Dixit
         
        180.
        Unit test case for service - createTimeEntry Sub-task Closed Deepak Dixit
         
        181.
        Unit test case for service - updateTimeEntry Sub-task Closed Deepak Dixit
         
        182.
        Unit test case for service - deleteTimeEntry Sub-task Closed Deepak Dixit
         
        183.
        Unit test case for service - getTimeEntryRate Sub-task Closed Deepak Dixit
         
        184.
        Unit test case for service - unlinkInvoiceFromTimeEntry Sub-task Closed Deepak Dixit
         
        185.
        Unit test case for service - cancelAgreement Sub-task Closed Deepak Dixit
         
        186.
        Unit test case for service - copyAgreement Sub-task Closed Deepak Dixit
         
        187.
        Unit test case for service - getCommissionForProduct Sub-task Closed Deepak Dixit
         
        188.
        Add Rate Test case data Sub-task Closed Deepak Dixit
         
        189.
        Unit test case for service - createBudget Sub-task Closed Deepak Dixit
         
        190.
        Unit test case for service - updateBudgetStatus Sub-task Closed Deepak Dixit
         
        191.
        Unit test case for service - updateProductAverageCostOnReceiveInventory Sub-task Closed Deepak Dixit
         
        192.
        Unit test case for service - getProductAverageCost Sub-task Closed Deepak Dixit
         
        193.
        Unit test case for service - getRateAmount Sub-task Closed Deepak Dixit
         
        194.
        Unit test case for service - deleteRateAmount Sub-task Closed Deepak Dixit
         
        195.
        Unit test case for service - updateRateAmount Sub-task Closed Deepak Dixit
         
        196.
        Unit test case for service - getRatesAmountsFromWorkEffortId Sub-task Closed Deepak Dixit
         
        197.
        Unit test case for service - getRatesAmountsFromPartyId Sub-task Closed Deepak Dixit
         
        198.
        Unit test case for service - getRatesAmountsFromEmplPositionTypeId Sub-task Closed Deepak Dixit
         
        199.
        Unit test case for service - updatePartyRate Sub-task Closed Deepak Dixit
         
        200.
        Unit test case for service - deletePartyRate Sub-task Closed Deepak Dixit
         
        201.
        Unit test case for service - filterRateAmountList Sub-task Closed Deepak Dixit
         
        202. JUnit test case for Creating a Retrun Header Sub-task Patch Available Unassigned
         
        203. Unit test case for service - quickReturnOrder Sub-task Patch Available Unassigned
         
        204. Unit test case for service - SendOrderBackorderNotification Sub-task Patch Available Unassigned
         
        205. Unit test case for service - sendOrderChangeNotification Sub-task Patch Available Unassigned
         
        206. Unit test case for service - sendOrderCompleteNotification Sub-task Patch Available Unassigned
         
        207. Unit test case for service - sendOrderPayRetryNotification Sub-task Patch Available Unassigned
         
        208.
        Unit test case for service - createFinAccount Sub-task Closed Deepak Dixit
         
        209.
        Unit test case for service - updateFinAccount Sub-task Closed Deepak Dixit
         
        210.
        Unit test case for service - deleteFinAccount Sub-task Closed Deepak Dixit
         
        211.
        Unit test case for service - createFinAccountStatus Sub-task Closed Deepak Dixit
         
        212.
        Unit test case for service - createFinAccountTrans Sub-task Closed Deepak Dixit
         
        213.
        Unit test case for service - createFinAccountRole Sub-task Closed Deepak Dixit
         
        214.
        Unit test case for service - updateFinAccountRole Sub-task Closed Deepak Dixit
         
        215.
        Unit test case for service - deleteFinAccountRole Sub-task Closed Deepak Dixit
         
        216.
        Unit test case for service - createFinAccountAuth Sub-task Closed Deepak Dixit
         
        217.
        Unit test case for service - setFinAccountTransStatus Sub-task Closed Deepak Dixit
         
        218.
        Unit test case for service - cancelFixedAssetStdCost Sub-task Closed Deepak Dixit
         
        219.
        Unit test case for service - createFixedAssetMaint Sub-task Closed Deepak Dixit
         
        220.
        Unit test case for service - createFixedAssetMeter Sub-task Closed Deepak Dixit
         
        221. Unit test case for service - CheckPaymentAmountForRefund Sub-task Patch Available Unassigned
         
        222. Unit test case for service - CheckReturnComplete Sub-task Patch Available Unassigned
         
        223.
        Unit test case for service - CreateOrderDeliverySchedule Sub-task Closed Deepak Dixit
         
        224.
        Unit test case for service - CreateOrderItemChange Sub-task Closed Deepak Dixit
         
        225.
        Unit test case for service - CreateOrderPaymentApplication Sub-task Closed Deepak Dixit
         
        226. Unit test case for service - CreateReturnAdjustment Sub-task Patch Available Unassigned
         
        227. Unit test case for service - CreateReturnAndItemOrAdjustment Sub-task Patch Available Unassigned
         
        228. Unit test case for service - CreateReturnItemShipment Sub-task Patch Available Unassigned
         
        229. Unit test case for service - CreateReturnStatus Sub-task Patch Available Unassigned
         
        230. Unit test case for service - GetReturnAmountByOrder Sub-task Patch Available Unassigned
         
        231. Unit test case for service - GetReturnItemInitialCost Sub-task Patch Available Unassigned
         
        232. Unit test case for service - ProcessCreditReturn Sub-task Patch Available Unassigned
         
        233. Unit test case for service - ProcessCrossShipReplacementReturn Sub-task Patch Available Unassigned
         
        234. Unit test case for service - ProcessRefundImmediatelyReturn Sub-task Patch Available Unassigned
         
        235. Unit test case for service - ProcessRefundOnlyReturn Sub-task Patch Available Unassigned
         
        236. Unit test case for service - ProcessRefundReturn Sub-task Patch Available Unassigned
         
        237. Unit test case for service - ProcessRefundReturnForReplacement Sub-task Patch Available Unassigned
         
        238. Unit test case for service - ProcessRepairReplacementReturn Sub-task Patch Available Unassigned
         
        239. Unit test case for service - ProcessReplaceImmediatelyReturn Sub-task Patch Available Unassigned
         
        240. Unit test case for service - ProcessReplacementReturn Sub-task Patch Available Unassigned
         
        241. Unit test case for service - ProcessSubscriptionReturn Sub-task Patch Available Unassigned
         
        242. Unit test case for service - ProcessWaitReplacementReservedReturn Sub-task Patch Available Unassigned
         
        243. Unit test case for service - ProcessWaitReplacementReturn Sub-task Patch Available Unassigned
         
        244.
        Unit test case for service - createInvoice Sub-task Closed Deepak Dixit
         
        245.
        Unit test case for service - copyInvoice Sub-task Closed Deepak Dixit
         
        246.
        Unit test case for service - getInvoice Sub-task Closed Deepak Dixit
         
        247.
        Unit test case for service - setInvoiceStatus Sub-task Closed Deepak Dixit
         
        248.
        Unit test case for service - copyInvoiceToTemplate Sub-task Closed Deepak Dixit
         
        249.
        Unit test case for service - createInvoiceItem Sub-task Closed Deepak Dixit
         
        250.
        Unit test case for service - createInvoiceStatus Sub-task Closed Deepak Dixit
         
        251.
        Unit test case for service - createInvoiceRole Sub-task Closed Deepak Dixit
         
        252.
        Unit test case for service - createInvoiceTerm Sub-task Closed Deepak Dixit
         
        253.
        Unit test case for service - cancelInvoice Sub-task Closed Deepak Dixit
         
        254. Unit test case for service - AddRequirementTask Sub-task Patch Available Unassigned
         
        255. Unit test case for service - createInvoiceContent Sub-task Patch Available Unassigned
         
        256. Unit test case for service - AssociatedRequirementWithRequestItem Sub-task Patch Available Unassigned
         
        257. Unit test case for service - AutoAssignRequirementToSupplier Sub-task Patch Available Unassigned
         
        258. Unit test case for service - CheckCreateOrderRequirement Sub-task Patch Available Unassigned
         
        259. Unit test case for service - createSimpleTextContentForInvoice Sub-task Patch Available Unassigned
         
        260. Unit test case for service - CheckCreateProductRequirementForFacility Sub-task Patch Available Unassigned
         
        261. Unit test case for service - CheckCreateStockRequirementAtp Sub-task Patch Available Unassigned
         
        262. Unit test case for service - CheckCreateStockRequirementQoh Sub-task Patch Available Unassigned
         
        263.
        Unit test case for service - CopyCustRequestItem Sub-task Closed Deepak Dixit
         
        264.
        Unit test case for service - CopyQuoteItem Sub-task Closed Deepak Dixit
         
        265.
        Unit test case for service - CreateATPRequirementsForOrder Sub-task Closed Deepak Dixit
         
        266.
        Unit test case for service - CreateAutoRequirementsForOrder Sub-task Closed Deepak Dixit
         
        267.
        Unit test case for service - CreateCustRequestAttribute Sub-task Closed Deepak Dixit
         
        268.
        Unit test case for service - CreateCustRequestContent Sub-task Closed Deepak Dixit
         
        269.
        Unit test case for service - CreateCustRequestItem Sub-task Closed Deepak Dixit
         
        270.
        Unit test case for service - CreateCustRequestItemNote Sub-task Closed Deepak Dixit
         
        271.
        Unit test case for service - CreateCustRequestNote Sub-task Closed Deepak Dixit
         
        272.
        Unit test case for service - CreateCustRequestParty Sub-task Closed Deepak Dixit
         
        273.
        Unit test case for service - CreateCustRequestStatus Sub-task Closed Deepak Dixit
         
        274.
        Unit test case for service - CreateQuote Sub-task Closed Deepak Dixit
         
        275.
        Unit test case for service - CreateQuoteAttribute Sub-task Closed Deepak Dixit
         
        276.
        Unit test case for service - CreateQuoteRole Sub-task Closed Deepak Dixit
         
        277.
        Unit test case for service - CreateRequirement Sub-task Closed Deepak Dixit
         
        278.
        Unit test case for service - CreateRequirementFromItemATP Sub-task Closed Deepak Dixit
         
        279.
        Unit test case for service - CreateRequirementRole Sub-task Closed Deepak Dixit
         
        280. Unit test case for service - CustRequestPermissionCheck Sub-task Patch Available Unassigned
         
        281.
        Unit test case for service - GetCustRequestsByRole Sub-task Closed Deepak Dixit
         
        282.
        Unit test case for service - GetNextQuoteId Sub-task Closed Deepak Dixit
         
        283.
        Unit test case for service - GetRequirementsForSupplier Sub-task Closed Deepak Dixit
         
        284.
        Unit test case for service - SetCustRequestStatus Sub-task Closed Deepak Dixit
         
        285.
        Unit test case for service - CreateQuoteCoefficient Sub-task Closed Deepak Dixit
         
        286. Unit test case for service - createAcctgTrans Sub-task Patch Available Unassigned
         
        287. Unit test case for service - createAcctgTransEntry Sub-task Patch Available Unassigned
         
        288. Unit test case for service - createPayment Sub-task Patch Available Unassigned
         
        289. Unit test case for service - setPaymentStatus Sub-task Patch Available Unassigned
         
        290. Unit test case for service - quickSendPayment Sub-task Patch Available Unassigned
         
        291. Unit test case for service - addProductCategoryToCategory Sub-task Patch Available Unassigned
         
        292. Unit test case for service - createProductFeatureType Sub-task Patch Available Unassigned
         
        293. Unit test case for service - createProductConfigOption Sub-task Patch Available Unassigned
         
        294. Unit test case for service - getPayments Sub-task Patch Available Unassigned
         
        295. Unit test case for service - createPaymentContent Sub-task Patch Available Unassigned
         
        296. Unit test case for service - updatePaymentGatewayConfig Sub-task Patch Available Unassigned
         

          Activity

          Hide
          Vikas Mayur added a comment -

          Marco, you are most welcome to review and commit these patches.

          Show
          Vikas Mayur added a comment - Marco, you are most welcome to review and commit these patches.
          Hide
          Taher Alkhateeb added a comment -

          Hello everyone,

          It is important to note in here that the old OFBiz tests are really integration tests, not unit tests. Therefore, please note the following comments / recommendations:

          • If your test does not need a database or some environment context, then convert it to a unit test
          • Real unit tests are very fast, if it takes time (because of using external resources) then keep it as an integration test
          • Unit tests are automatically run everytime you call ./gradlew build or run any server commands.
          • Unit tests can be explicitly called by the command ./gradlew test
          • Recommend to keep the JUnit tests as pure junit (nothing OFBiz related)
          • Recommend using the annotations instead of starting each test name with test...
          • Highly recommend using ExpectedException and _assertThat(actual, expected) API over other older classical test methods.
          • You might need to create mock objects for your tests. This is where mockito might be helpful. I will propose something on the ML once I hit a test requirement to introduce it.

          I will create a Sub-JIRA to commit some tests for the Start component which you can use as a reference If you like to.

          Show
          Taher Alkhateeb added a comment - Hello everyone, It is important to note in here that the old OFBiz tests are really integration tests, not unit tests. Therefore, please note the following comments / recommendations: If your test does not need a database or some environment context, then convert it to a unit test Real unit tests are very fast, if it takes time (because of using external resources) then keep it as an integration test Unit tests are automatically run everytime you call ./gradlew build or run any server commands. Unit tests can be explicitly called by the command ./gradlew test Recommend to keep the JUnit tests as pure junit (nothing OFBiz related) Recommend using the annotations instead of starting each test name with test... Highly recommend using ExpectedException and _assertThat(actual, expected) API over other older classical test methods. You might need to create mock objects for your tests. This is where mockito might be helpful. I will propose something on the ML once I hit a test requirement to introduce it. I will create a Sub-JIRA to commit some tests for the Start component which you can use as a reference If you like to.
          Hide
          Jacques Le Roux added a comment -

          I know it's totally out of subject and certainly premature but should we not do that with http://junit.org/junit5/ in mind? Or even maybe play daredevils and use it already (after all it's trunk)?

          Show
          Jacques Le Roux added a comment - I know it's totally out of subject and certainly premature but should we not do that with http://junit.org/junit5/ in mind? Or even maybe play daredevils and use it already (after all it's trunk)?
          Hide
          Taher Alkhateeb added a comment -

          Hmmmmm, It is certainly doable with gradle. I think the technology is still beta and we are expected to make a release branch soon. Perhaps we can upgrade junit after the branch? As far as I know the syntax is very much the same and only new features are added such as the ability to use lambda expressions in assertions. So I think an upgrade is not difficult.

          Show
          Taher Alkhateeb added a comment - Hmmmmm, It is certainly doable with gradle. I think the technology is still beta and we are expected to make a release branch soon. Perhaps we can upgrade junit after the branch? As far as I know the syntax is very much the same and only new features are added such as the ability to use lambda expressions in assertions. So I think an upgrade is not difficult.
          Hide
          Pierre Smits added a comment - - edited

          We all know trunk can be a volatile branch and things can get broken from time to time, but that doesn't mean that is should be used as a testbed for some piece of 3rd party software the community has no experience with.

          That being said, why don't you do a Proof of Concept first in your own dev environment and share results with the community? So that it can look for follow-up actions.

          Show
          Pierre Smits added a comment - - edited We all know trunk can be a volatile branch and things can get broken from time to time, but that doesn't mean that is should be used as a testbed for some piece of 3rd party software the community has no experience with. That being said, why don't you do a Proof of Concept first in your own dev environment and share results with the community? So that it can look for follow-up actions.
          Hide
          Taher Alkhateeb added a comment - - edited

          Hello everyone, I've introduced unit tests to the start component in OFBIZ-7897 which helped me actually detect some minor errors in the code. If you wish you can use these tests as a reference of how to introduce unit tests utilizing gradle. These tests automatically run every time you call build, test, or run any of the server commands (upon any code change). If no change in the code is detected then the tests are cached and not run again (just like ant or any other build system)

          Show
          Taher Alkhateeb added a comment - - edited Hello everyone, I've introduced unit tests to the start component in OFBIZ-7897 which helped me actually detect some minor errors in the code. If you wish you can use these tests as a reference of how to introduce unit tests utilizing gradle. These tests automatically run every time you call build, test, or run any of the server commands (upon any code change). If no change in the code is detected then the tests are cached and not run again (just like ant or any other build system)

            People

            • Assignee:
              Unassigned
              Reporter:
              Vikas Mayur
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development

                  Agile