This is an automated email from the ASF dual-hosted git repository. juanpablo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jspwiki.git
The following commit(s) were added to refs/heads/master by this push: new 768624d execution of CommentedPropertiesTest through cmd.exe yields 1032 bytes for tests.properties, but everywhere else yields 1008 so, instead of hardcodding it, calculate m_propFileSize 768624d is described below commit 768624d292caba3716d059970fae162517b58421 Author: juanpablo <juanpa...@apache.org> AuthorDate: Fri Feb 9 20:55:11 2018 +0100 execution of CommentedPropertiesTest through cmd.exe yields 1032 bytes for tests.properties, but everywhere else yields 1008 so, instead of hardcodding it, calculate m_propFileSize --- .../src/test/java/org/apache/wiki/util/CommentedPropertiesTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jspwiki-war/src/test/java/org/apache/wiki/util/CommentedPropertiesTest.java b/jspwiki-war/src/test/java/org/apache/wiki/util/CommentedPropertiesTest.java index 623b824..9fabde4 100644 --- a/jspwiki-war/src/test/java/org/apache/wiki/util/CommentedPropertiesTest.java +++ b/jspwiki-war/src/test/java/org/apache/wiki/util/CommentedPropertiesTest.java @@ -39,13 +39,15 @@ public class CommentedPropertiesTest Properties m_props = new CommentedProperties(); // file size of the properties test file in bytes - private final int m_propFileSize = 1008; + private int m_propFileSize; @Before public void setUp() throws IOException { InputStream in = CommentedPropertiesTest.class.getClassLoader().getResourceAsStream( "test.properties" ); m_props.load( in ); + File m_propFile = getFile( "test.properties" ); + m_propFileSize = ( int )m_propFile.length(); in.close(); } -- To stop receiving notification emails like this one, please contact juanpa...@apache.org.