Index: jspwiki-war/src/test/java/org/apache/wiki/TestEngine.java =================================================================== --- jspwiki-war/src/test/java/org/apache/wiki/TestEngine.java (revision 1588866) +++ jspwiki-war/src/test/java/org/apache/wiki/TestEngine.java (working copy) @@ -353,6 +353,7 @@ * Convenience method that saves a wiki page by constructing a fake * WikiContext and HttpServletRequest. We always want to do this using a * WikiContext whose subject contains Role.ADMIN. + * Note: the WikiPage author will have the default value of "Guest". * @param pageName * @param content * @throws WikiException @@ -385,6 +386,7 @@ // Create page and wiki context WikiPage page = new WikiPage( this, pageName ); + page.setAuthor(Users.JANNE); WikiContext context = new WikiContext( this, request, page ); saveText( context, content ); } @@ -410,8 +412,9 @@ { String pageDir = props.getProperty( "jspwiki.fileSystemProvider.pageDir" ); props.put( AuthenticationManager.PROP_LOGIN_THROTTLING, "false" ); - props.setProperty( "jspwiki.fileSystemProvider.pageDir", - pageDir.replaceAll( "\\d", StringUtils.EMPTY ) + System.currentTimeMillis() ); + props.setProperty( "jspwiki.fileSystemProvider.pageDir", + pageDir.replaceAll( "\\d", StringUtils.EMPTY ) + + System.currentTimeMillis() ); return props; }