このクラスのテストクラスを書く方法。テストクラスを書く方法
パブリッククラスInventoryDetails {
/* Constructor does not do anything */
public InventoryDetails(ApexPages.StandardController controller) {
}
/* The method getInventory returns an array of inventory objects that meet certain criteria */
public Inventory__c[] getInventoryDetails() {
Inventory__c [] inventoryList;
inventoryList = [select Inventory__c.Rooms_Available__c, Inventory__c.Room_Type__c from Inventory__c];
return inventoryList;
}
} いずれかが私にこの質問を教えてください知っていれば。
ありがとうございます。しかし、私はこのインベントリ詳細テストクラスを再度表示します。つまり、コンパイルエラー:コンストラクタが定義されていません:[InventoryDetails]。()13行目の35行目で問題を解決してください。 –
suman
ああ、私はコードを更新しました。 – mmix