5
Apex是否支持lambdas的概念?Salesforce Apex中的Lambdas
最後,我想幹涸在我的測試中一些真正重複的代碼,所以我很想能夠通過周圍的功能,像這樣(C#-esq)
public static TestMethod void some_test_method(){
Arrange(()=>
// some setup stuff
);
Act(()=>
// test action
);
System.assertEquals(...);
}