From 16218e30aa8f7f2969907a09c9024a6e2be5541c Mon Sep 17 00:00:00 2001 From: Artur Moczulski Date: Mon, 20 May 2019 21:51:00 +0200 Subject: [PATCH] test(example): add examples Closes #2 --- force-app/main/default/classes/RollbarTestController.cls | 7 +++++++ .../default/classes/RollbarTestController.cls-meta.xml | 5 +++++ force-app/main/default/pages/RollbarTest.page | 7 +++++++ force-app/main/default/pages/RollbarTest.page-meta.xml | 5 +++++ force-app/main/default/triggers/LeadTrigger.trigger | 4 ++++ .../main/default/triggers/LeadTrigger.trigger-meta.xml | 5 +++++ 6 files changed, 33 insertions(+) create mode 100644 force-app/main/default/classes/RollbarTestController.cls create mode 100644 force-app/main/default/classes/RollbarTestController.cls-meta.xml create mode 100644 force-app/main/default/pages/RollbarTest.page create mode 100644 force-app/main/default/pages/RollbarTest.page-meta.xml create mode 100644 force-app/main/default/triggers/LeadTrigger.trigger create mode 100644 force-app/main/default/triggers/LeadTrigger.trigger-meta.xml diff --git a/force-app/main/default/classes/RollbarTestController.cls b/force-app/main/default/classes/RollbarTestController.cls new file mode 100644 index 0000000..8ade4fd --- /dev/null +++ b/force-app/main/default/classes/RollbarTestController.cls @@ -0,0 +1,7 @@ +public with sharing class RollbarTestController { + public PageReference test() { + List aa = [SELECT Id, Name FROM Account WHERE Name = 'Acme']; + Account ac = aa[2]; + return null; + } +} \ No newline at end of file diff --git a/force-app/main/default/classes/RollbarTestController.cls-meta.xml b/force-app/main/default/classes/RollbarTestController.cls-meta.xml new file mode 100644 index 0000000..89d1594 --- /dev/null +++ b/force-app/main/default/classes/RollbarTestController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 45.0 + Active + diff --git a/force-app/main/default/pages/RollbarTest.page b/force-app/main/default/pages/RollbarTest.page new file mode 100644 index 0000000..a38682f --- /dev/null +++ b/force-app/main/default/pages/RollbarTest.page @@ -0,0 +1,7 @@ + +

Rollbar Test

+

Press the button below to cause an exception.

+ + + +
diff --git a/force-app/main/default/pages/RollbarTest.page-meta.xml b/force-app/main/default/pages/RollbarTest.page-meta.xml new file mode 100644 index 0000000..0a458d6 --- /dev/null +++ b/force-app/main/default/pages/RollbarTest.page-meta.xml @@ -0,0 +1,5 @@ + + + 45.0 + + diff --git a/force-app/main/default/triggers/LeadTrigger.trigger b/force-app/main/default/triggers/LeadTrigger.trigger new file mode 100644 index 0000000..0f45173 --- /dev/null +++ b/force-app/main/default/triggers/LeadTrigger.trigger @@ -0,0 +1,4 @@ +trigger LeadTrigger on Lead (before insert) { + String str; + str.toLowerCase(); +} \ No newline at end of file diff --git a/force-app/main/default/triggers/LeadTrigger.trigger-meta.xml b/force-app/main/default/triggers/LeadTrigger.trigger-meta.xml new file mode 100644 index 0000000..af90872 --- /dev/null +++ b/force-app/main/default/triggers/LeadTrigger.trigger-meta.xml @@ -0,0 +1,5 @@ + + + 45.0 + Active + \ No newline at end of file