controller - List has no rows for assignment to SObject Test class error -


I'm an Apex novice, need help with Apex Test Class. With the public: the controller class works well, but I can not find a way to repeat this in a test class without any error here is the actual controller class "list SObject There is no line for the job "sharing class GoogleMap_Meeting_Controller {public list & lt; Meeting__c & gt; Meetings list {received; Set;} public list & lt; Meeting__c & gt; MeetingsList2 {get; Set;} public GoogleMap_Meeting_Controller () {ID id = Apex pages. Page (). GetParameters (). Get ('id'); Meetings = List [SELECT ID, Name, Group__R.ID, Meeting_Data__C, GPS_lighting_Lination_Lyutuited_S, GPSMetting_Leibation_Langlite_Setting_Here Group_r.Id = IDDDCDDCDDCCDESCCLEMT10 offset1]; MeetingsList2 = [Selection ID, Name, Group__r.Id, Meeting_Date__c, GPS_Meeting_Location__Latitude__s, GPS_eeting_Location__Longitude__s from Meeting__c Where Group__r.Id =: Meeting_Date__c DESC Limit 1 ID Order]; } // end creator // end class

my test class;

  Sharing class with GoogleMap_Meeting_Controller_Tester Public {static testMethod} zero myTest () {Meeting__c MeetingsList = new meeting__C (); Meeting_ c meetingingslist 2 = new meeting__c (); // ID ID = Apex pages. Page (). GetParameters (). Get ('id'); Meetings = List [SELECT ID, Name, Group__R.ID, Meeting_Data__C, GPSMetting_Libition_Litidued_S, GPSMetting_Leibation_LinkDeC_Linked to C ++ WHERE GROUP_R.ID = 'A0L 0000002JIOO MeetingDateDateCDEC limit 1 OFFSET 1 ]; MeetingsList2 = [SELECT id, name, group__r.ID, meeting_data_c, GPSMighting_libition_litidued_s, GPSMetting_libment_linkitimes from meeting_c____ WHERE Group__r.Id = 'a0Lc0000002zI 9O' meetingDateDCDesc limit1] ;; } // end constructor} // end class    

instead of < Pre> meetings = list [SELECT id, name, group__r.ID, meeting_data__c, gpsmitting_libtion_litidual_s, gpsmetting_libration_linked___ from meeting_c, where group__r.id =: meeting dtcdcd dsc crcad 10 offset 1]; MeetingsList2 = [Selection ID, Name, Group__r.Id, Meeting_Date__c, GPS_Meeting_Location__Latitude__s, GPS_eeting_Location__Longitude__s from Meeting__c Where Group__r.Id =: Meeting_Date__c DESC Limit 1 ID Order];

Usage

  list & lt; MeetingsList & gt; = [Selection ID, Name, Group__r.Id, Meeting_Date__c, GPS_Meeting_Location__Latitude__s, From Meeting__c, GPS_Meeting_Location__Longitude__s Where Group__r.Id =: Meeting_Date__c DESC limit 10 by OFFSET 1]; & Lt; MeetingsList2 & gt; = [Select ID, Name, Group__r.Id, Meeting_Date__c, GPS_Meeting_Location__Latitude__s, Meeting__c to GPS_Meeting_Location__Longitude__s Where Group__r.Id =: By Meeting_Date__c DESC Limit 1 ID Order];    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -