Fix default color and failing tests

This commit is contained in:
2017-06-04 13:08:42 -04:00
parent cf25229fbc
commit 277738f94d
5 changed files with 9 additions and 9 deletions

View File

@@ -94,13 +94,13 @@ public class ListHabitsSelectionMenuBehaviorTest extends BaseUnitTest
@Test
public void onChangeColor() throws Exception
{
assertThat(habit1.getColor(), equalTo(5));
assertThat(habit2.getColor(), equalTo(5));
assertThat(habit1.getColor(), equalTo(8));
assertThat(habit2.getColor(), equalTo(8));
when(adapter.getSelected()).thenReturn(asList(habit1, habit2));
behavior.onChangeColor();
verify(screen).showColorPicker(eq(5), colorPickerCallback.capture());
verify(screen).showColorPicker(eq(8), colorPickerCallback.capture());
colorPickerCallback.getValue().onColorPicked(30);
assertThat(habit1.getColor(), equalTo(30));
}