@@ -0,0 +1,2119 @@
+/*%0D%0A    Licensed to the Apache Software Foundation (ASF) under one%0D%0A    or more contributor license agreements.  See the NOTICE file%0D%0A    distributed with this work for additional information%0D%0A    regarding copyright ownership.  The ASF licenses this file%0D%0A    to you under the Apache License, Version 2.0 (the%0D%0A    %22License%22); you may not use this file except in compliance%0D%0A    with the License.  You may obtain a copy of the License at%0D%0A%0D%0A       http://www.apache.org/licenses/LICENSE-2.0%0D%0A%0D%0A    Unless required by applicable law or agreed to in writing,%0D%0A    software distributed under the License is distributed on an%0D%0A    %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0D%0A    KIND, either express or implied.  See the License for the%0D%0A    specific language governing permissions and limitations%0D%0A    under the License.%0D%0A */%0D%0Apackage org.apache.wiki.ui.admin.beans;%0D%0A%0D%0Aimport java.util.Properties;%0D%0A%0D%0Aimport javax.management.NotCompliantMBeanException;%0D%0A%0D%0Aimport org.apache.wiki.TestEngine;%0D%0Aimport org.apache.wiki.WikiContext;%0D%0Aimport org.apache.wiki.WikiPage;%0D%0Aimport org.apache.wiki.api.exceptions.WikiException;%0D%0A%0D%0Aimport junit.framework.TestCase;%0D%0A%0D%0A%0D%0Apublic class FilterBeanTest extends TestCase %7B%0D%0A%0D%0A    Properties props = TestEngine.getTestProperties();%0D%0A%0D%0A    TestEngine testEngine;%0D%0A%0D%0A    public void testDoGet() throws WikiException, NotCompliantMBeanException %7B%0D%0A        testEngine = new TestEngine( props );%0D%0A        WikiContext context = new WikiContext( testEngine, new WikiPage( testEngine, %22TestPage01%22 ) );%0D%0A        FilterBean pb = new FilterBean( testEngine );%0D%0A        String expectedHtml = %22%3Cdiv%3E%22 +%0D%0A                                %22%3Ch4%3EFilters%3C/h4%3E%22 +%0D%0A                                %22%3Ctable border=%5C%221%5C%22%3E%22 +%0D%0A                                  %22%3Ctr%3E%3Cth%3EName%3C/th%3E%3Cth%3EAuthor%3C/th%3E%3Cth%3ENotes%3C/th%3E%3C/tr%3E%22 +%0D%0A                                  %22%3Ctr%3E%3Ctd%3Eorg.apache.wiki.filters.SpamFilter%3C/td%3E%3Ctd%3EJanne Jalkanen%3C/td%3E%3Ctd%3E%3C/td%3E%3C/tr%3E%22 +%0D%0A                                %22%3C/table%3E%22 +%0D%0A                              %22%3C/div%3E%22;%0D%0A        assertEquals( expectedHtml, pb.doGet( context ) );%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

add missing FilterBeanTest