This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia-sitetools.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ff265c  [DOXIASITETOOLS-265] Drop MiscVerifier
6ff265c is described below

commit 6ff265cd2682c58d04bb956b9438fb8f9f617fb2
Author: Michael Osipov <[email protected]>
AuthorDate: Mon Jun 20 20:16:56 2022 +0200

    [DOXIASITETOOLS-265] Drop MiscVerifier
---
 .../siterenderer/DefaultSiteRendererTest.java      | 14 -----
 .../maven/doxia/siterenderer/MiscVerifier.java     | 67 ----------------------
 .../src/test/resources/site/xdoc/misc.xml          | 33 -----------
 3 files changed, 114 deletions(-)

diff --git 
a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
 
b/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
index e35ec41..e3eb8b4 100644
--- 
a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
+++ 
b/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
@@ -264,7 +264,6 @@ public class DefaultSiteRendererTest
         verifyJavascriptPage();
         verifyFaqPage();
         verifyAttributes();
-        verifyMisc();
         verifyApt();
         verifyExtensionInFilename();
         verifyNewlines();
@@ -481,19 +480,6 @@ public class DefaultSiteRendererTest
         verifier.verify( "target/output/attributes.html" );
     }
 
-    /**
-     * @throws Exception if something goes wrong.
-     */
-    public void verifyMisc()
-        throws Exception
-    {
-        AbstractVerifier verifier = new MiscVerifier();
-        verifier.verify( "target/output/misc.html" );
-
-        verifier = new CommentsVerifier();
-        verifier.verify( "target/output/misc.html" );
-    }
-
     /**
      * @throws Exception if something goes wrong.
      */
diff --git 
a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
 
b/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
deleted file mode 100644
index 62c4fba..0000000
--- 
a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
+++ /dev/null
@@ -1,67 +0,0 @@
-package org.apache.maven.doxia.siterenderer;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import com.gargoylesoftware.htmlunit.html.HtmlElement;
-import com.gargoylesoftware.htmlunit.html.HtmlMain;
-import com.gargoylesoftware.htmlunit.html.HtmlPage;
-import com.gargoylesoftware.htmlunit.html.HtmlParameter;
-import com.gargoylesoftware.htmlunit.html.HtmlUnknownElement;
-
-import java.util.Iterator;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-
-
-/**
- *
- * @author ltheussl
- */
-public class MiscVerifier
-    extends AbstractVerifier
-{
-    /** {@inheritDoc} */
-    public void verify( String file )
-            throws Exception
-    {
-        HtmlPage page = htmlPage( file );
-        assertNotNull( page );
-
-        HtmlElement element = page.getHtmlElementById( "contentBox" );
-        assertNotNull( element );
-        HtmlMain main = (HtmlMain) element;
-        assertNotNull( main );
-
-        Iterator<HtmlElement> elementIterator = 
main.getHtmlElementDescendants().iterator();
-
-        // 
----------------------------------------------------------------------
-        //
-        // 
----------------------------------------------------------------------
-
-        HtmlUnknownElement applet = (HtmlUnknownElement) 
elementIterator.next();
-        assertEquals( "org.micro.applet.Main", applet.getAttribute( "code" ) );
-        assertEquals( "micro-applet.jar", applet.getAttribute( "archive" ) );
-
-        HtmlParameter param = (HtmlParameter) elementIterator.next();
-        assertEquals( "midlet", param.getAttribute( "name" ) );
-        assertEquals( "org.micro.applet.SimpleDemoMIDlet", param.getAttribute( 
"value" ) );
-    }
-}
diff --git a/doxia-site-renderer/src/test/resources/site/xdoc/misc.xml 
b/doxia-site-renderer/src/test/resources/site/xdoc/misc.xml
deleted file mode 100644
index 352f24b..0000000
--- a/doxia-site-renderer/src/test/resources/site/xdoc/misc.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-
-<!-- Voluntarily no XSD -->
-<document>
-  <body>
-
-      <!-- DOXIA-201, note: applet is an unkown tag, should give a warning -->
-      <applet code="org.micro.applet.Main" width="600" height="400" 
archive="micro-applet.jar">
-          <param name="midlet" value="org.micro.applet.SimpleDemoMIDlet"/>
-      </applet>
-
-      <!-- DOXIASITETOOLS-146 comments are not rendered -->
-
-  </body>
-</document>

Reply via email to