第二次面试亚麻了,感觉要跪在同一类型的题上,去年也是给了一堆api让设计case。说说今年这个
要求设计unit testing, intergation test/modular testing/end2end test。
请问 大家有什么想法,欢迎讨论
Micowave():
// base class
//Thread
run()
{
//thread listener
}
Method: setHeatType(heat type)
{
//set heat type
}
Method: handle-heat(heat intensity)
{
//handle heat generation
}
Method: stalow actions
//access microwave
//set cook type. - timed cook, defrost, popcorn
//start cook
//cancel cook
//end cook
}
设计unit test/modular test/integration test/
|