@isTest
|
private class RepairAgainAnHandlerTest {
|
static testMethod 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 = [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];
|
System.assertNotEquals(null, ra.Dectect_Picture1_URL__c);
|
System.assertNotEquals(null, ra.Dectect_Picture2_URL__c);
|
System.assertNotEquals(null, ra.OSH_Dectect_Picture1_URL__c);
|
System.assertNotEquals(null, ra.OSH_Dectect_Picture2_URL__c);
|
System.assertNotEquals(null, ra.OSH_Dectect_Picture3_URL__c);
|
System.assertNotEquals(null, ra.OSH_Dectect_Picture4_URL__c);
|
}
|
}
|