public boolean noRecords{ get{return numObjects==0;}}
public boolean moreRows{ get{return mRows<numObjects;}}
public String keyPrefix {get;private set;} public String nameLabel {get;private set;} public String nameField {get;private set;} public boolean isActivity{get;private set;} public boolean isUpdateable{get;private set;} public boolean isDeletable{get;private set;} public boolean isCreateable{get;private set;} public ApexPages.PageReference newRecord(){ return new ApexPages.PageReference('/' + keyprefix + '/e' + parameters);}
Just call this both methods from test class and get all values of all Variables
1. public ApexPages.PageReference newRecord()
2. public ApexPages.PageReference incrementRows()
test class
RelatedListController test =new RelatedListController();
list<sObject> SObjects1=test.SObjects1();
// Like this call all variables
//and test calss 100%
PageReference p=test.newRecord();
PageReference p1=test.incrementRows();