function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Test Method Create Long String

I was wondering if there was an easy way in an Apex test method to "fill up" a 32000 character string.  Basically I have some logic that handles when a string is over 32000 characters it will split it into 2 strings so it can store it in the database.  I don't see anyway to create a 32000 character string easily.  I am thinking something like a pad function.  A For loop would do it but wondered if there was a built in function to do it.  Thanks.