Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Ziebart committed Oct 20, 2017
1 parent 147c498 commit 9033ef8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ private static Schema generateSchema() {

schema.addTableDefinition("SchemaApiTest", new TableDefinition() {
{
javaTableName("SchemaApiTest");

rowName();
rowComponent("component1", ValueType.STRING);

Expand All @@ -52,6 +54,8 @@ private static Schema generateSchema() {

schema.addTableDefinition("HashComponentsTest", new TableDefinition() {
{
javaTableName("HashComponentsTest");

rowName();
hashFirstNRowComponents(2);
rowComponent("component1", ValueType.VAR_LONG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
package com.palantir.atlasdb.table.description;

import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyLong;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
Expand Down Expand Up @@ -126,6 +127,6 @@ public void testUpdateEntryIfEntryDoesNotExist() {

table.updateColumn1(TEST_ROW_KEY, entry -> entry + 1);

verify(table, never()).putColumn1(any(), any());
verify(table, never()).putColumn1(any(), anyLong());
}
}

0 comments on commit 9033ef8

Please sign in to comment.