|
@@ -83,25 +83,25 @@ public class FloatingActionButtonTest extends BaseTest {
|
83
|
83
|
|
84
|
84
|
@Test
|
85
|
85
|
public void showOnPush() {
|
86
|
|
- stackController.push(childFab);
|
|
86
|
+ stackController.push(childFab, new CommandListenerAdapter());
|
87
|
87
|
childFab.onViewAppeared();
|
88
|
88
|
assertThat(hasFab()).isTrue();
|
89
|
89
|
}
|
90
|
90
|
|
91
|
91
|
@Test
|
92
|
92
|
public void hideOnPush() {
|
93
|
|
- stackController.push(childFab);
|
|
93
|
+ stackController.push(childFab, new CommandListenerAdapter());
|
94
|
94
|
childFab.onViewAppeared();
|
95
|
95
|
assertThat(hasFab()).isTrue();
|
96
|
|
- stackController.push(childNoFab);
|
|
96
|
+ stackController.push(childNoFab, new CommandListenerAdapter());
|
97
|
97
|
childNoFab.onViewAppeared();
|
98
|
98
|
assertThat(hasFab()).isFalse();
|
99
|
99
|
}
|
100
|
100
|
|
101
|
101
|
@Test
|
102
|
102
|
public void hideOnPop() {
|
103
|
|
- stackController.push(childNoFab);
|
104
|
|
- stackController.push(childFab);
|
|
103
|
+ stackController.push(childNoFab, new CommandListenerAdapter());
|
|
104
|
+ stackController.push(childFab, new CommandListenerAdapter());
|
105
|
105
|
childFab.onViewAppeared();
|
106
|
106
|
assertThat(hasFab()).isTrue();
|
107
|
107
|
stackController.pop(new CommandListenerAdapter());
|
|
@@ -114,8 +114,8 @@ public class FloatingActionButtonTest extends BaseTest {
|
114
|
114
|
childFab.options.animated = new Bool(false);
|
115
|
115
|
childNoFab.options.animated = new Bool(false);
|
116
|
116
|
|
117
|
|
- stackController.push(childFab);
|
118
|
|
- stackController.push(childNoFab);
|
|
117
|
+ stackController.push(childFab, new CommandListenerAdapter());
|
|
118
|
+ stackController.push(childNoFab, new CommandListenerAdapter());
|
119
|
119
|
childNoFab.onViewAppeared();
|
120
|
120
|
assertThat(hasFab()).isFalse();
|
121
|
121
|
stackController.pop(new CommandListenerAdapter());
|
|
@@ -126,7 +126,7 @@ public class FloatingActionButtonTest extends BaseTest {
|
126
|
126
|
@Test
|
127
|
127
|
public void hasChildren() {
|
128
|
128
|
childFab = new SimpleViewController(activity, "child1", getOptionsWithFabActions());
|
129
|
|
- stackController.push(childFab);
|
|
129
|
+ stackController.push(childFab, new CommandListenerAdapter());
|
130
|
130
|
childFab.onViewAppeared();
|
131
|
131
|
assertThat(hasFab()).isTrue();
|
132
|
132
|
assertThat(containsActions()).isTrue();
|