// Path: app/src/main/java/org/pquery/webdriver/FailurePermanentException.java
// public class FailurePermanentException extends Exception {
// 
//     private static final long serialVersionUID = 7687740322490670417L;
// 
//     public String error;
//     public String details;
// 
//     public FailurePermanentException(String error) {
//         super(error);
//         this.error = error;
//     }
// 
//     public FailurePermanentException(String error, String details) {
//         super(error);
//         this.error = error;
//         this.details = details;
//     }
// 
//     public FailurePermanentException(String error, Exception details) {
//         super(error, details);
//         this.error = error;
//         this.details = details.getMessage();
//     }
// 
//     @Override
//     public String toString() {
//         String ret = error;
//         if (details != null)
//             ret += " [" + details + "]";
//         return ret;
//     }
// 
//     public String toHTML() {
//         String ret = error;
//         if (details != null)
//             ret += "<font color=red><small><br>[" + details + "]</small></font>";
//         return ret;
//     }
// 
// }


import android.test.AndroidTestCase;
import org.pquery.webdriver.FailurePermanentException;

package org.pquery.webdriver.parser;



public class SuccessMessageParserTest extends AndroidTestCase {

    private static final String GOOD = "<p class=\"Success\">Thanks! Your pocket query has been saved and currently results in 10 caches. You can <a href=\"http://www.geocaching.com/seek/nearest.aspx?pq=dd2e3f12-2c04-4090-bd1b-4e601f521fe5\" title=\"Preview the Search\">preview the search</a> on the nearest cache page.</p>";

    /**
     * Extract download link from good English html
     *
     * @throws FailurePermanentException
     */

// Path: app/src/main/java/org/pquery/webdriver/FailurePermanentException.java
// public class FailurePermanentException extends Exception {
// 
//     private static final long serialVersionUID = 7687740322490670417L;
// 
//     public String error;
//     public String details;
// 
//     public FailurePermanentException(String error) {
//         super(error);
//         this.error = error;
//     }
// 
//     public FailurePermanentException(String error, String details) {
//         super(error);
//         this.error = error;
//         this.details = details;
//     }
// 
//     public FailurePermanentException(String error, Exception details) {
//         super(error, details);
//         this.error = error;
//         this.details = details.getMessage();
//     }
// 
//     @Override
//     public String toString() {
//         String ret = error;
//         if (details != null)
//             ret += " [" + details + "]";
//         return ret;
//     }
// 
//     public String toHTML() {
//         String ret = error;
//         if (details != null)
//             ret += "<font color=red><small><br>[" + details + "]</small></font>";
//         return ret;
//     }
// 
// }


// Path: app/src/androidTest/java/org/pquery/webdriver/parser/SuccessMessageParserTest.java
import android.test.AndroidTestCase;
import org.pquery.webdriver.FailurePermanentException;

package org.pquery.webdriver.parser;



public class SuccessMessageParserTest extends AndroidTestCase {

    private static final String GOOD = "<p class=\"Success\">Thanks! Your pocket query has been saved and currently results in 10 caches. You can <a href=\"http://www.geocaching.com/seek/nearest.aspx?pq=dd2e3f12-2c04-4090-bd1b-4e601f521fe5\" title=\"Preview the Search\">preview the search</a> on the nearest cache page.</p>";

    /**
     * Extract download link from good English html
     *
     * @throws FailurePermanentException
     */

    public void testExtractDownloadLink() throws FailurePermanentException {
