@isTest
private class BringQuantityHandlerTest{

    static testMethod void initTest() {

        Product2 pro1 = new Product2(
            Name='name01',
            IsActive=true,
            Asset_Model_No__c='n01',
            MDM_Model_No__c='n01',
            ProductCode_Ext__c='pc01',
            ProductCode = 'pc01',
            Manual_Entry__c=false,
            SFDA_Status__c='有効'
        );
        insert pro1;

        Product2 pro2 = new Product2(
            Name='name02',
            IsActive=true,
            Asset_Model_No__c='n02',
            MDM_Model_No__c='n02',
            ProductCode_Ext__c='pc02',
            ProductCode = 'pc02',
            Manual_Entry__c=false,
            SFDA_Status__c='有効'
        );
        insert pro2;

        BringQuantityPurchaseRecord__c bqp = new BringQuantityPurchaseRecord__c();
        bqp.ProductNumber__c = 'pc01';
        insert bqp;

        bqp.ProductNumber__c = 'pc02';
        update bqp;

    }

}