- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 43字
- 2021-06-24 18:31:54
Test – by default there's no winner
Let's start by defining the default response of the play method:
@Test public void whenPlayThenNoWinner() { String actual = ticTacToe.play(1,1); assertEquals("No winner", actual); }
If no winning condition is fulfilled, then there is no winner.
推薦閱讀
- Mobile Web Performance Optimization
- ThinkPHP 5實戰(zhàn)
- R語言經(jīng)典實例(原書第2版)
- JMeter 性能測試實戰(zhàn)(第2版)
- Java FX應(yīng)用開發(fā)教程
- C語言實驗指導及習題解析
- Elasticsearch Server(Third Edition)
- Oracle實用教程
- 零基礎(chǔ)學HTML+CSS第2版
- Python Digital Forensics Cookbook
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- 深入理解Kafka:核心設(shè)計與實踐原理
- Learning Cocos2d-JS Game Development
- Getting Started with RethinkDB
- IBM DB2 9.7 Advanced Application Developer Cookbook