File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
test/java/com/arpnetworking/metrics/portal/reports/impl/chrome Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .arpnetworking .metrics .portal .reports .impl .chrome ;
17
17
18
+ import com .github .tomakehurst .wiremock .client .WireMock ;
18
19
import com .github .tomakehurst .wiremock .core .WireMockConfiguration ;
19
20
import com .github .tomakehurst .wiremock .junit .WireMockRule ;
20
21
import com .google .common .collect .ImmutableList ;
24
25
import com .typesafe .config .ConfigUtil ;
25
26
import models .internal .TimeRange ;
26
27
import org .junit .Assume ;
28
+ import org .junit .Before ;
27
29
import org .junit .BeforeClass ;
28
30
import org .junit .Rule ;
29
31
@@ -138,4 +140,16 @@ private static boolean isPathExecutable(final String path) {
138
140
public static void setUpClass () {
139
141
Assume .assumeTrue ("could not find Chrome in any likely location" , CHROME_PATH .isPresent ());
140
142
}
143
+
144
+ /**
145
+ * Handles setup for all tests. Chrome will request favicon.ico so we need to support it.
146
+ */
147
+ @ Before
148
+ public void setUp () {
149
+ _wireMock .givenThat (
150
+ WireMock .get (WireMock .urlEqualTo ("/favicon.ico" ))
151
+ .willReturn (WireMock .aResponse ()
152
+ .withStatus (404 )
153
+ .withBody ("Not Found" )));
154
+ }
141
155
}
You can’t perform that action at this time.
0 commit comments