File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/test/java/org/takes/rs Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ SOFTWARE.
96
96
<properties >
97
97
<timestamp >${maven.build.timestamp}</timestamp >
98
98
<jdk .version>1.8</jdk .version>
99
+ <argLine />
99
100
</properties >
100
101
<dependencies >
101
102
<!--
@@ -120,7 +121,7 @@ SOFTWARE.
120
121
<dependency >
121
122
<groupId >xml-apis</groupId >
122
123
<artifactId >xml-apis</artifactId >
123
- <version >2 .0.2 </version >
124
+ <version >1 .0.b2 </version >
124
125
<scope >provided</scope >
125
126
</dependency >
126
127
<dependency >
@@ -335,8 +336,8 @@ SOFTWARE.
335
336
<configuration >
336
337
<excludedGroups >org.takes.misc.PerformanceTests</excludedGroups >
337
338
<systemPropertyVariables >
339
+ <argLine >${argLine} -Dfile.encoding=UTF-8</argLine >
338
340
<java .awt.headless>true</java .awt.headless>
339
- <file .encoding>UTF-8</file .encoding>
340
341
<user .language>en</user .language>
341
342
<user .country>US</user .country>
342
343
<javax .net.ssl.keyStore>${project.build.directory} /test-classes/org/takes/http/keystore</javax .net.ssl.keyStore>
Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ void makesCompressedResponse() throws IOException {
70
70
*/
71
71
@ Test
72
72
void makesCompressedPngImage () throws IOException {
73
+ final int width = 42 ;
74
+ final int height = 256 ;
73
75
final RenderedImage image = new BufferedImage (
74
- 1 , 1 , BufferedImage .TYPE_INT_ARGB
76
+ width , height , BufferedImage .TYPE_INT_ARGB
75
77
);
76
78
final ByteArrayOutputStream baos = new ByteArrayOutputStream ();
77
79
ImageIO .write (image , "png" , baos );
@@ -84,7 +86,8 @@ void makesCompressedPngImage() throws IOException {
84
86
).body ()
85
87
)
86
88
);
87
- MatcherAssert .assertThat (reverse .getHeight (), Matchers .equalTo (1 ));
89
+ MatcherAssert .assertThat (reverse .getWidth (), Matchers .equalTo (width ));
90
+ MatcherAssert .assertThat (reverse .getHeight (), Matchers .equalTo (height ));
88
91
}
89
92
90
93
/**
You can’t perform that action at this time.
0 commit comments