/**
* Confused can start an 'unknown' command.
* @throws Exception If something goes wrong.
*/
@Test
public void startsUnknownCommand() throws Exception {
final Command com = Mockito.mock(Command.class);
Mockito.when(com.type()).thenReturn("unknown");
Mockito.when(com.language()).thenReturn(new English());
final Knowledge confused = new Confused();
Steps steps = confused.start(com, Mockito.mock(Log.class));
MatcherAssert.assertThat(steps, Matchers.notNullValue());
MatcherAssert.assertThat(
steps instanceof GithubSteps, Matchers.is(true)
);
}
ConfusedTestCase.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:comdor
作者:
评论列表
文章目录