MockObject

Posted by Bruce Tsai

讀取假資料

// 設定假資料資料檔路徑
System.setProperty(MockObject.class.getName(), "classpath:/mock.txt");

// 載入假資料, 預設每分鐘重新載入資料
List<MockObject> mocks = MockObject.values();
for (MockObject mock : mocks) {
    // do something
}

results matching ""

    No results matching ""