Skip to content

Commit

Permalink
added private constructors to avoid possibility to create instance
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-s committed Jan 28, 2014
1 parent 6c1653d commit f7d1990
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
public class PropertyLoader {

private static final String PROP_FILE = "/application.properties";

private PropertyLoader() {}

public static String loadProperty(String name) {
Properties props = new Properties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class AuthenticatedHtmlUnitDriver extends HtmlUnitDriver {
private static String USERNAME;
private static String PASSWORD;

public AuthenticatedHtmlUnitDriver() {
private AuthenticatedHtmlUnitDriver() {
}

public static WebDriver create(String username, String password) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class WebDriverFactory {
public static final String VISTA = "vista";
public static final String MAC = "mac";
public static final String LINUX = "linux";

private WebDriverFactory(){}

/*
* Factory method to return a RemoteWebDriver instance given the url of the
Expand Down

0 comments on commit f7d1990

Please sign in to comment.