Search in sources :

Example 6 with TodoResource

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());
}
Also used : TodoResource(com.palantir.atlasdb.todo.TodoResource) Test(org.junit.Test)

Example 7 with TodoResource

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);
}
Also used : ImmutableTodo(com.palantir.atlasdb.todo.ImmutableTodo) Todo(com.palantir.atlasdb.todo.Todo) TodoResource(com.palantir.atlasdb.todo.TodoResource)

Example 8 with TodoResource

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));
}
Also used : TodoResource(com.palantir.atlasdb.todo.TodoResource) Test(org.junit.Test)

Aggregations

TodoResource (com.palantir.atlasdb.todo.TodoResource)8 Test (org.junit.Test)6 ImmutableTodo (com.palantir.atlasdb.todo.ImmutableTodo)3 Todo (com.palantir.atlasdb.todo.Todo)3 TimestampService (com.palantir.timestamp.TimestampService)1