@isTest
|
public with sharing class SidebarControllerTest {
|
public SidebarControllerTest() {
|
|
}
|
@IsTest(SeeAllData=true)
|
static void testCallOut1(){
|
// Report rt = new Report();
|
// rt.DeveloperName = 'ProductReport';
|
// insert rt;
|
List<Report> repairList = [select DeveloperName from Report where DeveloperName !='' limit 1];
|
Test.startTest();
|
SidebarController sd = new SidebarController();
|
System.debug('testCallOut1 repairList : ' + repairList);
|
sd.DeveloperName = repairList[0].DeveloperName;
|
|
// DeveloperName = repairList[0].DeveloperName;
|
sd.toURL();
|
sd.init();
|
// SidebarController.toURL();
|
// SidebarController.init();
|
Test.stopTest();
|
}
|
|
@IsTest
|
static void testCallOut2(){
|
Test.startTest();
|
SidebarController sd = new SidebarController();
|
sd.toURL();
|
// sd.init();
|
Test.stopTest();
|
}
|
}
|