package org.openmrs.reference.page;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

public class TestProperties {
    private Properties properties;

    public TestProperties() {
        properties = new Properties();
        try {
            InputStream input = Thread.currentThread().getContextClassLoader()
                    .getResourceAsStream("org/openmrs/reference/test.properties");
            properties.load(new InputStreamReader(input, "UTF-8"));
        }
        catch (IOException ioException) {
            throw new RuntimeException("test.properties not found. Error: ", ioException);
        }
    }

    public String getWebAppUrl() {
        return properties.getProperty("webapp.url", "http://localhost:8080/openmrs");
    }

    public String getDatabaseUrl() {
        return properties.getProperty("database.url", "jdbc:mysql://localhost:3306/openmrs");
    }

    public String getDatabaseUsername() {
        return properties.getProperty("database.username", "");
    }

    public String getDatabasePassword() {
        return properties.getProperty("database.password", "");
    }

}

@@ -778,413 +778,15 @@
 url%22
-, %22http://localhost:8080/openmrs%22);%0A    %7D%0A%0A    public String getDatabaseUrl() %7B%0A        return properties.getProperty(%22database.url%22, %22jdbc:mysql://localhost:3306/openmrs%22);%0A    %7D%0A%0A    public String getDatabaseUsername() %7B%0A        return properties.getProperty(%22database.username%22, %22%22);%0A    %7D%0A%0A    public String getDatabasePassword() %7B%0A        return properties.getProperty(%22database.password%22, %22%22);%0A    %7D%0A
+);%0A    %7D
 %0A%7D%0A

Clean local db and webapp references