未验证 提交 aed511cf 编写于 作者: J Jake Wharton 提交者: GitHub

Merge pull request #2695 from NightlyNexus/patch-1

Fix local converter name.
......@@ -1024,7 +1024,7 @@ public final class RetrofitTest {
Type type = Object.class;
Annotation[] annotations = new Annotation[0];
Converter<?, String> expectedAdapter = mock(Converter.class);
Converter<?, String> expectedConverter = mock(Converter.class);
Converter.Factory factory = mock(Converter.Factory.class);
Retrofit retrofit = new Retrofit.Builder()
......@@ -1032,10 +1032,10 @@ public final class RetrofitTest {
.addConverterFactory(factory)
.build();
doReturn(expectedAdapter).when(factory).stringConverter(type, annotations, retrofit);
doReturn(expectedConverter).when(factory).stringConverter(type, annotations, retrofit);
Converter<?, String> actualAdapter = retrofit.stringConverter(type, annotations);
assertThat(actualAdapter).isSameAs(expectedAdapter);
Converter<?, String> actualConverter = retrofit.stringConverter(type, annotations);
assertThat(actualConverter).isSameAs(expectedConverter);
verify(factory).stringConverter(type, annotations, retrofit);
verifyNoMoreInteractions(factory);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册