public void testShowCountsExclude() throws Exception
{
testEngine.saveText( "TestPageExcluded", "this is test page that should be excluded [{PageViewPlugin}]" );
WikiPage page1 = testEngine.getPage( "TestPage01" );
WikiContext context1 = new WikiContext( testEngine, page1 );
WikiPage page2 = testEngine.getPage( "TestPage02" );
WikiContext context2 = new WikiContext( testEngine, page2 );
// generate counts:
testEngine.getHTML( context1, page1 );
testEngine.getHTML( context2, page2 );
testEngine.getHTML( context2, page2 );
// mind the double \n in the following string:
String pageViewPageContent = "[{PageViewPlugin show='list' exclude='TestPageExcl*' '\n\n* {1} ({2} views)\n}]";
testEngine.saveText( "PageViews", pageViewPageContent );
WikiPage pageviews = testEngine.getPage( "PageViews" );
WikiContext contextPV = new WikiContext( testEngine, pageviews );
String result = testEngine.getHTML( contextPV, pageviews );
// System.out.println( result );
assertTrue( result.contains( "Test Page 01" ) );