@Test
public void testContentOperationBuilder_ctor_table_data()
{
Table<Object> mockTable = failingMock(Table.class);
Operation<Object> mockAssertOperation = failingMock(Operation.class);
doReturn(mockAssertOperation).when(mockTable).assertOperation(same(EmptyUriParams.INSTANCE), predicateWithSelection("1"));
doReturn(ContentProviderOperation.newAssertQuery(Uri.EMPTY)).when(mockAssertOperation).contentOperationBuilder(any(TransactionContext.class));
assertThat(new BulkAssert<>(mockTable, new CharSequenceRowData<>("key", "value")),
builds(
assertOperation(),
withoutExpectedCount(),
withYieldNotAllowed(),
withValuesOnly(
containing("key", "value"))));
}
BulkAssertTest.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:ContentPal
作者:
评论列表
文章目录