This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class DuplicateQARelController{ | |
//Declare the variables to be used | |
public List<QA_Release__c> releases {get;set;} | |
private Id releaseClientId; | |
private final QA_Release__c qa; | |
//Put all code inside constructor since it will be initialized when page is rendered | |
public DuplicateQARelController(ApexPages.StandardController stdController) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardcontroller="QA_Release__c" extensions="DuplicateQARelController" showHeader="false" sidebar="false"> | |
<apex:image value="{!$Resource.img2}" styleClass="logo" width="25%"/> | |
<apex:form > | |
<apex:pageBlock title="Multiple QA tasks alert!"> | |
<apex:outputPanel styleClass="rules"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
public class TestLimitCasesBulk { | |
static testMethod void testLimitCasesBulk() { | |
//Principle #1: Create records from scratch | |
//1. Create the custom setting | |
Max_Cases__c maxNoCases = new Max_Cases__c(); | |
maxNoCases.MaxCases__c = 250; |
NewerOlder