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 | |
| private class ZenkakuToHankakuInvocableTest { | |
| @IsTest | |
| static void testConvert_MixedCharacters() { | |
| ZenkakuToHankakuInvocable.Request req = new ZenkakuToHankakuInvocable.Request(); | |
| req.inputText = 'ABC123 !@# ガギグ パピプ ヴァイオリン'; | |
| List<ZenkakuToHankakuInvocable.Response> results = | |
| ZenkakuToHankakuInvocable.convert(new List<ZenkakuToHankakuInvocable.Request>{ req }); | |
| System.assertEquals('ABC123 !@# ガギグ パピプ ヴァイオリン', results[0].outputText); |
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 ZenkakuToHankakuInvocable { | |
| public class Request { | |
| @InvocableVariable(required=true label='Input Text') | |
| public String inputText; | |
| } | |
| public class Response { | |
| @InvocableVariable(label='Converted Text') | |
| public String outputText; |