Test Class
@istest(seeAllData = True)
private class SaveAndAddProductControllerTest {
static testMethod void testing(){
Profile p = [SELECT Id FROM Profile WHERE Name = 'System Administrator' limit 1];
List<user> UserList = [SELECT Id FROM user WHERE isActive = True AND profileid =: p.id limit 2];
Account a2 = new Account();
a2.Name = 'The Amazing';
insert a2;
Contact c = new Contact();
c.firstname = 'Summer';
c.LastName = 'Testing';
c.AccountId = a2.Id;
c.MailingCity = 'HappyTown';
c.MailingPostalCode = '01010';
c.MailingState = 'MA';
c.MailingStreet = '123 Awesome St';
insert c;
Opportunity opp = new Opportunity();
opp.RecordTypeId = '012500000009kqw';
opp.OwnerId = UserList[0].Id;
opp.Name = 'Test Opp';
opp.AccountId = a2.Id;
opp.Line_of_Business__c = 'Banking';
opp.Segment__c = 'Advisory Services';
opp.Product__c = null;
opp.CloseDate = system.today();
opp.Deal_Status__c = 'Upside';
opp.StageName = 'Closed Won';
insert opp;
Order order = new Order();
order.RecordTypeId = '012W0000000CvTF';
order.Opportunity_Name__c = opp.Id;
order.AccountId = a2.Id;
order.EffectiveDate = system.today();
order.Status = 'Open';
order.Price_List__c = '0-500M';
order.BillToContactId = c.Id;
order.ShipToContactId = c.Id;
insert order;
Order ord = [SELECT Id, RecordTypeId,Opportunity_Name__c, AccountId, EffectiveDate, Status, Price_List__c, BillToContactId, ShipToContactId FROM Order limit 1];
SaveAndAddProductControllerExtension sAAP = new SaveAndAddProductControllerExtension(new ApexPages.StandardController (Order));
}
}