|
@@ -60,7 +60,7 @@ public class OptionsMergingTest extends BaseTest {
|
60
|
60
|
}
|
61
|
61
|
|
62
|
62
|
@Test
|
63
|
|
- public void mergeButtons() throws Exception {
|
|
63
|
+ public void mergeButtons() {
|
64
|
64
|
Options options = new Options();
|
65
|
65
|
uut.mergeChildOptions(options, child);
|
66
|
66
|
verify(topBar, times(0)).setRightButtons(any());
|
|
@@ -76,7 +76,7 @@ public class OptionsMergingTest extends BaseTest {
|
76
|
76
|
}
|
77
|
77
|
|
78
|
78
|
@Test
|
79
|
|
- public void mergeTopBarOptions() throws Exception {
|
|
79
|
+ public void mergeTopBarOptions() {
|
80
|
80
|
Options options = new Options();
|
81
|
81
|
uut.mergeChildOptions(options, child);
|
82
|
82
|
assertTopBarOptions(0);
|
|
@@ -90,6 +90,7 @@ public class OptionsMergingTest extends BaseTest {
|
90
|
90
|
options.topBarOptions.title = titleOptions;
|
91
|
91
|
SubtitleOptions subtitleOptions = new SubtitleOptions();
|
92
|
92
|
subtitleOptions.text = new Text("Sub");
|
|
93
|
+ subtitleOptions.color = new Color(1);
|
93
|
94
|
options.topBarOptions.subtitle = subtitleOptions;
|
94
|
95
|
options.topBarOptions.background.color = new Color(0);
|
95
|
96
|
options.topBarOptions.testId = new Text("test123");
|
|
@@ -107,7 +108,7 @@ public class OptionsMergingTest extends BaseTest {
|
107
|
108
|
}
|
108
|
109
|
|
109
|
110
|
@Test
|
110
|
|
- public void mergeTopTabsOptions() throws Exception {
|
|
111
|
+ public void mergeTopTabsOptions() {
|
111
|
112
|
Options options = new Options();
|
112
|
113
|
uut.mergeChildOptions(options, child);
|
113
|
114
|
verify(topBar, times(0)).applyTopTabsColors(any(), any());
|
|
@@ -125,7 +126,7 @@ public class OptionsMergingTest extends BaseTest {
|
125
|
126
|
}
|
126
|
127
|
|
127
|
128
|
@Test
|
128
|
|
- public void mergeTopTabOptions() throws Exception {
|
|
129
|
+ public void mergeTopTabOptions() {
|
129
|
130
|
Options options = new Options();
|
130
|
131
|
uut.mergeChildOptions(options, child);
|
131
|
132
|
|
|
@@ -144,10 +145,11 @@ public class OptionsMergingTest extends BaseTest {
|
144
|
145
|
verify(topBar, times(t)).setSubtitle(any());
|
145
|
146
|
verify(topBar, times(t)).setTitleComponent(any(), any());
|
146
|
147
|
verify(topBar, times(t)).setBackgroundColor(any());
|
147
|
|
- verify(topBar, times(t)).setTitleTextColor(any());
|
|
148
|
+ verify(topBar, times(t)).setTitleTextColor(anyInt());
|
148
|
149
|
verify(topBar, times(t)).setTitleFontSize(any());
|
149
|
|
- verify(topBar, times(t)).setTestId(any());
|
150
|
150
|
verify(topBar, times(t)).setTitleTypeface(any());
|
|
151
|
+ verify(topBar, times(t)).setSubtitleColor(anyInt());
|
|
152
|
+ verify(topBar, times(t)).setTestId(any());
|
151
|
153
|
verify(topBar, times(t)).hide();
|
152
|
154
|
verify(child, times(t)).drawBelowTopBar(topBar);
|
153
|
155
|
verify(child, times(0)).drawBehindTopBar();
|