File tree 2 files changed +10
-2
lines changed
src/test/java/ru/mystamps/web/support/spring/security
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 338
338
<scope >test</scope >
339
339
</dependency >
340
340
341
+ <dependency >
342
+ <groupId >io.qala.datagen</groupId >
343
+ <artifactId >qala-datagen</artifactId >
344
+ <version >${datagen.version} </version >
345
+ <scope >test</scope >
346
+ </dependency >
347
+
341
348
<dependency >
342
349
<groupId >junit</groupId >
343
350
<artifactId >junit</artifactId >
469
476
<compiler .plugin.version>3.6.1</compiler .plugin.version>
470
477
<coveralls .plugin.version>2.2.0</coveralls .plugin.version>
471
478
<cucumber .version>1.2.5</cucumber .version>
479
+ <datagen .version>2.2.1</datagen .version>
472
480
473
481
<!-- Disable XML reports by default. Enabled manually by passing -DdisableXmlReport=false in CI environment -->
474
482
<disableXmlReport >true</disableXmlReport >
Original file line number Diff line number Diff line change 25
25
26
26
import org .junit .Test ;
27
27
28
+ import static io .qala .datagen .RandomShortApi .bool ;
28
29
import static org .hamcrest .MatcherAssert .assertThat ;
29
30
import static org .hamcrest .Matchers .arrayWithSize ;
30
31
import static org .hamcrest .Matchers .is ;
@@ -43,8 +44,7 @@ public class ContentSecurityPolicyHeaderWriterTest {
43
44
44
45
@ Test
45
46
public void writeContentSecurityPolicyHeader () {
46
- boolean anyValue = false ;
47
- ContentSecurityPolicyHeaderWriter writer = new ContentSecurityPolicyHeaderWriter (anyValue );
47
+ ContentSecurityPolicyHeaderWriter writer = new ContentSecurityPolicyHeaderWriter (bool ());
48
48
49
49
HttpServletRequest request = new MockHttpServletRequest ();
50
50
HttpServletResponse response = new MockHttpServletResponse ();
You can’t perform that action at this time.
0 commit comments