@isTest
private class RepairAgainAnHandlerTest {
    @isTest static void testmethod_1(){

        RepairAgainAn__c ra = new RepairAgainAn__c();
        ra.Name = 'TestRa';
        ra.Dectect_Picture1__c = '<img src="http://www.google.co.jp/img1" />';
        ra.Dectect_Picture2__c = '<img src="http://www.google.co.jp/img2" />';
        ra.OSH_Dectect_Picture1__c = '<img src="http://www.google.co.jp/img3" />';
        ra.OSH_Dectect_Picture2__c = '<img src="http://www.google.co.jp/img4" />';
        ra.OSH_Dectect_Picture3__c = '<img src="http://www.google.co.jp/img5" />';
        ra.OSH_Dectect_Picture4__c = '<img src="http://www.google.co.jp/img6" />';
        insert ra;

        ra.Dectect_Picture1__c = '<img src="http://www.google.co.jp/img2" />';
        update ra;

        ra = [select Dectect_Picture1_URL__c, Dectect_Picture2_URL__c, OSH_Dectect_Picture1_URL__c, OSH_Dectect_Picture2_URL__c, 
                OSH_Dectect_Picture3_URL__c, OSH_Dectect_Picture4_URL__c from RepairAgainAn__c where Id = :ra.Id];
    }
    
    @isTest static void testmethod_2(){
        RepairAgainAn__c ra = new RepairAgainAn__c();
        ra.Name = 'TestRa2';
        insert ra;

        ra.RepairAgain_Status__c='草案中';
        update ra;
        ra.RepairAgain_Status__c='RC填写完毕';
        update ra;
        ra.RepairAgain_Status__c='OSH受理';
        update ra;
        ra.RepairAgain_Status__c='OSH填写完毕';
        update ra;
        ra.JudgementOSH__c='质量原因';
        ra.AnalysisOSH__c='f';
        ra.AnalysisReasonOSH__c='f';
        ra.ActionOSH__c='无偿维修';
        update ra;
        ra.AnalysisOCM__c='f';
        ra.ActionOCM__c='无偿维修';
        ra.Technical_Responsibility__c='00510000006klDyAAI';
        ra.OCM_Confirmer__c='00510000006klDyAAI';
        update ra;
        ra.RepairAgain_Status__c='完毕';
        update ra;
    }
}