use of com.palantir.atlasdb.todo.TodoResource in project atlasdb by palantir.
the class MultiCassandraDoubleNodeDownEteTest method shouldNotBeAbleToWriteWithTwoCassandraNodesDown.
@Test(expected = RuntimeException.class)
public void shouldNotBeAbleToWriteWithTwoCassandraNodesDown() {
TodoResource todos = EteSetup.createClientToSingleNode(TodoResource.class);
todos.addTodo(getUniqueTodo());
}
use of com.palantir.atlasdb.todo.TodoResource in project atlasdb by palantir.
the class StartupIndependenceUtils method addTodo.
private static void addTodo() {
TodoResource todos = EteSetup.createClient(TodoResource.class);
Todo todo = getUniqueTodo();
todos.addTodo(todo);
}
use of com.palantir.atlasdb.todo.TodoResource in project atlasdb by palantir.
the class TodoEteTest method shouldBeAbleToWriteAndListTodos.
@Test
public void shouldBeAbleToWriteAndListTodos() {
TodoResource todoClient = EteSetup.createClientToSingleNode(TodoResource.class);
todoClient.addTodo(TODO);
assertThat(todoClient.getTodoList(), hasItem(TODO));
}
Aggregations